Ver código fonte

Remove SYSTEM_ALERT_WINDOW permission correctly for release bundle

pull/531/head
Guillaume Vincent 4 anos atrás
pai
commit
c6af54b980
2 arquivos alterados com 1 adições e 3 exclusões
  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 Ver arquivo

@@ -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 Ver arquivo

@@ -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" />


Carregando…
Cancelar
Salvar