2016-08-29 12:50:41 +00:00
|
|
|
apply plugin: 'com.android.application'
|
2020-01-02 17:00:37 +00:00
|
|
|
apply plugin: 'kotlin-android'
|
2021-03-04 20:03:12 +00:00
|
|
|
apply plugin: 'kotlin-parcelize'
|
2020-01-02 17:00:37 +00:00
|
|
|
apply plugin: 'androidx.navigation.safeargs.kotlin'
|
2016-08-29 12:50:41 +00:00
|
|
|
|
|
|
|
android {
|
2021-10-27 19:01:24 +00:00
|
|
|
compileSdkVersion 31
|
2016-08-29 12:50:41 +00:00
|
|
|
|
|
|
|
defaultConfig {
|
2020-01-02 17:00:37 +00:00
|
|
|
applicationId 'org.y20k.trackbook'
|
|
|
|
minSdkVersion 25
|
2021-10-27 19:01:24 +00:00
|
|
|
targetSdkVersion 31
|
|
|
|
versionCode 49
|
|
|
|
versionName '2.1.1'
|
2021-09-30 08:06:38 +00:00
|
|
|
resConfigs "en", "da", "de", "fr", "hr", "id", "it", "ja", "nb-rNO", "nl", "pl", "pt-rBR", "ru", "sv", "tr", "zh-rCN"
|
2016-08-29 12:50:41 +00:00
|
|
|
}
|
2018-11-04 09:13:19 +00:00
|
|
|
|
2020-01-02 17:00:37 +00:00
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = '1.8'
|
|
|
|
}
|
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
|
|
|
|
2020-07-31 23:56:40 +00:00
|
|
|
lintOptions {
|
|
|
|
disable 'MissingTranslation', 'GoogleAppIndexingWarning'
|
2020-01-02 17:00:37 +00:00
|
|
|
}
|
2018-11-04 09:13:19 +00:00
|
|
|
|
2020-08-01 01:31:25 +00:00
|
|
|
packagingOptions {
|
|
|
|
exclude 'META-INF/*'
|
|
|
|
}
|
|
|
|
|
2020-01-02 17:00:37 +00:00
|
|
|
buildTypes {
|
2016-08-29 12:50:41 +00:00
|
|
|
release {
|
|
|
|
minifyEnabled true
|
2017-11-28 21:02:45 +00:00
|
|
|
shrinkResources true
|
2020-07-31 23:56:40 +00:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
2016-08-29 12:50:41 +00:00
|
|
|
}
|
2020-01-02 17:00:37 +00:00
|
|
|
debug {
|
2020-09-02 14:00:57 +00:00
|
|
|
// Comment out the below lines if you do not need to test resource shrinking
|
|
|
|
// minifyEnabled true
|
|
|
|
// shrinkResources true
|
|
|
|
// proguardFiles getDefaultProguardFile(
|
|
|
|
// 'proguard-android-optimize.txt'),
|
|
|
|
// 'proguard-rules.pro'
|
2020-01-02 17:00:37 +00:00
|
|
|
}
|
2019-03-04 16:43:27 +00:00
|
|
|
}
|
2016-08-29 12:50:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2020-10-06 19:53:29 +00:00
|
|
|
// Kotlin
|
2021-10-27 19:01:24 +00:00
|
|
|
def coroutinesVersion = "1.5.2"
|
2020-01-02 17:00:37 +00:00
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
2021-03-04 20:03:12 +00:00
|
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion"
|
|
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutinesVersion"
|
2018-11-04 09:13:19 +00:00
|
|
|
|
2020-10-06 19:53:29 +00:00
|
|
|
// AndroidX
|
2021-05-02 15:29:13 +00:00
|
|
|
def navigationVersion = "2.3.5"
|
2021-09-16 13:53:31 +00:00
|
|
|
implementation "androidx.activity:activity-ktx:1.3.1"
|
|
|
|
implementation 'androidx.appcompat:appcompat:1.3.1'
|
2021-09-30 08:02:49 +00:00
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.1'
|
2021-09-16 13:53:31 +00:00
|
|
|
implementation 'androidx.core:core-ktx:1.6.0'
|
2021-03-04 20:03:12 +00:00
|
|
|
implementation "androidx.navigation:navigation-fragment-ktx:$navigationVersion"
|
|
|
|
implementation "androidx.navigation:navigation-ui-ktx:$navigationVersion"
|
2020-07-31 23:56:40 +00:00
|
|
|
implementation 'androidx.preference:preference-ktx:1.1.1'
|
2021-09-16 13:53:31 +00:00
|
|
|
implementation 'com.google.android.material:material:1.4.0'
|
2018-11-04 09:13:19 +00:00
|
|
|
|
2020-10-06 19:53:29 +00:00
|
|
|
// Gson
|
2021-09-16 13:53:31 +00:00
|
|
|
implementation 'com.google.code.gson:gson:2.8.8'
|
2020-01-02 17:00:37 +00:00
|
|
|
|
2020-10-06 19:53:29 +00:00
|
|
|
// OpenStreetMap
|
2021-09-16 13:53:31 +00:00
|
|
|
implementation 'org.osmdroid:osmdroid-android:6.1.11'
|
2016-08-29 12:50:41 +00:00
|
|
|
}
|