Import the SDK

The IMS SDK Flutter Wrapper is a private pub package containing public API implementations for interacting with the portal device API and the trip detection manager.

To add it to your project you need to add the following lines to the pubspec.yaml of your application:

ims_sdk:
	url: git@github.com:ims-developers/flutter-sdk.git
	ref: master

To allow access to the private package you have to configure access to the github repository over SSH.

Adding private maven repository for Android

To fetch the SDK's Android maven packages you need to add the following maven source to the build.gradle file in the android folder

maven {
    url 'https://maven.pkg.github.com/ims-developers/android-sdk'
    name 'GitHubPackages'
    credentials {
        username <YOUR GITHUB LOGIN>
        password <YOUR GITHUB PAT>
    }
 }

The result should look simmilar to this:

....

allprojects {
    repositories {
        google()
        mavenCentral()
        maven {
            url 'https://maven.pkg.github.com/ims-developers/android-sdk'
            name 'GitHubPackages'
            credentials {
                username ghLogin
                password ghToken
            }
        }
    }
}

....

You can find more details in the Android section.

Last updated