# 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:

```yaml
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.

{% embed url="<https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent>" %}

{% embed url="<https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account>" %}

## 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

```kotlin
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:

```kotlin
....

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](/readme/android/import-the-sdk.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sdk.ims.tech/readme/other-platforms/flutter/import-the-sdk.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
