diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..f4ea863 --- /dev/null +++ b/Package.swift @@ -0,0 +1,20 @@ +// swift-tools-version:5.3 +// The swift-tools-version declares the minimum version of Swift required to build this package. + +import PackageDescription + +let package = Package( + name: "AppsFlyerLib", + products: [ + .library( + name: "AppsFlyerLib", + targets: ["AppsFlyerLib"]), + ], + dependencies: [ + ], + targets: [ + .binaryTarget( + name: "AppsFlyerLib", + path: "MacCatalyst/AppsFlyerLib.xcframework") + ] +) diff --git a/README.md b/README.md index d63f317..3ade179 100644 --- a/README.md +++ b/README.md @@ -13,3 +13,37 @@ In order for us to provide optimal support, we would kindly ask you to submit an When submitting an issue please specify your AppsFlyer sign-up (account) email , your app ID , reproduction steps, logs, code snippets and any additional relevant information. + +--- + +## Swift Package Manager +### Introduction +AppsFlyer SDK version 6.0.8 (ONLY!) supports installation via [Swift Package Manager](https://swift.org/package-manager/). + +### Installation +In Xcode go to: ```File -> Swift Packages -> Add Package Dependency...``` + +![Step 1](https://github.com/amit-kremer93/resources/blob/main/1.png) + +Enter the AppsFlyer SDK GitHub repository - ```https://github.com/AppsFlyerSDK/AppsFlyerFramework``` + +![Step 2](https://github.com/amit-kremer93/resources/blob/main/2.png) + +Select the exact SDK version 6.0.8 + +![Step 3](https://github.com/amit-kremer93/resources/blob/main/3.png) + +Select the AppsFlyerLib library + +![Step 4](https://github.com/amit-kremer93/resources/blob/main/4.png) + +In your ```AppDelegate``` file: import AppsFlyerLib module + +![Step 5](https://github.com/amit-kremer93/resources/blob/main/5.png) + +Start to use AppsFlyer SDK + +![Step 6](https://github.com/amit-kremer93/resources/blob/main/6.png) + + +