1- apply plugin : ' com.android.application'
2- apply plugin : ' kotlin-android'
3- apply plugin : ' kotlin-android-extensions'
4- apply plugin : ' kotlin-kapt'
5- apply plugin : ' realm-android'
6-
7- // Add the Firebase Crashlytics plugin.
8- apply plugin : ' com.google.firebase.crashlytics'
1+ plugins {
2+ id ' com.android.application'
3+ id ' kotlin-android'
4+ id ' kotlin-android-extensions'
5+ id ' kotlin-kapt'
6+ id ' realm-android'
7+ // Add the Firebase Crashlytics plugin.
8+ id ' com.google.firebase.crashlytics'
9+ }
910
1011def versionMajor = 3
11- def versionMinor = 3
12+ def versionMinor = 4
1213def versionPatch = 0
1314def versionBuild = 1
1415
@@ -17,19 +18,23 @@ def appVersionBuild = Integer.valueOf(System.env.GITHUB_RUN_NUMBER ?: versionBui
1718android {
1819 namespace ' online.taxcore.pos'
1920
20- compileSdkVersion 33
21+ compileSdk 34
2122
2223 bundle {
2324 language {
2425 enableSplit = false
2526 }
2627 }
2728
29+ buildFeatures {
30+ viewBinding true
31+ }
32+
2833 defaultConfig {
2934 applicationId " online.taxcore.pos"
3035
31- minSdkVersion 24
32- targetSdkVersion 33
36+ minSdk 24
37+ targetSdk 34
3338
3439 versionCode versionMajor * 10000 + versionMinor * 100 + versionPatch * 10 + appVersionBuild
3540 versionName " ${ versionMajor} .${ versionMinor} .${ versionPatch} "
@@ -67,11 +72,11 @@ android {
6772 }
6873
6974 compileOptions {
70- sourceCompatibility = 1.8
71- targetCompatibility = 1.8
75+ sourceCompatibility JavaVersion . VERSION_17
76+ targetCompatibility JavaVersion . VERSION_17
7277 }
7378
74- task printVersionInformation {
79+ tasks . register( " printVersionInformation" ) {
7580 // Full version with build number
7681 println defaultConfig. versionName
7782 // Version without build number
@@ -92,19 +97,19 @@ dependencies {
9297
9398 implementation ' org.bouncycastle:bcpkix-jdk15on:1.67'
9499
95- implementation " com.pawegio.kandroid :kandroid:0.8.7@aar"
100+ implementation ' com.github.pawegio :kandroid:0.8.7@aar'
96101
97102 // Android libs
98- implementation " androidx.appcompat:appcompat:1.6.1 "
103+ implementation " androidx.appcompat:appcompat:1.7.0 "
99104 implementation " androidx.constraintlayout:constraintlayout:2.1.4"
100- implementation " androidx.preference:preference-ktx:1.2.0 "
105+ implementation " androidx.preference:preference-ktx:1.2.1 "
101106 implementation " androidx.security:security-crypto:1.0.0"
102- implementation " androidx.core:core-ktx:1.9.0 "
103- implementation " androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1 "
107+ implementation " androidx.core:core-ktx:1.13.1 "
108+ implementation " androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.3 "
104109
105110 implementation " com.android.support:design:$support "
106111 implementation " com.android.support.constraint:constraint-layout:2.0.4"
107- implementation " com.google.android.material:material:1.8 .0"
112+ implementation " com.google.android.material:material:1.12 .0"
108113
109114 // dagger
110115 implementation " com.google.dagger:dagger:$dagger "
@@ -118,7 +123,7 @@ dependencies {
118123 implementation " com.squareup.retrofit2:retrofit:2.9.0"
119124 implementation " com.squareup.retrofit2:converter-gson:2.9.0"
120125 implementation " com.squareup.okhttp3:logging-interceptor:4.9.2"
121- implementation " com.google.code.gson:gson:2.8.9 "
126+ implementation " com.google.code.gson:gson:2.10.1 "
122127
123128 // Glide
124129 implementation " com.github.bumptech.glide:glide:4.12.0"
@@ -131,20 +136,18 @@ dependencies {
131136 implementation ' com.afollestad.material-dialogs:bottomsheets:3.3.0'
132137 implementation ' com.afollestad.material-dialogs:datetime:3.3.0'
133138
134- implementation ' com.chaos.view :pinview:1.4.3 '
139+ implementation ' io.github.chaosleung :pinview:1.4.4 '
135140
136141 implementation " org.greenrobot:eventbus:3.0.0"
137142 implementation ' io.github.inflationx:calligraphy3:3.1.1'
138143 implementation ' io.github.inflationx:viewpump:2.0.3'
139144 implementation " com.itextpdf:itextpdf:5.5.13.3"
140145 implementation " com.madgag:scpkix-jdk15on:1.47.0.1"
141- implementation " net.cachapa.expandablelayout:expandablelayout:2.9.2"
142146
143147 implementation " com.github.vicpinm:krealmextensions:2.5.0"
144148
145149 // Kotlin
146- implementation " org.jetbrains.anko:anko-commons:0.10.5"
147- implementation " org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4"
150+ implementation " org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3"
148151
149152 implementation platform(' com.google.firebase:firebase-bom:26.2.0' )
150153
0 commit comments