Skip to content

基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。

meet f-droid version code requirement

ErBW_s526107df2292
diff --git a/android/app/build.gradle b/android/app/build.gradle
index 84e971a4..02cb9d12 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -67,3 +67,20 @@ flutter {
}
dependencies {}
+
+// F-droid splits APKs by ABI, and requires different versionCode for each ABI.
+// For flutter version X.Y.Z, version code is XYZA, where A is the ABI code.
+// See:
+// * https://developer.android.com/build/gradle-tips
+// * https://developer.android.com/studio/build/configure-apk-splits
+// * https://gitlab.com/fdroid/fdroiddata/-/blob/master/metadata/im.nfc.nfsee.yml
+ext.abiCodes = ["armeabi-v7a": 1, "arm64-v8a": 2, "x86_64": 4]
+import com.android.build.OutputFile
+android.applicationVariants.all { variant ->
+ variant.outputs.each { output ->
+ def abiVersionCode = project.ext.abiCodes.get(output.getFilter(OutputFile.ABI))
+ if (abiVersionCode != null) {
+ output.versionCodeOverride = variant.versionCode * 10 + abiVersionCode
+ }
+ }
+}
diff --git a/pubspec.yaml b/pubspec.yaml
index c08eaa26..069a4f31 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
-version: 1.5.2+1
+version: 1.5.2+152
environment:
sdk: '>=3.3.4 <4.0.0'