102 lines
2.9 KiB
Kotlin
102 lines
2.9 KiB
Kotlin
plugins {
|
|
alias(libs.plugins.androidApplication)
|
|
alias(libs.plugins.kotlinAndroid)
|
|
}
|
|
|
|
android {
|
|
namespace = "com.ea.games.nfs13_na"
|
|
compileSdk = 34
|
|
|
|
defaultConfig {
|
|
applicationId = "com.ea.games.nfs13_na"
|
|
minSdk = 21
|
|
targetSdk = 34
|
|
versionCode = 1
|
|
versionName = "1.0"
|
|
|
|
buildConfigField( "String", "DEV_MENU_VERSION", "\"0.1\"")
|
|
buildConfigField( "String", "DEV_MENU_ID", "\"DevMenu\"")
|
|
|
|
ndk.abiFilters.add("armeabi-v7a")
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
vectorDrawables {
|
|
useSupportLibrary = true
|
|
}
|
|
}
|
|
ndkVersion = "21.0.6113669"
|
|
|
|
packaging {
|
|
resources.excludes.add("META-INF/DEPENDENCIES")
|
|
resources.excludes.add("META-INF/LICENSE")
|
|
resources.excludes.add("META-INF/LICENSE.txt")
|
|
resources.excludes.add("META-INF/license.txt")
|
|
resources.excludes.add("META-INF/NOTICE")
|
|
resources.excludes.add("META-INF/NOTICE.txt")
|
|
resources.excludes.add("META-INF/notice.txt")
|
|
resources.excludes.add("META-INF/ASL2.0")
|
|
resources.excludes.add("META-INF/*.kotlin_module")
|
|
}
|
|
|
|
android.buildFeatures.buildConfig = true
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = false
|
|
proguardFiles(
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
"proguard-rules.pro"
|
|
)
|
|
}
|
|
}
|
|
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = "11"
|
|
}
|
|
buildFeatures {
|
|
compose = true
|
|
}
|
|
composeOptions {
|
|
kotlinCompilerExtensionVersion = "1.5.7"
|
|
}
|
|
packaging {
|
|
resources {
|
|
excludes += "/META-INF/{AL2.0,LGPL2.1}"
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
|
|
implementation(libs.core.ktx)
|
|
implementation(libs.lifecycle.runtime.ktx)
|
|
implementation(libs.activity.compose)
|
|
implementation(platform(libs.compose.bom))
|
|
implementation(libs.ui)
|
|
implementation(libs.ui.graphics)
|
|
implementation(libs.ui.tooling.preview)
|
|
implementation(libs.material3)
|
|
testImplementation(libs.junit.v412)
|
|
//testImplementation(libs.junit)
|
|
androidTestImplementation(libs.androidx.test.ext.junit)
|
|
androidTestImplementation(libs.espresso.core)
|
|
androidTestImplementation(platform(libs.compose.bom))
|
|
androidTestImplementation(libs.ui.test.junit4)
|
|
debugImplementation(libs.ui.tooling)
|
|
debugImplementation(libs.ui.test.manifest)
|
|
//implementation(project(mapOf("path" to ":devmenu")))
|
|
|
|
implementation ("commons-codec:commons-codec:1.15")
|
|
|
|
val fragment_version = "1.6.1"
|
|
implementation("androidx.fragment:fragment:$fragment_version")
|
|
// Kotlin
|
|
implementation("androidx.fragment:fragment-ktx:$fragment_version")
|
|
|
|
implementation("androidx.localbroadcastmanager:localbroadcastmanager:1.0.0")
|
|
} |