Android library integration¶
Add Android Capture Library to the project¶
To integrate the Android Capture library into your project, follow these steps:
-
Copy the
iad
folder from the release archive to the root directory of your project. -
Add
":iad"
to the include statement insettings.gradle.kts
(include(":iad")
). -
Add the following code to your target module's
build.gradle.kts
file:
dependencies {
// IAD library
implementation(project(":iad", configuration = "default"))
// Camera
implementation("androidx.camera:camera-core:1.2.3")
implementation("androidx.camera:camera-lifecycle:1.2.3")
implementation("androidx.camera:camera-view:1.2.3")
implementation("androidx.camera:camera-camera2:1.2.3")
// Protobuf
implementation("com.google.protobuf:protobuf-javalite:3.20.1")
implementation("com.google.protobuf:protobuf-kotlin-lite:3.20.1")
}
Finally, make sure to sync the project with Gradle files by clicking the elephant icon in the top-right corner of Android Studio.
Android version support¶
The Android capture library module supports its integration within systems that implement Androids API 26 or higher.