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 {
|
|
|
|
compileSdkVersion 30
|
|
|
|
|
|
|
|
defaultConfig {
|
2021-10-25 22:16:23 +02:00
|
|
|
applicationId "io.heckel.ntfy"
|
2021-10-25 15:01:10 +02:00
|
|
|
minSdkVersion 21
|
|
|
|
targetSdkVersion 30
|
2021-11-03 21:24:36 +01:00
|
|
|
|
2021-11-18 02:39:03 +01:00
|
|
|
versionCode 6
|
|
|
|
versionName "1.1.3"
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
debug {
|
2021-10-25 15:01:10 +02:00
|
|
|
minifyEnabled false
|
2021-11-01 19:28:57 +01:00
|
|
|
debuggable true
|
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 {
|
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
|
|
implementation "androidx.appcompat:appcompat:$rootProject.appCompatVersion"
|
|
|
|
implementation "androidx.core:core-ktx:$rootProject.coreKtxVersion"
|
|
|
|
implementation "androidx.constraintlayout:constraintlayout:$rootProject.constraintLayoutVersion"
|
|
|
|
implementation "androidx.activity:activity-ktx:$rootProject.activityVersion"
|
2021-10-25 22:16:23 +02:00
|
|
|
implementation 'com.google.code.gson:gson:2.8.8'
|
2021-10-25 15:01:10 +02:00
|
|
|
|
2021-11-12 01:41:29 +01:00
|
|
|
// WorkManager
|
|
|
|
implementation "androidx.work:work-runtime-ktx:2.6.0"
|
2021-11-21 20:54:13 +01:00
|
|
|
implementation 'androidx.preference:preference:1.1.1'
|
2021-11-12 01:41:29 +01:00
|
|
|
|
2021-11-01 14:57:05 +01:00
|
|
|
// Room (SQLite)
|
2021-10-30 03:13:58 +02:00
|
|
|
def roomVersion = "2.3.0"
|
|
|
|
implementation "androidx.room:room-ktx:$roomVersion"
|
|
|
|
kapt "androidx.room:room-compiler:$roomVersion"
|
|
|
|
|
2021-11-12 01:41:29 +01:00
|
|
|
// OkHttp (HTTP library)
|
|
|
|
implementation "com.squareup.okhttp3:okhttp:4.9.2"
|
2021-11-01 14:57:05 +01:00
|
|
|
|
2021-10-30 03:13:58 +02:00
|
|
|
// Firebase, sigh ...
|
|
|
|
implementation 'com.google.firebase:firebase-messaging:22.0.0'
|
|
|
|
|
2021-10-25 15:01:10 +02:00
|
|
|
// RecyclerView
|
|
|
|
implementation "androidx.recyclerview:recyclerview:$rootProject.recyclerViewVersion"
|
|
|
|
|
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
|
|
|
|
implementation "com.google.android.material:material:$rootProject.materialVersion"
|
|
|
|
|
|
|
|
// LiveData
|
|
|
|
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$rootProject.liveDataVersion"
|
2021-10-28 04:25:02 +02:00
|
|
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
2021-10-25 15:01:10 +02:00
|
|
|
}
|