File tree Expand file tree Collapse file tree
java/com/example/mpos/util Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,8 +28,9 @@ android {
2828 }
2929
3030 compileOptions {
31- sourceCompatibility = JavaVersion . VERSION_17
32- targetCompatibility = JavaVersion . VERSION_17
31+ coreLibraryDesugaringEnabled true
32+ sourceCompatibility JavaVersion . VERSION_17
33+ targetCompatibility JavaVersion . VERSION_17
3334 }
3435
3536 kotlinOptions {
@@ -41,7 +42,7 @@ android {
4142 compose true
4243 }
4344 composeOptions {
44- kotlinCompilerExtensionVersion ' 1.4.0 '
45+ kotlinCompilerExtensionVersion ' 1.5.14 '
4546 }
4647 packagingOptions {
4748 resources {
@@ -53,6 +54,7 @@ android {
5354}
5455
5556dependencies {
57+ coreLibraryDesugaring(" com.android.tools:desugar_jdk_libs:1.1.5" )
5658 implementation(" br.zoop.pos.plugin:mpos:3.3.0" )
5759
5860 implementation(" androidx.legacy:legacy-support-v4:1.0.0" )
Original file line number Diff line number Diff line change 1111 <uses-permission android : name =" android.permission.BLUETOOTH_ADVERTISE" />
1212 <uses-permission android : name =" android.permission.ACCESS_FINE_LOCATION" />
1313 <uses-permission android : name =" android.permission.ACCESS_COARSE_LOCATION" />
14+ <uses-permission android : name =" android.permission.READ_PHONE_STATE" />
15+ <uses-permission android : name =" android.permission.READ_PRIVILEGED_PHONE_STATE" />
1416
1517
1618 <uses-feature android : name =" android.hardware.bluetooth" android : required =" true" />
Original file line number Diff line number Diff line change @@ -23,14 +23,16 @@ fun getPermissions(): List<String> {
2323 Manifest .permission.BLUETOOTH_CONNECT ,
2424 Manifest .permission.ACCESS_COARSE_LOCATION ,
2525 Manifest .permission.ACCESS_FINE_LOCATION ,
26- Manifest .permission.ACCESS_WIFI_STATE
26+ Manifest .permission.ACCESS_WIFI_STATE ,
27+ Manifest .permission.READ_PHONE_STATE ,
2728 )
2829 } else {
2930 listOf (
3031 Manifest .permission.BLUETOOTH ,
3132 Manifest .permission.BLUETOOTH_ADMIN ,
3233 Manifest .permission.ACCESS_COARSE_LOCATION ,
33- Manifest .permission.ACCESS_WIFI_STATE
34+ Manifest .permission.ACCESS_WIFI_STATE ,
35+ Manifest .permission.READ_PHONE_STATE
3436 )
3537 }
3638 return permissionsList
Original file line number Diff line number Diff line change @@ -9,16 +9,16 @@ buildscript {
99 }
1010
1111 dependencies {
12- classpath(' com.android.tools.build:gradle:8.5.0 ' )
13- classpath(' org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21 ' )
12+ classpath(' com.android.tools.build:gradle:8.5.2 ' )
13+ classpath(' org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.0 ' )
1414 classpath(" com.github.kezong:fat-aar:1.3.8" )
1515 classpath(' com.google.dagger:hilt-android-gradle-plugin:2.40.1' )
1616 classpath(" androidx.navigation:navigation-safe-args-gradle-plugin:2.5.3" )
1717 }
1818}
1919
2020plugins {
21- id ' org.jetbrains.kotlin.android' version ' 1.8.0 ' apply false
21+ id ' org.jetbrains.kotlin.android' version ' 1.9.24 ' apply false
2222}
2323
2424allprojects {
You can’t perform that action at this time.
0 commit comments