first commit
This commit is contained in:
@@ -0,0 +1,77 @@
|
||||
plugins {
|
||||
id("com.android.library")
|
||||
id("org.jetbrains.kotlin.android")
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.cpm.india.cameraai"
|
||||
compileSdk = 34
|
||||
|
||||
defaultConfig {
|
||||
minSdk = 21
|
||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||
consumerProguardFiles("consumer-rules.pro")
|
||||
ndk {
|
||||
abiFilters.add("armeabi-v7a")
|
||||
abiFilters.add("arm64-v8a")
|
||||
}
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
isMinifyEnabled = false
|
||||
proguardFiles(
|
||||
getDefaultProguardFile("proguard-android-optimize.txt"),
|
||||
"proguard-rules.pro"
|
||||
)
|
||||
}
|
||||
}
|
||||
// compileOptions {
|
||||
// sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
// targetCompatibility = JavaVersion.VERSION_1_8
|
||||
// }
|
||||
compileOptions {
|
||||
sourceCompatibility = JavaVersion.VERSION_17
|
||||
targetCompatibility = JavaVersion.VERSION_17
|
||||
}
|
||||
kotlinOptions {
|
||||
// jvmTarget = "1.8"
|
||||
jvmTarget = "17"
|
||||
// jvmToolchain(17) // Set this
|
||||
}
|
||||
buildFeatures {
|
||||
viewBinding = true
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
dependencies {
|
||||
//noinspection UseTomlInstead
|
||||
implementation ("androidx.core:core-ktx:1.0.2")
|
||||
implementation ("androidx.appcompat:appcompat:1.3.1")
|
||||
implementation ("androidx.constraintlayout:constraintlayout:2.1.4")
|
||||
implementation ("com.google.android.material:material:1.4.0")
|
||||
testImplementation("junit:junit:4.13.2")
|
||||
androidTestImplementation("androidx.test.ext:junit:1.2.1")
|
||||
androidTestImplementation("androidx.test.espresso:espresso-core:3.6.1")
|
||||
///camerax
|
||||
val camerax_version = "1.1.0-beta02"
|
||||
|
||||
// val camerax_version = "1.5.0-alpha01"
|
||||
implementation ("androidx.camera:camera-core:$camerax_version")
|
||||
implementation ("androidx.camera:camera-camera2:$camerax_version")
|
||||
implementation ("androidx.camera:camera-lifecycle:$camerax_version")
|
||||
implementation ("androidx.camera:camera-view:$camerax_version")
|
||||
///for alert
|
||||
//implementation ("org.jetbrains.anko:anko-common:0.10.4")
|
||||
//for toast msg
|
||||
implementation ("com.github.GrenderG:Toasty:1.4.2")
|
||||
// mlkit face detection & gson
|
||||
implementation ("com.google.mlkit:face-detection:16.1.7")
|
||||
//google gson
|
||||
implementation ("com.google.code.gson:gson:2.10.1")
|
||||
implementation("org.opencv:opencv:4.9.0")
|
||||
implementation ("androidx.activity:activity-ktx:1.8.0")
|
||||
}
|
||||
Reference in New Issue
Block a user