1
0
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:
oliexdev
2022-04-15 11:30:06 +02:00
parent c486dc6d3c
commit b273e5f61f
2 changed files with 13 additions and 13 deletions

View File

@@ -139,38 +139,38 @@ android {
dependencies { dependencies {
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5' 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.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.recyclerview:recyclerview:1.2.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.1' implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
implementation 'androidx.preference:preference:1.1.1' implementation 'androidx.preference:preference:1.2.0'
implementation 'androidx.navigation:navigation-fragment:2.3.5' implementation 'androidx.navigation:navigation-fragment:2.4.2'
implementation 'androidx.navigation:navigation-ui:2.3.5' implementation 'androidx.navigation:navigation-ui:2.4.2'
implementation "android.arch.lifecycle:extensions:1.1.1" 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 // MPAndroidChart
implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0' implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
// Simple CSV // Simple CSV
implementation 'com.j256.simplecsv:simplecsv:2.6' implementation 'com.j256.simplecsv:simplecsv:2.6'
// Blessed Android // Blessed Android
implementation 'com.github.weliem:blessed-android:2.1.2' implementation 'com.github.weliem:blessed-android:2.2.0'
// CustomActivityOnCrash // CustomActivityOnCrash
implementation 'cat.ereza:customactivityoncrash:2.3.0' implementation 'cat.ereza:customactivityoncrash:2.3.0'
// AppIntro // AppIntro
implementation 'com.github.AppIntro:AppIntro:6.0.0' implementation 'com.github.AppIntro:AppIntro:6.0.0'
implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.4.32' implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.4.32'
// Room // Room
implementation 'androidx.room:room-runtime:2.3.0' implementation 'androidx.room:room-runtime:2.4.2'
annotationProcessor 'androidx.room:room-compiler:2.3.0' annotationProcessor 'androidx.room:room-compiler:2.4.2'
androidTestImplementation 'androidx.room:room-testing:2.3.0' androidTestImplementation 'androidx.room:room-testing:2.4.2'
// Timber // Timber
implementation 'com.jakewharton.timber:timber:5.0.1' implementation 'com.jakewharton.timber:timber:5.0.1'
// Local unit tests // Local unit tests
testImplementation 'junit:junit:4.13.1' testImplementation 'junit:junit:4.13.1'
// Instrumented unit tests // 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.ext:junit:1.1.3'
androidTestImplementation 'androidx.test:rules:1.4.0' androidTestImplementation 'androidx.test:rules:1.4.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'

View File

@@ -78,7 +78,7 @@ public class PermissionHelper {
return requestLocationPermission(fragment, new String[]{Manifest.permission.ACCESS_FINE_LOCATION}); return requestLocationPermission(fragment, new String[]{Manifest.permission.ACCESS_FINE_LOCATION});
} else { } else {
Timber.d("SDK < 29 request for coarse location permission"); 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});
} }
} }