flutterFlutter

Get Started

1

Set up your adjoe App

Share the following information with your adjoe Account Manager:

  • App bundle IDs

  • App Store ID / Playstore ID

Your Account Manager will share:

  • SDKHash

  • S2S Token

  • API Token

circle-check
2

Install the dependency

To integrate the adjoe Flutter SDK into your Flutter project, follow these steps:

  1. Open your project's pubspec.yaml file.

  2. Add the Playtime SDK as a dependency under the dependencies section. You can change the version number to the desired version of Playtime SDK.

dependencies:
  adjoe:
    git:
      url: https://github.com/adjoeio/adjoe-flutter-sdk
      ref: v4.2.0
  1. Save the pubspec.yaml

  2. In your IDE run either of the the following two commands:

    1. pub get

    2. flutter pub get

Github repo: https://github.com/adjoeio/adjoe-flutter-sdkarrow-up-right

3

iOS: Add the Native Dependency

CocoaPodsarrow-up-right is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website.

  1. In your project directory, create a Podfile if one doesn’t already exist.

  2. Inside the Podfile, add the following configuration to include the Playtime SDK as a dependency within your app’s target. You can also specify a version or version range—see the CocoaPods Podfile syntax reference for more details.

    source 'https://github.com/adjoeio/PlaytimeSpecExternal.git'
    
    platform :ios, '14.0'
    
    target 'MyApp' do
      use_frameworks!
    
      pod 'PlaytimeMonetize', '~> 4.2.0'
    end
  3. Open a terminal and navigate to your project’s root directory.

  4. Run the following command to update the CocoaPods repository and install the dependencies:

    pod install --repo-update
  5. Once installation is complete, open the .xcworkspace file generated by CocoaPods. The Playtime SDK will now be available for use within your project.

Check out our troubleshooting guide if you run into any issues with Cocoapods

4

iOS: Integrate App Attest

Check the steps here to Integrate App Attest. Failure to set up App Attest as intended will cause issues with the app set up and may cause the app to be rejected.

5

Android: Add the Native Dependency

  1. Add adjoe's repository to your root build.gradle (project level):

allprojects {
    repositories {
        ...
        maven {
            url  "https://releases.adjoe.io/maven"
        }
    }
}
  1. Add the adjoe dependency to your app's build.gradle (module level):

dependencies {
    ...
    implementation 'io.adjoe:adjoe-sdk-android:4.2.0'
}

If you use Kotlin DSL for adding dependencies, add the repo in the settings.gradle.kts

repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        maven { url = uri("https://releases.adjoe.io/maven") }
    }
}

Last updated