Peter Cai
b580193624
...extract all common dependencies to a new module, app-deps, and then run LineageOS's GenerateBp plugin based on that. The resulting Android.bp file is a java_defaults that can be used from the main Android.bp. Note that the prebuilt binaries are placed in app-deps/libs by GenerateBp. This directory is explicitly excluded by .gitignore. These binaries should be copied to another repository (android_prebuilts_openeuicc-deps) manually.
48 lines
1.2 KiB
Plaintext
48 lines
1.2 KiB
Plaintext
import im.angry.openeuicc.build.*
|
|
|
|
plugins {
|
|
id("com.android.application")
|
|
id("org.jetbrains.kotlin.android")
|
|
}
|
|
|
|
apply {
|
|
plugin<MyVersioningPlugin>()
|
|
plugin<MySigningPlugin>()
|
|
}
|
|
|
|
android {
|
|
namespace = "im.angry.openeuicc"
|
|
compileSdk = 34
|
|
|
|
defaultConfig {
|
|
applicationId = "im.angry.openeuicc"
|
|
minSdk = 30
|
|
targetSdk = 34
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = false
|
|
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly(project(":libs:hidden-apis-stub"))
|
|
implementation(project(":libs:hidden-apis-shim"))
|
|
implementation(project(":libs:lpac-jni"))
|
|
implementation(project(":app-common"))
|
|
testImplementation("junit:junit:4.13.2")
|
|
androidTestImplementation("androidx.test.ext:junit:1.1.5")
|
|
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
|
|
} |