Files
NFSMW_Legacy/app/build.gradle.kts
T
2026-07-31 14:19:44 +03:00

121 lines
3.5 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_mod"
minSdk = 21
targetSdk = 34
// Must match the OBB expansion file's version code
// (/sdcard/Android/obb/com.ea.games.nfs13_mod/main.1003128.com.ea.games.nfs13_mod.obb)
// for the game's OBB lookup (main.<versionCode>.<applicationId>.obb) to find it.
versionCode = 1003128
versionName = "1.3.128"
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"
)
}
}
productFlavors {
flavorDimensions.add("nfsmw")
create("devmenu") {
dimension = "nfsmw"
minSdk = 21
}
create("no_devmenu") {
dimension = "nfsmw"
minSdk = 21
}
}
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)
implementation(project(mapOf("path" to ":mpcore")))
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")
}