Swiftpack.co -  FidelityWires/stawm-sdk-ios as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
FidelityWires/stawm-sdk-ios
taqion SDK for iOS
.package(url: "https://github.com/FidelityWires/stawm-sdk-ios.git", from: "v0.8.8")

stawm-sdk-ios

Stawm SDK for iOS

Name
StawmServiceStatus It acquires the operational status of third party services and switches between pre-defined actions in the iOS app according to each status.
StawmSpeedTest Measure the internet speed or ping used by the iOS app and send the results to the specified destination.
StawmNetstatus It collects various data about the network used by the iOS app and sends the results to the specified destination.
StawmTraceroute Measure the speed and ping of the network that the iOS app is using.

This SDK comprises four separate components in the following way:

┌────────────────────┐    ┌────────────────────┐    ┌────────────────────┐
│ StawmServiceStatus │    │   StawmSpeedTest   │    │   StawmNetstatus   │
└────────────────────┘    └──────────┬─────────┘    └──────────┬─────────┘
                                     │                         │        
                          ┌──────────▼─────────────────────────▼─────────┐
                          │               StawmTraceroute                │
                          └──────────────────────────────────────────────┘

So StawmTraceroute is required when you use StawmSpeedTest or StawmNetstatus.

Installation

Swift Package Manager

  1. Open your Xcode project
  2. File > Swift Packages > Add Package Dependency
  3. Add https://github.com/FidelityWires/stawm-sdk-ios
  4. Select "Up to Next Major" with "0.8.8"

CocoaPods

pod 'StawmNetstatus'
pod 'StawmServiceStatus'
pod 'StawmSpeedTest'
pod 'StawmTraceroute'

Download the XCFrameworks from Releases

  1. Download and unzip files
  2. Add the needed framework binaries to your project directory
  3. Open your Xcode project
  4. Select target's General tab
  5. Drag the framework binaries to your Frameworks, Libraries, and Embedded Content section

Usage

Please add the NSLocationWhenInUseUsageDescription key to your app’s Info.plist file. If the required key isn’t present, location information cannot be collected.

Debugging

StawmServiceStatus

  1. Open your Xcode project
  2. Product > Scheme > Edit Scheme
  3. Set -STAWNDebugEnabled as Aguments Passed On Launch
  4. Add the following code
let serviceStatusInspector = ServiceStatusInspector()

let _ = serviceStatusInspector
    .setDebug(settings: [
        .init(service: .googlePlus, status: .red),
        .init(service: .googleCalendar, status: .red),
        .init(service: .googleMaps, status: .red),
    ])

GitHub

link
Stars: 1
Last commit: 2 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

v0.8.8
2 weeks ago
  • Enabled the application side to refer to the status of NetStatus and SpeedTest during measurement.
  • Fixed a bug that could occur when speed test and net status acquisition are performed in succession.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API