mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-16 21:54:05 +02:00
update libraries and request ACCESS_FINE_LOCATION for SDK < 29
This commit is contained in:
@@ -139,38 +139,38 @@ android {
|
||||
dependencies {
|
||||
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
|
||||
|
||||
implementation 'com.google.android.material:material:1.5.0-beta01'
|
||||
implementation 'com.google.android.material:material:1.6.0-beta01'
|
||||
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
||||
implementation 'androidx.appcompat:appcompat:1.3.1'
|
||||
implementation 'androidx.appcompat:appcompat:1.4.1'
|
||||
implementation 'androidx.recyclerview:recyclerview:1.2.1'
|
||||
implementation 'androidx.constraintlayout:constraintlayout:2.1.1'
|
||||
implementation 'androidx.preference:preference:1.1.1'
|
||||
implementation 'androidx.navigation:navigation-fragment:2.3.5'
|
||||
implementation 'androidx.navigation:navigation-ui:2.3.5'
|
||||
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
|
||||
implementation 'androidx.preference:preference:1.2.0'
|
||||
implementation 'androidx.navigation:navigation-fragment:2.4.2'
|
||||
implementation 'androidx.navigation:navigation-ui:2.4.2'
|
||||
implementation "android.arch.lifecycle:extensions:1.1.1"
|
||||
annotationProcessor "androidx.lifecycle:lifecycle-common-java8:2.3.1"
|
||||
annotationProcessor "androidx.lifecycle:lifecycle-common-java8:2.4.1"
|
||||
|
||||
// MPAndroidChart
|
||||
implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
|
||||
// Simple CSV
|
||||
implementation 'com.j256.simplecsv:simplecsv:2.6'
|
||||
// Blessed Android
|
||||
implementation 'com.github.weliem:blessed-android:2.1.2'
|
||||
implementation 'com.github.weliem:blessed-android:2.2.0'
|
||||
// CustomActivityOnCrash
|
||||
implementation 'cat.ereza:customactivityoncrash:2.3.0'
|
||||
// AppIntro
|
||||
implementation 'com.github.AppIntro:AppIntro:6.0.0'
|
||||
implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.4.32'
|
||||
// Room
|
||||
implementation 'androidx.room:room-runtime:2.3.0'
|
||||
annotationProcessor 'androidx.room:room-compiler:2.3.0'
|
||||
androidTestImplementation 'androidx.room:room-testing:2.3.0'
|
||||
implementation 'androidx.room:room-runtime:2.4.2'
|
||||
annotationProcessor 'androidx.room:room-compiler:2.4.2'
|
||||
androidTestImplementation 'androidx.room:room-testing:2.4.2'
|
||||
// Timber
|
||||
implementation 'com.jakewharton.timber:timber:5.0.1'
|
||||
// Local unit tests
|
||||
testImplementation 'junit:junit:4.13.1'
|
||||
// Instrumented unit tests
|
||||
androidTestImplementation 'androidx.annotation:annotation:1.2.0'
|
||||
androidTestImplementation 'androidx.annotation:annotation:1.3.0'
|
||||
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
||||
androidTestImplementation 'androidx.test:rules:1.4.0'
|
||||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
|
||||
|
@@ -78,7 +78,7 @@ public class PermissionHelper {
|
||||
return requestLocationPermission(fragment, new String[]{Manifest.permission.ACCESS_FINE_LOCATION});
|
||||
} else {
|
||||
Timber.d("SDK < 29 request for coarse location permission");
|
||||
return requestLocationPermission(fragment, new String[]{Manifest.permission.ACCESS_COARSE_LOCATION});
|
||||
return requestLocationPermission(fragment, new String[]{Manifest.permission.ACCESS_FINE_LOCATION});
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user