Factor out F-Droid buildscript (#8625)

Now RustDesk maintainers can make proactive changes in F-Droid
packaging script so F-Droid side is (fully) automated.

Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
This commit is contained in:
Vasyl Gello
2024-07-09 06:45:08 +03:00
committed by GitHub
parent 02572e9032
commit d007408061
5 changed files with 600 additions and 3 deletions

View File

@@ -0,0 +1,16 @@
diff --git a/flutter-sdk/.gclient b/flutter-sdk/.gclient
new file mode 100644
index 0000000..fd12886
--- /dev/null
+++ b/flutter-sdk/.gclient
@@ -0,0 +1,10 @@
+solutions = [
+ {
+ "managed": False,
+ "name": "src/flutter",
+ "url": "https://github.com/flutter/engine.git@FLUTTER_VERSION_PLACEHOLDER",
+ "custom_deps": {},
+ "deps_file": "DEPS",
+ "safesync_url": "",
+ },
+]

View File

@@ -0,0 +1,24 @@
diff --git a/flutter/android/app/build.gradle b/flutter/android/app/build.gradle
index f4dc69e..6b835fd 100644
--- a/flutter/android/app/build.gradle
+++ b/flutter/android/app/build.gradle
@@ -67,6 +67,19 @@ android {
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules'
}
}
+
+ applicationVariants.all { variant ->
+ variant.outputs.each { output ->
+ output.processManifest.doLast { task ->
+ def outputDir = multiApkManifestOutputDirectory.asFile.get()
+ File manifestOutFile = new File(outputDir, "AndroidManifest.xml")
+ if (manifestOutFile.exists()) {
+ def newFileContents = manifestOutFile.getText('UTF-8').replace("android:debuggable=\"true\"", "")
+ manifestOutFile.write(newFileContents, 'UTF-8')
+ }
+ }
+ }
+ }
}
flutter {