Swiftpack.co - Package - highmobility/hm-auto-api-swift

What is in this repository

AutoAPI parsing source code in Swift, that can be made into a framework by swift build (macOS and Linux only), or through Xcode. Using the latter allows additionally to build for iOS, tvOS or watchOS.

In addition, if using this as a dependency with Swift Package Manager, the suitable architecture is handled by Xcode.

Lastly, there's a command-line parser for quickly debugging AutoAPI data.

Framework Usage

For iOS, it's recommended to build the universal framework - thus enabling running on a simulator as well.
There's an AppStoreCompatible.sh script for thinning the framework before submission to iTC.

For macOS and Linux, executing swift build and using the product is recommended (use the --show-bin-path option to get the output path).

For other Apple platforms, the universal framework can be made with lipo from Xcode's simulator and device products. When creating a universal one, the module maps need to be copied as well.

For details on the API itself, please see the documentation.

Parser Usage

Simply execute ./AutoAPICLT [input] on the command-line.

Input can be in hex, base64 or "scrambled" (see the flags).
The parser outputs only what it was able to understand.

Flags:
-b64: input is in Base64 instead
-dc: input is like in Developer Center examples
-ep: expand properties

screenshot

Github

link
Stars: 1
Help us keep the lights on

Dependencies

Used By

Total: 0

Releases

7.3.8 - Oct 16, 2019

Changed type AutoAPI to AAAutoAPI to make XCFramework usable.

Proper Xcode 11 release.

10.0.9 - Oct 15, 2019

Proper Xcode 11 release.

10.0.8 - Sep 17, 2019

Updated for Xcode 11 GM2. Added XCFramework building script (and removed the "old" universal scripts). Removed typealias AutoAPI to make XCFramework usable.

7.3.7 - Sep 17, 2019

Updated for Xcode 11 GM2. Changed type AutoAPI to AAAutoAPI to make XCFramework usable. Added XCFramework building script (and removed the "old" universal scripts).

10.0.7 - Sep 11, 2019

Updated for Xcode 11 GM and Swift 5.1