74 lines
2.1 KiB
Groovy
74 lines
2.1 KiB
Groovy
apply plugin: 'com.android.application'
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'kotlin-android-extensions'
|
|
apply plugin: 'kotlin-kapt'
|
|
apply plugin: 'com.google.gms.google-services'
|
|
|
|
android {
|
|
compileSdkVersion 30
|
|
|
|
defaultConfig {
|
|
applicationId "io.heckel.ntfy"
|
|
minSdkVersion 21
|
|
targetSdkVersion 30
|
|
|
|
versionCode 2
|
|
versionName "1.0.1"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled true
|
|
debuggable false
|
|
}
|
|
|
|
debug {
|
|
minifyEnabled false
|
|
debuggable true
|
|
}
|
|
}
|
|
|
|
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"
|
|
implementation 'com.google.code.gson:gson:2.8.8'
|
|
|
|
// WorkManager
|
|
implementation "androidx.work:work-runtime-ktx:2.6.0"
|
|
|
|
// Room (SQLite)
|
|
def roomVersion = "2.3.0"
|
|
implementation "androidx.room:room-ktx:$roomVersion"
|
|
kapt "androidx.room:room-compiler:$roomVersion"
|
|
|
|
// OkHttp (HTTP library)
|
|
implementation "com.squareup.okhttp3:okhttp:4.9.2"
|
|
|
|
// Firebase, sigh ...
|
|
implementation 'com.google.firebase:firebase-messaging:22.0.0'
|
|
|
|
// RecyclerView
|
|
implementation "androidx.recyclerview:recyclerview:$rootProject.recyclerViewVersion"
|
|
|
|
// Material design
|
|
implementation "com.google.android.material:material:$rootProject.materialVersion"
|
|
|
|
// LiveData
|
|
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$rootProject.liveDataVersion"
|
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
|
}
|