0001-x86-no-debuggable.patch 942 B

12345678910111213141516171819202122232425
  1. diff --git a/flutter/android/app/build.gradle b/flutter/android/app/build.gradle
  2. index f4dc69e..6b835fd 100644
  3. --- a/flutter/android/app/build.gradle
  4. +++ b/flutter/android/app/build.gradle
  5. @@ -67,6 +67,19 @@ android {
  6. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules'
  7. }
  8. }
  9. +
  10. + applicationVariants.all { variant ->
  11. + variant.outputs.each { output ->
  12. + output.processManifest.doLast { task ->
  13. + def outputDir = multiApkManifestOutputDirectory.asFile.get()
  14. + File manifestOutFile = new File(outputDir, "AndroidManifest.xml")
  15. + if (manifestOutFile.exists()) {
  16. + def newFileContents = manifestOutFile.getText('UTF-8').replace("android:debuggable=\"true\"", "")
  17. + manifestOutFile.write(newFileContents, 'UTF-8')
  18. + }
  19. + }
  20. + }
  21. + }
  22. }
  23. flutter {