76 lines
2.0 KiB
Plaintext
76 lines
2.0 KiB
Plaintext
|
plugins {
|
||
|
alias(libs.plugins.android.application)
|
||
|
alias(libs.plugins.kotlin.android)
|
||
|
}
|
||
|
|
||
|
kotlin {
|
||
|
jvmToolchain(17)
|
||
|
}
|
||
|
|
||
|
android {
|
||
|
compileSdk = 34
|
||
|
|
||
|
defaultConfig {
|
||
|
applicationId = "org.unifiedpush.distributor.nextpush"
|
||
|
minSdk = 24
|
||
|
targetSdk = 34
|
||
|
versionCode = 29
|
||
|
versionName = "1.9.0"
|
||
|
}
|
||
|
|
||
|
buildTypes {
|
||
|
getByName("release") {
|
||
|
resValue("string", "app_name", "NextPush")
|
||
|
isMinifyEnabled = true
|
||
|
isShrinkResources = true
|
||
|
proguardFiles(
|
||
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
||
|
"proguard-rules.pro"
|
||
|
)
|
||
|
}
|
||
|
getByName("debug") {
|
||
|
resValue("string", "app_name", "NextPush-dbg")
|
||
|
applicationIdSuffix = ".debug"
|
||
|
isDebuggable = true
|
||
|
}
|
||
|
}
|
||
|
|
||
|
namespace = "org.unifiedpush.distributor.nextpush"
|
||
|
}
|
||
|
|
||
|
if (project.hasProperty("sign")) {
|
||
|
android {
|
||
|
signingConfigs {
|
||
|
create("release") {
|
||
|
storeFile = file(System.getenv("RELEASE_STORE_FILE"))
|
||
|
storePassword = System.getenv("RELEASE_STORE_PASSWORD")
|
||
|
keyAlias = System.getenv("RELEASE_KEY_ALIAS")
|
||
|
keyPassword = System.getenv("RELEASE_KEY_PASSWORD")
|
||
|
}
|
||
|
}
|
||
|
|
||
|
buildTypes {
|
||
|
getByName("release") {
|
||
|
signingConfig = signingConfigs.getByName("release")
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
dependencies {
|
||
|
implementation(libs.androidx.constraintlayout)
|
||
|
implementation(libs.androidx.coordinatorlayout)
|
||
|
implementation(libs.androidx.work.runtime.ktx)
|
||
|
implementation(libs.appcompat)
|
||
|
implementation(libs.kotlin.stdlib)
|
||
|
implementation(libs.material)
|
||
|
implementation(libs.nexctloud.sso)
|
||
|
implementation(libs.okhttp.sse)
|
||
|
implementation(libs.retrofit.adapter.rxjava3)
|
||
|
implementation(libs.retrofit.converter.gson)
|
||
|
implementation(libs.retrofit.retrofit)
|
||
|
implementation(libs.rxjava3.rxandroid)
|
||
|
implementation(libs.rxjava3.rxjava)
|
||
|
}
|