91 lines
2.7 KiB
Plaintext
91 lines
2.7 KiB
Plaintext
plugins {
|
|
alias(libs.plugins.android.application)
|
|
alias(libs.plugins.kotlin.android)
|
|
alias(libs.plugins.compose.compiler)
|
|
alias(libs.plugins.ktlint)
|
|
}
|
|
|
|
android {
|
|
compileOptions {
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
isCoreLibraryDesugaringEnabled = true
|
|
}
|
|
|
|
compileSdk = 35
|
|
|
|
defaultConfig {
|
|
applicationId = "org.unifiedpush.distributor.nextpush"
|
|
minSdk = 24
|
|
targetSdk = 35
|
|
versionCode = 29
|
|
versionName = "1.9.0"
|
|
}
|
|
|
|
buildFeatures {
|
|
compose = true
|
|
}
|
|
|
|
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 {
|
|
// because of nextcloud-sso
|
|
coreLibraryDesugaring(libs.tools.desugar.jdk.libs)
|
|
implementation(libs.accompanist.permissions)
|
|
implementation(libs.androidx.activity.compose)
|
|
implementation(libs.androidx.constraintlayout)
|
|
implementation(libs.androidx.coordinatorlayout)
|
|
implementation(libs.androidx.lifecycle.viewmodel.compose)
|
|
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)
|
|
implementation(libs.androidx.material3.android)
|
|
implementation(libs.androidx.ui.tooling.preview.android)
|
|
implementation(libs.androidx.ui.tooling)
|
|
}
|