2024-11-09 10:47:35 +00:00
|
|
|
plugins {
|
|
|
|
alias(libs.plugins.android.application)
|
|
|
|
alias(libs.plugins.kotlin.android)
|
2024-11-15 14:44:35 +00:00
|
|
|
alias(libs.plugins.compose.compiler)
|
2024-11-18 12:40:53 +00:00
|
|
|
alias(libs.plugins.ktlint)
|
2024-11-09 10:47:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2024-11-15 14:44:35 +00:00
|
|
|
compileOptions {
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
2024-12-02 10:17:27 +00:00
|
|
|
isCoreLibraryDesugaringEnabled = true
|
2024-11-15 14:44:35 +00:00
|
|
|
}
|
|
|
|
|
2025-01-16 17:24:27 +01:00
|
|
|
dependenciesInfo {
|
|
|
|
// Disables dependency metadata when building APKs and Bundles.
|
|
|
|
includeInApk = false
|
|
|
|
includeInBundle = false
|
|
|
|
}
|
|
|
|
|
2024-11-09 16:50:59 +00:00
|
|
|
compileSdk = 35
|
2024-11-09 10:47:35 +00:00
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId = "org.unifiedpush.distributor.nextpush"
|
|
|
|
minSdk = 24
|
2024-11-09 16:50:59 +00:00
|
|
|
targetSdk = 35
|
2025-02-01 13:20:42 +00:00
|
|
|
versionCode = 35
|
|
|
|
versionName = "2.1.3"
|
2024-11-09 10:47:35 +00:00
|
|
|
}
|
|
|
|
|
2024-11-15 14:44:35 +00:00
|
|
|
buildFeatures {
|
|
|
|
compose = true
|
|
|
|
}
|
|
|
|
|
2024-11-09 10:47:35 +00:00
|
|
|
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 {
|
2025-01-16 17:03:22 +01:00
|
|
|
// implementation(project(":distributor_ui"))
|
|
|
|
// implementation(project(":distributor"))
|
|
|
|
implementation(libs.unifiedpush.distributor)
|
|
|
|
implementation(libs.unifiedpush.distributor.ui)
|
2024-12-02 10:17:27 +00:00
|
|
|
// because of nextcloud-sso
|
|
|
|
coreLibraryDesugaring(libs.tools.desugar.jdk.libs)
|
2024-11-18 09:33:48 +00:00
|
|
|
implementation(libs.accompanist.permissions)
|
2024-11-15 14:44:35 +00:00
|
|
|
implementation(libs.androidx.activity.compose)
|
|
|
|
implementation(libs.androidx.lifecycle.viewmodel.compose)
|
2024-11-09 10:47:35 +00:00
|
|
|
implementation(libs.androidx.work.runtime.ktx)
|
|
|
|
implementation(libs.appcompat)
|
|
|
|
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)
|
2024-11-15 14:44:35 +00:00
|
|
|
implementation(libs.androidx.material3.android)
|
2024-12-03 09:35:31 +00:00
|
|
|
implementation(libs.androidx.ui.tooling.preview.android)
|
2025-02-08 11:06:05 +00:00
|
|
|
debugImplementation(libs.androidx.ui.tooling)
|
2024-11-09 10:47:35 +00:00
|
|
|
}
|