2021-10-25 15:01:10 +02:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
apply plugin: 'kotlin-android'
|
|
|
|
apply plugin: 'kotlin-android-extensions'
|
2021-10-30 03:13:58 +02:00
|
|
|
apply plugin: 'kotlin-kapt'
|
|
|
|
apply plugin: 'com.google.gms.google-services'
|
2021-10-25 15:01:10 +02:00
|
|
|
|
|
|
|
android {
|
2022-01-21 20:15:53 +01:00
|
|
|
compileSdkVersion 31
|
2021-10-25 15:01:10 +02:00
|
|
|
|
|
|
|
defaultConfig {
|
2021-10-25 22:16:23 +02:00
|
|
|
applicationId "io.heckel.ntfy"
|
2021-10-25 15:01:10 +02:00
|
|
|
minSdkVersion 21
|
2022-01-21 20:15:53 +01:00
|
|
|
targetSdkVersion 31
|
2021-11-03 21:24:36 +01:00
|
|
|
|
2022-04-27 01:28:28 +02:00
|
|
|
versionCode 27
|
|
|
|
versionName "1.13.0"
|
2021-10-25 15:01:10 +02:00
|
|
|
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
2021-11-12 04:14:28 +01:00
|
|
|
|
|
|
|
/* Required for Room schema migrations */
|
|
|
|
javaCompileOptions {
|
|
|
|
annotationProcessorOptions {
|
|
|
|
arguments += ["room.schemaLocation": "$projectDir/schemas".toString()]
|
|
|
|
}
|
|
|
|
}
|
2021-10-25 15:01:10 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
release {
|
2021-11-01 19:28:57 +01:00
|
|
|
minifyEnabled true
|
|
|
|
debuggable false
|
2021-11-21 14:56:24 +01:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
2021-11-01 19:28:57 +01:00
|
|
|
}
|
|
|
|
debug {
|
2021-10-25 15:01:10 +02:00
|
|
|
minifyEnabled false
|
2021-11-01 19:28:57 +01:00
|
|
|
debuggable true
|
2021-11-21 14:56:24 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
flavorDimensions "store"
|
|
|
|
productFlavors {
|
2021-11-24 22:12:51 +01:00
|
|
|
play {
|
|
|
|
buildConfigField 'boolean', 'FIREBASE_AVAILABLE', 'true'
|
2022-01-20 05:40:03 +01:00
|
|
|
buildConfigField 'boolean', 'RATE_APP_AVAILABLE', 'true'
|
2021-11-21 14:56:24 +01:00
|
|
|
}
|
2021-11-24 22:12:51 +01:00
|
|
|
fdroid {
|
|
|
|
buildConfigField 'boolean', 'FIREBASE_AVAILABLE', 'false'
|
2022-01-20 05:40:03 +01:00
|
|
|
buildConfigField 'boolean', 'RATE_APP_AVAILABLE', 'false'
|
2021-10-25 15:01:10 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
|
|
|
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = JavaVersion.VERSION_1_8.toString()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2022-01-21 20:15:53 +01:00
|
|
|
// AndroidX, The Basics
|
|
|
|
implementation "androidx.appcompat:appcompat:1.4.1"
|
|
|
|
implementation "androidx.core:core-ktx:1.7.0"
|
|
|
|
implementation "androidx.constraintlayout:constraintlayout:2.1.3"
|
|
|
|
implementation "androidx.activity:activity-ktx:1.4.0"
|
2022-01-28 20:40:09 +01:00
|
|
|
implementation "androidx.fragment:fragment-ktx:1.4.1"
|
2022-01-21 20:15:53 +01:00
|
|
|
implementation "androidx.work:work-runtime-ktx:2.7.1"
|
2022-01-28 20:40:09 +01:00
|
|
|
implementation 'androidx.preference:preference-ktx:1.2.0'
|
2021-11-12 01:41:29 +01:00
|
|
|
|
2022-01-21 20:15:53 +01:00
|
|
|
// JSON serialization
|
2022-03-13 15:30:27 +01:00
|
|
|
implementation 'com.google.code.gson:gson:2.9.0'
|
2022-01-21 20:15:53 +01:00
|
|
|
|
2021-11-01 14:57:05 +01:00
|
|
|
// Room (SQLite)
|
2022-03-13 15:30:27 +01:00
|
|
|
def room_version = "2.4.2"
|
2022-01-21 20:15:53 +01:00
|
|
|
implementation "androidx.room:room-ktx:$room_version"
|
|
|
|
kapt "androidx.room:room-compiler:$room_version"
|
2021-10-30 03:13:58 +02:00
|
|
|
|
2021-11-12 01:41:29 +01:00
|
|
|
// OkHttp (HTTP library)
|
2022-01-18 00:05:59 +01:00
|
|
|
implementation 'com.squareup.okhttp3:okhttp:4.9.3'
|
2021-11-01 14:57:05 +01:00
|
|
|
|
2021-11-21 14:56:24 +01:00
|
|
|
// Firebase, sigh ... (only Google Play)
|
2022-05-08 22:04:52 +02:00
|
|
|
playImplementation 'com.google.firebase:firebase-messaging:23.0.4'
|
2021-10-30 03:13:58 +02:00
|
|
|
|
2021-10-25 15:01:10 +02:00
|
|
|
// RecyclerView
|
2022-04-09 17:01:20 +02:00
|
|
|
implementation "androidx.recyclerview:recyclerview:1.3.0-alpha02"
|
2021-10-25 15:01:10 +02:00
|
|
|
|
2021-11-14 20:20:30 +01:00
|
|
|
// Swipe down to refresh
|
|
|
|
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
|
|
|
|
|
2021-10-25 15:01:10 +02:00
|
|
|
// Material design
|
2022-05-08 22:04:52 +02:00
|
|
|
implementation "com.google.android.material:material:1.6.0"
|
2021-10-25 15:01:10 +02:00
|
|
|
|
|
|
|
// LiveData
|
2022-02-16 20:59:41 +01:00
|
|
|
implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.4.1"
|
2021-10-28 04:25:02 +02:00
|
|
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
2022-01-10 21:36:50 +01:00
|
|
|
|
|
|
|
// Image viewer
|
|
|
|
implementation 'com.github.stfalcon-studio:StfalconImageViewer:v1.0.1'
|
2021-10-25 15:01:10 +02:00
|
|
|
}
|