forked from LeenkxTeam/Kmake
60 lines
1.6 KiB
Plaintext
60 lines
1.6 KiB
Plaintext
plugins {
|
|
id("com.android.application")
|
|
id("org.jetbrains.kotlin.android")
|
|
}
|
|
|
|
android {
|
|
namespace = "{package}"
|
|
compileSdk = {compileSdkVersion}
|
|
|
|
defaultConfig {
|
|
applicationId = "{package}"
|
|
minSdk = {minSdkVersion}
|
|
targetSdk = {targetSdkVersion}
|
|
versionCode = {versionCode}
|
|
versionName = "{versionName}"
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
sourceSets.getByName("main") {
|
|
java.setSrcDirs(listOf({javasources}))
|
|
}
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = true
|
|
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
|
|
{architecture}
|
|
}
|
|
debug {
|
|
isMinifyEnabled = false
|
|
{architecture}
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
externalNativeBuild {
|
|
cmake {
|
|
path = file("CMakeLists.txt")
|
|
version = "3.22.1"
|
|
}
|
|
}
|
|
buildFeatures {
|
|
viewBinding = true
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation("androidx.core:core-ktx:1.9.0")
|
|
implementation("androidx.appcompat:appcompat:1.6.1")
|
|
implementation("com.google.android.material:material:1.8.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")
|
|
}
|