2021-11-22 09:27:58 +01:00
|
|
|
plugins {
|
|
|
|
id 'com.android.application'
|
|
|
|
id 'kotlin-android'
|
|
|
|
}
|
|
|
|
|
2024-01-16 20:30:21 +01:00
|
|
|
kotlin {
|
|
|
|
jvmToolchain(17)
|
|
|
|
}
|
|
|
|
|
2021-11-22 09:27:58 +01:00
|
|
|
android {
|
2024-01-16 20:30:21 +01:00
|
|
|
compileSdk 34
|
2021-11-22 09:27:58 +01:00
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId "org.unifiedpush.distributor.nextpush"
|
2023-08-31 22:24:06 +02:00
|
|
|
minSdk 24
|
2024-01-16 20:30:21 +01:00
|
|
|
targetSdk 34
|
2024-01-16 23:33:20 +01:00
|
|
|
versionCode 29
|
|
|
|
versionName "1.9.0"
|
2021-11-22 09:27:58 +01:00
|
|
|
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
resValue "string", "app_name", "NextPush"
|
2023-06-10 08:52:42 +02:00
|
|
|
minifyEnabled true
|
|
|
|
shrinkResources true
|
2021-11-22 09:27:58 +01:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
debug {
|
|
|
|
resValue "string", "app_name", "NextPush-dbg"
|
|
|
|
applicationIdSuffix ".debug"
|
|
|
|
debuggable true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-09-20 00:26:28 +02:00
|
|
|
namespace 'org.unifiedpush.distributor.nextpush'
|
2021-11-22 09:27:58 +01:00
|
|
|
}
|
|
|
|
|
2021-11-26 00:57:34 +01:00
|
|
|
if (project.hasProperty('sign')) {
|
|
|
|
android {
|
|
|
|
signingConfigs {
|
|
|
|
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")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
android.buildTypes.release.signingConfig android.signingConfigs.release
|
|
|
|
}
|
|
|
|
|
2023-03-01 00:41:37 +01:00
|
|
|
ext {
|
|
|
|
retrofitVersion = "2.9.0"
|
|
|
|
}
|
|
|
|
|
2021-11-22 09:27:58 +01:00
|
|
|
dependencies {
|
2021-11-24 22:14:48 +01:00
|
|
|
implementation("org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version")
|
2023-02-08 22:02:47 +01:00
|
|
|
implementation("androidx.appcompat:appcompat:1.6.1")
|
2024-01-16 20:30:21 +01:00
|
|
|
implementation('com.google.android.material:material:1.11.0')
|
2022-05-20 23:28:42 +02:00
|
|
|
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
|
2022-09-20 00:26:28 +02:00
|
|
|
implementation("androidx.coordinatorlayout:coordinatorlayout:1.2.0")
|
2024-01-16 20:30:21 +01:00
|
|
|
implementation('com.squareup.okhttp3:okhttp-sse:4.12.0')
|
2023-06-12 23:33:51 +02:00
|
|
|
implementation("com.github.nextcloud:Android-SingleSignOn:0.8.1")
|
2023-03-01 00:41:37 +01:00
|
|
|
implementation("com.squareup.retrofit2:retrofit:$retrofitVersion")
|
|
|
|
implementation("com.squareup.retrofit2:converter-gson:$retrofitVersion")
|
2023-03-06 09:43:08 +01:00
|
|
|
implementation("com.squareup.retrofit2:adapter-rxjava3:$retrofitVersion")
|
2024-01-16 20:30:21 +01:00
|
|
|
implementation('io.reactivex.rxjava3:rxjava:3.1.8')
|
2023-03-06 09:43:08 +01:00
|
|
|
implementation("io.reactivex.rxjava3:rxandroid:3.0.2")
|
2024-01-16 20:30:21 +01:00
|
|
|
implementation('androidx.work:work-runtime-ktx:2.9.0')
|
2021-11-22 09:27:58 +01:00
|
|
|
}
|