102 lines
3.2 KiB
Kotlin
102 lines
3.2 KiB
Kotlin
|
|
plugins {
|
||
|
|
id("com.android.application")
|
||
|
|
id("org.jetbrains.kotlin.android")
|
||
|
|
kotlin("plugin.serialization")
|
||
|
|
}
|
||
|
|
|
||
|
|
android {
|
||
|
|
namespace = "com.a2d2.mobilitygateway"
|
||
|
|
compileSdk = 34
|
||
|
|
|
||
|
|
defaultConfig {
|
||
|
|
applicationId = "com.a2d2.mobilitygateway"
|
||
|
|
minSdk = 29
|
||
|
|
targetSdk = 34
|
||
|
|
versionCode = 1
|
||
|
|
versionName = "0.1.0"
|
||
|
|
|
||
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||
|
|
}
|
||
|
|
|
||
|
|
buildTypes {
|
||
|
|
release {
|
||
|
|
isMinifyEnabled = false
|
||
|
|
proguardFiles(
|
||
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
||
|
|
"proguard-rules.pro"
|
||
|
|
)
|
||
|
|
}
|
||
|
|
debug {
|
||
|
|
isDebuggable = true
|
||
|
|
|
||
|
|
//NOTE(jwkim): debug시 사용
|
||
|
|
// resValue("string", "app_name", "AI CCTV(dev)")
|
||
|
|
// applicationIdSuffix = ".DEV"
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|
||
|
|
// 압축하지 않을 파일
|
||
|
|
androidResources {
|
||
|
|
noCompress += "onnx"
|
||
|
|
noCompress += "tflite"
|
||
|
|
}
|
||
|
|
compileOptions {
|
||
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
||
|
|
targetCompatibility = JavaVersion.VERSION_17
|
||
|
|
}
|
||
|
|
kotlinOptions {
|
||
|
|
jvmTarget = "17"
|
||
|
|
}
|
||
|
|
buildFeatures {
|
||
|
|
viewBinding = true
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
dependencies {
|
||
|
|
|
||
|
|
implementation("androidx.core:core-ktx:1.12.0")
|
||
|
|
implementation("androidx.appcompat:appcompat:1.6.1")
|
||
|
|
implementation("com.google.android.material:material:1.11.0")
|
||
|
|
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
|
||
|
|
testImplementation("junit:junit:4.13.2")
|
||
|
|
androidTestImplementation("androidx.test.ext:junit:1.1.5")
|
||
|
|
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
|
||
|
|
|
||
|
|
// for REST API server
|
||
|
|
implementation("org.nanohttpd:nanohttpd:2.3.1")
|
||
|
|
implementation("org.nanohttpd:nanohttpd-nanolets:2.3.1")
|
||
|
|
|
||
|
|
// for MQTT publish/subscribe
|
||
|
|
implementation("org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.5")
|
||
|
|
implementation("com.github.hannesa2:paho.mqtt.android:4.2.3")
|
||
|
|
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3")
|
||
|
|
|
||
|
|
// for Camera
|
||
|
|
val cameraxVersion = "1.3.2"
|
||
|
|
implementation("androidx.camera:camera-core:${cameraxVersion}")
|
||
|
|
implementation("androidx.camera:camera-camera2:${cameraxVersion}")
|
||
|
|
implementation("androidx.camera:camera-lifecycle:${cameraxVersion}")
|
||
|
|
implementation("androidx.camera:camera-view:${cameraxVersion}")
|
||
|
|
|
||
|
|
// for onnx
|
||
|
|
implementation("com.microsoft.onnxruntime:onnxruntime-android:1.17.1")
|
||
|
|
|
||
|
|
// for tensorflow lite
|
||
|
|
implementation("org.tensorflow:tensorflow-lite:2.15.0")
|
||
|
|
implementation("org.tensorflow:tensorflow-lite-gpu:2.15.0")
|
||
|
|
implementation("org.tensorflow:tensorflow-lite-gpu-api:2.15.0")
|
||
|
|
implementation("org.tensorflow:tensorflow-lite-support:0.4.4")
|
||
|
|
|
||
|
|
// MLKit Face Detection
|
||
|
|
implementation("com.google.mlkit:face-detection:16.1.6")
|
||
|
|
|
||
|
|
// for coroutine
|
||
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.0")
|
||
|
|
|
||
|
|
// for rtsp : jitpack
|
||
|
|
// implementation("com.github.alexeyvasilyev:rtsp-client-android:2.0.11")
|
||
|
|
// FERMAT(HSJ100): LOCAL MODULE
|
||
|
|
implementation ("androidx.media3:media3-exoplayer:1.4.0")
|
||
|
|
// for rtsp : local
|
||
|
|
implementation(project(":library-client-rtsp"))
|
||
|
|
}
|