68 lines
2.2 KiB
Groovy
68 lines
2.2 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
id 'kotlin-android'
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion 33
|
|
buildToolsVersion "33.0.0"
|
|
|
|
defaultConfig {
|
|
applicationId "org.unifiedpush.distributor.nextpush"
|
|
minSdkVersion 24
|
|
targetSdkVersion 33
|
|
versionCode 24
|
|
versionName "1.6.3"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
resValue "string", "app_name", "NextPush"
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
debug {
|
|
resValue "string", "app_name", "NextPush-dbg"
|
|
applicationIdSuffix ".debug"
|
|
debuggable true
|
|
}
|
|
}
|
|
|
|
namespace 'org.unifiedpush.distributor.nextpush'
|
|
}
|
|
|
|
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
|
|
}
|
|
|
|
ext {
|
|
retrofitVersion = "2.9.0"
|
|
}
|
|
|
|
dependencies {
|
|
implementation("org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version")
|
|
implementation("androidx.appcompat:appcompat:1.6.1")
|
|
implementation("com.google.android.material:material:1.9.0")
|
|
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
|
|
implementation("androidx.coordinatorlayout:coordinatorlayout:1.2.0")
|
|
implementation("com.squareup.okhttp3:okhttp-sse:4.11.0")
|
|
implementation("com.github.nextcloud:Android-SingleSignOn:0.8.0")
|
|
implementation("com.squareup.retrofit2:retrofit:$retrofitVersion")
|
|
implementation("com.squareup.retrofit2:converter-gson:$retrofitVersion")
|
|
implementation("com.squareup.retrofit2:adapter-rxjava3:$retrofitVersion")
|
|
implementation("io.reactivex.rxjava3:rxjava:3.1.6")
|
|
implementation("io.reactivex.rxjava3:rxandroid:3.0.2")
|
|
implementation("androidx.work:work-runtime-ktx:2.8.1")
|
|
}
|