Swiftpack.co - Package - FidelityWires/stawm-sdk-ios

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.

FidelityWires/stawm-sdk-ios

taqion SDK for iOS

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.7"

CocoaPods

pod 'stawm-sdk-ios'

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

Releases

v0.8.7 - 2021-02-16T09:15:46

  • Fix crash bugs after collecting data.