merge code

This commit is contained in:
qiji4215 2023-04-06 10:40:22 +08:00
parent ca1be58db2
commit 32b6af86c3
5 changed files with 10 additions and 3 deletions

View File

@ -6,6 +6,8 @@
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<!-- 这个权限用于访问GPS定位-->
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<!-- 这个权限用于访问GPS定位-->
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION"/>
<!-- 用于访问wifi网络信息wifi信息会用于进行网络定位-->
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<!-- 获取运营商信息,用于支持提供运营商信息相关的接口-->

View File

@ -28,7 +28,8 @@ open class PermissionsActivity : BaseActivity() {
//定位权限
permissionList.add(Permission.ACCESS_FINE_LOCATION)
permissionList.add(Permission.ACCESS_COARSE_LOCATION)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
//android10
if (Build.VERSION.SDK_INT == Build.VERSION_CODES.Q) {
permissionList.add(Permission.ACCESS_BACKGROUND_LOCATION)
}
XXPermissions.with(this)

View File

@ -2,6 +2,9 @@
buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:4.2.2'
classpath('androidx.multidex:multidex:2.0.1')
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
classpath "io.realm:realm-gradle-plugin:10.10.1"
}
}

View File

@ -27,4 +27,5 @@ systemProp.http.proxyPort=1080
systemProp.https.proxyHost=127.0.0.1
systemProp.https.proxyPort=1080
org.gradle.configureondemand=true
android.experimental.legacyTransform.forceNonIncremental=true
android.experimental.legacyTransform.forceNonIncremental=true
android.injected.studio.version.check = false

View File

@ -1,6 +1,6 @@
#Tue Mar 21 10:15:37 CST 2023
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME