
Quiet is a mobile company building a wide variety of products, each leading its market in their respective category. Quiet also teams up with independent developers and offers publishing services. As part of this effort, the QuietSDK helps developers build apps more quickly, and connect with external tools without the burden of reading documentation and setting up each of them.
QuietSDK is only available through Swift Package Manager (SPM).
If you are already using a Package.swift
file, add it as a new dependency:
dependencies: [
.package(url: "https://github.com/QuietGames/ios-quietsdk", .upToNextMajor(from: "1.0.0"))
]
Then add the product in your dependencies:
.product(name: "QuietSDK", package: "ios-quietsdk")
If you prefer using Xcode's GUI, go to Project > Package Dependencies > '+' then paste the following URL in the search field: https://github.com/QuietGames/ios-quietsdk
.
Don't forget to add QuietSDK to the appropriate target.
First you'll need to import QuietSDK:
import QuietSDK
Find the earliest point in your app's lifecycle to initialize the SDK. This could be your AppDelegate.swift
, or inside your @main App
struct.
QuietSDK.sharedInstance.setupWith(adjustToken: <#T##YOUR_ADJUST_TOKEN##String#>)
You're all set - Your app is now able to communicate with Adjust!
If you want to implement custom error handling, QuietSDK throws typed errors QuietError
:
do {
try QuietSDK.sharedInstance.throwingSetupWith(adjustToken: "MY_ADJUST_TOKEN")
} catch {
switch error {
case .failedToInitAdjust: // Handle this specific error
}
}
We included an sample app to help you understand how to integrate the SDK in a production app. Check the project in the QuietSDKTestApp/
folder.
We use QuietSDK in our own in-house apps, which reach millions of users worldwide. Curious to see what we've built? Check out our portfolio.