75 lines
2.1 KiB
Kotlin
75 lines
2.1 KiB
Kotlin
plugins {
|
|
alias(libs.plugins.android.library)
|
|
alias(libs.plugins.kotlin.android)
|
|
}
|
|
|
|
android {
|
|
namespace = "com.retroarch"
|
|
compileSdk = 35
|
|
ndkVersion = "22.0.7026061"
|
|
|
|
defaultConfig {
|
|
minSdk = 23
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
consumerProguardFiles("consumer-rules.pro")
|
|
externalNativeBuild {
|
|
ndkBuild {
|
|
arguments += "-j${Runtime.getRuntime().availableProcessors()}"
|
|
}
|
|
}
|
|
|
|
buildConfigField("boolean", "PLAY_STORE_BUILD", "false")
|
|
resValue("string", "app_name", "RetroArch")
|
|
}
|
|
val path = File(project.rootDir, "submodules/RetroArch")
|
|
sourceSets {
|
|
getByName("main") {
|
|
//manifest.srcFile(File(path, "pkg/android/phoenix/AndroidManifest.xml"))
|
|
java.srcDirs(
|
|
File(path, "pkg/android/phoenix/src"),
|
|
File(path, "pkg/android/phoenix-common/src"),
|
|
File(path, "pkg/android/play-core-stub"),
|
|
)
|
|
res.srcDirs(
|
|
File(path, "pkg/android/phoenix/res"),
|
|
File(path, "pkg/android/phoenix-common/res"),
|
|
)
|
|
}
|
|
}
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = false
|
|
proguardFiles(
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
"proguard-rules.pro"
|
|
)
|
|
}
|
|
}
|
|
buildFeatures {
|
|
buildConfig = true
|
|
}
|
|
externalNativeBuild {
|
|
ndkBuild {
|
|
path(File(path, "pkg/android/phoenix-common/jni/Android.mk"))
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = "11"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
|
|
implementation(libs.androidx.core.ktx)
|
|
implementation(libs.androidx.appcompat)
|
|
implementation(libs.material)
|
|
|
|
testImplementation(libs.junit)
|
|
androidTestImplementation(libs.androidx.junit)
|
|
androidTestImplementation(libs.androidx.espresso.core)
|
|
} |