iOS
To integrate SDK into your iOS app, follow these simple steps:
Step 1 - Add a Dependency
Assuming that you are using CocoaPods, add the following pod to your Podfile
pod 'MaestroSDK'
Step 2 - Get Maestro project id
We would need a project ID in the next step. To get a project id, you would need to sign-in into your Maestro cloud account (or create a free acount if you don't have one already) by running the following commands:
maestro login
Once you are logged in, run this command to get a project id:
maestro mockserver projectid
Step 3 - Initialize the SDK
Initialize the SDK as soon as your application is created. Just like with any other SDK, simply add the following to your AppDelegate
import UIKit
import Maestro_SDK
@main
class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
MaestroSdk.setup(projectId: "YOUR_PROJECT_ID")
return true
}
}
Next Steps
The SDK is ready to be used! Check out some of the common use cases that SDK supports:
Maestro Mock ServerLast updated
Was this helpful?