Getting LUNA ID version details#
You need to perform preliminary steps to be able to learn what version of LUNA ID you are using in your app. See below for details.
In LUNA ID for Android#
To get LUNA ID version details:
1․ Create the buildSrc
module with an object that will specify a LUNA ID version. For example:
public object MoreVersions {
const val lunaIdSdkVersion = "X.X.X"
}
2․ In the build.gradle.kts file at the app
module level, specify the following:
buildFeatures {
buildConfig = true
..
}
3․ Use lunaIdSdkVersion
in your code as required. For example:
implementation("ai.visionlabs.lunaid:cnn59-arm:${MoreVersions.lunaIdSdkVersion}@aar")
In LUNA ID for iOS#
To get LUNA ID version details, use the infoDictionary
dictionary. For details, see infoDictionary.