DOT SDK topic

Get Started

Requirements

Android iOS
Support SDK 21+ iOS 11+

Licensing

Obtain a license file and include it into your project:

  1. Make sure that Application ID of your host Android app and Bundle ID of you host iOS app are the same value (e.g. com.innovatrics.dot.flutter.example):
    1. Android: See applicationId in build.gradle.
    2. iOS: See General tab in Xcode.
  2. In order to obtain the license file, please contact your Innovatrics’ representative specifying your Application/Bundle ID.
  3. Include the license file into your app as an asset.

Basic Setup

Setup Android platform

You need to use FlutterFragmentActivity instead of the default FlutterActivity. If you are using customized activity that extends FlutterActivity, simply change its parent class to FlutterFragmentActivity. If you do not extend FlutterActivity, you must specify FlutterFragmentActivity in your Manifest.xml.

<activity
    android:name="io.flutter.embedding.android.FlutterFragmentActivity"
    android:exported="true"
    ...>

Setup iOS platform

You need to include Innovatrics’ Cocoapods repository source into PodFile file of your iOS runner application prior to using DOT SDK.

source 'https://github.com/innovatrics/innovatrics-podspecs'

In case DOT SDK will be part of another Flutter plugin, include this setup into its README.md file.

Using DOT SDK

Before using any of the components, you need to initialize DOT SDK. When a process (e.g. onboarding) has been completed, it is usually a good practice to free the resources used by it. See how to initialize and deinitialize DOT SDK.

Example app

Find the example app here.

Libraries

dot_core DOT SDK
DOT Core plugin.