Including the SDK

The instructions below are for Android Studio and Xcode. If you're using another IDE you'll need to adapt these instructions to match your current workflow.

Android#

  1. Your project's root-level build.gradle file should have the following entries at the following locations (alongside any others required for your project): (Be sure to provide your GMI SDK library access AWS credentials for my_aws_access_key_id and my_aws_secret_access_key)
buildscript {
repositories {
google()
jcenter()
...
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.1'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.10'
...
}
...
}
allprojects {
repositories {
google()
jcenter()
maven {
url = 's3://gmi-sdks/releases'
credentials(AwsCredentials) {
accessKey = 'my_aws_access_key_id'
secretKey = 'my_aws_secret_access_key'
}
}
...
}
...
}
  1. Your project's root-level gradle.properties should have the following entries alongside any others required for your project (if you need the Support Library instead of AndroidX, 7.6.18 is the last version that will allow this):
android.useAndroidX=true
android.enableJetifier=true
  1. Your app-level build.gradle file should have the following entries at the following locations (alongside any others required for your project):
...
apply plugin: 'kotlin-android'
android {
...
dataBinding {
enabled = true
}
}
dependencies {
...
implementation (group: 'com.iwsinc.iwa', name: 'android_iwa_sdk', version: '9.1.3')
}
...

iOS#

The Imageware Authenticate iOS Mobile SDK takes advantage of Swift Package Manager to make dependency management easy. To include the SDK, simply go to File->Swift Packages->Add Package Dependency... and add the package as below:

swift packages menu

Enter https://github.com/Imageware/ios_iwa_sdk into the package location and hit enter, then follow the directions.

adding the package

Realm dependencies will be added automatically.