Integration¶
To integrate the Android Capture library into your project, follow these steps:
- Copy the
iadfolder 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.ktsfile:
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.