98 lines
2.4 KiB
Plaintext
98 lines
2.4 KiB
Plaintext
@file:Suppress("UnstableApiUsage")
|
|
|
|
plugins {
|
|
alias(libs.plugins.android.application)
|
|
alias(libs.plugins.kotlin.android)
|
|
alias(libs.plugins.kotlin.compose)
|
|
}
|
|
|
|
android {
|
|
namespace = "com.example.firefly_go_android"
|
|
compileSdk = 36
|
|
|
|
defaultConfig {
|
|
applicationId = "com.kain344.firefly_go_android"
|
|
minSdk = 24
|
|
//noinspection OldTargetApi
|
|
targetSdk = 35
|
|
versionCode = 1
|
|
versionName = "1.0"
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = false
|
|
proguardFiles(
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
"proguard-rules.pro"
|
|
)
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = "17"
|
|
}
|
|
|
|
buildFeatures {
|
|
compose = true
|
|
viewBinding = true
|
|
}
|
|
|
|
composeOptions {
|
|
kotlinCompilerExtensionVersion = "1.5.0"
|
|
}
|
|
buildToolsVersion = "36.0.0"
|
|
ndkVersion = "27.2.12479018"
|
|
dependenciesInfo {
|
|
includeInApk = false
|
|
includeInBundle = false
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(libs.androidx.core.ktx)
|
|
implementation(libs.androidx.lifecycle.runtime.ktx.v293)
|
|
implementation(libs.androidx.activity.compose.v1101)
|
|
// Compose UI
|
|
implementation(libs.ui)
|
|
implementation(libs.ui.graphics)
|
|
implementation(libs.ui.tooling.preview)
|
|
|
|
// Foundation & Animation
|
|
implementation(libs.androidx.foundation)
|
|
implementation(libs.androidx.animation)
|
|
implementation(libs.androidx.animation.core)
|
|
|
|
// Material & Material3
|
|
implementation(libs.androidx.material)
|
|
implementation(libs.androidx.material.icons.extended)
|
|
implementation(libs.material3)
|
|
implementation(libs.androidx.material3.window.size.class1)
|
|
|
|
// Auto updater library
|
|
implementation(libs.autoupdater)
|
|
|
|
// Unit Test
|
|
testImplementation(libs.junit)
|
|
|
|
// Android Instrumentation Test
|
|
androidTestImplementation(libs.androidx.junit.v130)
|
|
androidTestImplementation(libs.androidx.espresso.core.v370)
|
|
androidTestImplementation(libs.ui.test.junit4)
|
|
|
|
// Debug
|
|
debugImplementation(libs.ui.tooling)
|
|
debugImplementation(libs.ui.test.manifest)
|
|
|
|
// Local AAR library
|
|
implementation(files("libs/firefly-go.aar"))
|
|
}
|
|
|