You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
92 lines
3.0 KiB
92 lines
3.0 KiB
plugins { |
|
id("com.android.application") |
|
id("org.jetbrains.kotlin.android") |
|
} |
|
|
|
// Фон берём из desktop-чатгуи; drawable-nodpi сохраняет исходный размер плитки. |
|
val prepareChatBackground by tasks.registering(Copy::class) { |
|
from("../../chatgui/resources/bg.png") |
|
into(layout.buildDirectory.dir("generated/chatBackground/res/drawable-nodpi")) |
|
rename { "chat_background.png" } |
|
} |
|
tasks.named("preBuild") { dependsOn(prepareChatBackground) } |
|
|
|
android { |
|
namespace = "com.utun.chat" |
|
compileSdk = 36 |
|
ndkVersion = "29.0.14206865" |
|
|
|
compileOptions { |
|
sourceCompatibility = JavaVersion.VERSION_17 |
|
targetCompatibility = JavaVersion.VERSION_17 |
|
} |
|
|
|
kotlinOptions { |
|
jvmTarget = "17" |
|
} |
|
|
|
defaultConfig { |
|
applicationId = "com.utun.chat" |
|
minSdk = 26 |
|
targetSdk = 36 |
|
versionCode = 1 |
|
versionName = "0.1.0" |
|
|
|
externalNativeBuild { |
|
cmake { |
|
arguments("-DANDROID_STL=c++_static") |
|
} |
|
} |
|
ndk { |
|
abiFilters += listOf("arm64-v8a", "x86_64") |
|
} |
|
} |
|
|
|
buildFeatures { |
|
compose = true |
|
} |
|
|
|
// Общие TGS-анимации с desktop-чатгуи, без копирования ресурсов. |
|
sourceSets["main"].assets.srcDir("../../chatgui/resources/animations") |
|
sourceSets["main"].res.srcDir(layout.buildDirectory.dir("generated/chatBackground/res")) |
|
|
|
composeOptions { |
|
kotlinCompilerExtensionVersion = "1.5.5" |
|
} |
|
|
|
externalNativeBuild { |
|
cmake { |
|
path = file("src/main/cpp/CMakeLists.txt") |
|
} |
|
} |
|
|
|
buildTypes { |
|
release { |
|
isMinifyEnabled = false |
|
} |
|
} |
|
} |
|
|
|
dependencies { |
|
implementation(platform("androidx.compose:compose-bom:2024.02.00")) |
|
implementation("androidx.compose.ui:ui") |
|
implementation("androidx.compose.ui:ui-tooling-preview") |
|
implementation("androidx.compose.material3:material3") |
|
implementation("androidx.compose.material:material-icons-extended") |
|
implementation("androidx.compose.foundation:foundation") |
|
implementation("com.airbnb.android:lottie-compose:6.3.0") |
|
implementation("androidx.activity:activity-compose:1.8.2") |
|
implementation("androidx.appcompat:appcompat:1.7.1") |
|
implementation("androidx.core:core-ktx:1.15.0") |
|
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.7.0") |
|
implementation("androidx.lifecycle:lifecycle-runtime-compose:2.7.0") |
|
implementation("androidx.datastore:datastore-preferences:1.0.0") |
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3") |
|
implementation("com.google.code.gson:gson:2.10.1") |
|
implementation("com.google.mlkit:barcode-scanning:17.3.0") |
|
implementation("com.google.zxing:core:3.5.3") |
|
implementation("androidx.camera:camera-camera2:1.4.0") |
|
implementation("androidx.camera:camera-lifecycle:1.4.0") |
|
implementation("androidx.camera:camera-view:1.4.0") |
|
implementation("androidx.camera:camera-video:1.4.0") |
|
}
|
|
|