mirror of
https://github.com/RoboSats/robosats.git
synced 2025-07-18 00:33:15 +00:00
82 lines
2.3 KiB
Plaintext
82 lines
2.3 KiB
Plaintext
import com.android.build.api.dsl.Packaging
|
|
|
|
plugins {
|
|
alias(libs.plugins.android.application)
|
|
alias(libs.plugins.kotlin.android)
|
|
}
|
|
|
|
android {
|
|
namespace = "com.koalasat.robosats"
|
|
compileSdk = 36
|
|
|
|
defaultConfig {
|
|
applicationId = "com.koalasat.robosats"
|
|
minSdk = 24
|
|
targetSdk = 36
|
|
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_11
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = "11"
|
|
}
|
|
|
|
splits {
|
|
|
|
// Configures multiple APKs based on ABI. This helps keep the size
|
|
// down, since PT binaries can be large.
|
|
abi {
|
|
|
|
// Enables building multiple APKs per ABI.
|
|
isEnable = true
|
|
|
|
// By default, all ABIs are included, so use reset() and include to specify
|
|
// that we only want APKs for x86 and x86_64, armeabi-v7a, and arm64-v8a.
|
|
|
|
// Resets the list of ABIs that Gradle should create APKs for to none.
|
|
reset()
|
|
|
|
// Specifies a list of ABIs that Gradle should create APKs for.
|
|
include("x86", "armeabi-v7a", "arm64-v8a", "x86_64")
|
|
|
|
// Specify whether you wish to also generate a universal APK that
|
|
// includes _all_ ABIs.
|
|
isUniversalApk = true
|
|
}
|
|
}
|
|
|
|
fun Packaging.() {
|
|
jniLibs.useLegacyPackaging = true
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
|
|
implementation(libs.androidx.core.ktx)
|
|
implementation(libs.androidx.appcompat)
|
|
implementation(libs.material)
|
|
implementation(libs.kmp.tor)
|
|
// Add the KMP Tor binary dependency (contains the native .so files)
|
|
implementation(libs.kmp.tor.binary)
|
|
implementation(libs.androidx.activity)
|
|
implementation(libs.androidx.constraintlayout)
|
|
testImplementation(libs.junit)
|
|
androidTestImplementation(libs.androidx.junit)
|
|
androidTestImplementation(libs.androidx.espresso.core)
|
|
}
|