浏览代码

Remove SYSTEM_ALERT_WINDOW permission correctly for release bundle

pull/531/head
Guillaume Vincent 4 年前
父节点
当前提交
c6af54b980
共有 2 个文件被更改,包括 1 次插入3 次删除
  1. +0
    -2
      mobile/android/app/build.gradle
  2. +1
    -1
      mobile/android/app/src/main/AndroidManifest.xml

+ 0
- 2
mobile/android/app/build.gradle 查看文件

@@ -171,13 +171,11 @@ android {
buildTypes {
debug {
signingConfig signingConfigs.debug
manifestPlaceholders = [excludeSystemAlertWindowPermission: "false"]
}
release {
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
signingConfig signingConfigs.release
manifestPlaceholders = [excludeSystemAlertWindowPermission: "true"]
}
}



+ 1
- 1
mobile/android/app/src/main/AndroidManifest.xml 查看文件

@@ -5,7 +5,7 @@

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.USE_FINGERPRINT" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" tools:remove="${excludeSystemAlertWindowPermission}"/>
<uses-permission tools:node="remove" android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<uses-permission tools:node="remove" android:name="android.permission.READ_PHONE_STATE" />
<uses-permission tools:node="remove" android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission tools:node="remove" android:name="android.permission.READ_EXTERNAL_STORAGE" />


正在加载...
取消
保存