fix: fdroid build (#548)

This commit is contained in:
lollipopkit🏳️‍⚧️
2024-08-25 22:06:55 +08:00
parent 3e7315dac6
commit bcbf1fbc17
4 changed files with 79 additions and 17 deletions

View File

@@ -682,11 +682,11 @@ class _ServerEditPageState extends State<ServerEditPage> with AfterLayoutMixin {
text: libL10n.import, text: libL10n.import,
icon: const Icon(Icons.qr_code, color: Colors.grey), icon: const Icon(Icons.qr_code, color: Colors.grey),
onTap: () async { onTap: () async {
final codes = await BarcodeScannerPage.route.go( final ret = await BarcodeScannerPage.route.go(
context, context,
args: const BarcodeScannerPageArgs(), args: const BarcodeScannerPageArgs(),
); );
final code = codes?.firstOrNull?.rawValue; final code = ret?.text;
if (code == null) return; if (code == null) return;
try { try {
final spi = Spi.fromJson(json.decode(code)); final spi = Spi.fromJson(json.decode(code));

View File

@@ -8,7 +8,6 @@ import Foundation
import dynamic_color import dynamic_color
import icloud_storage import icloud_storage
import local_auth_darwin import local_auth_darwin
import mobile_scanner
import package_info_plus import package_info_plus
import path_provider_foundation import path_provider_foundation
import screen_retriever import screen_retriever
@@ -22,7 +21,6 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
DynamicColorPlugin.register(with: registry.registrar(forPlugin: "DynamicColorPlugin")) DynamicColorPlugin.register(with: registry.registrar(forPlugin: "DynamicColorPlugin"))
IcloudStoragePlugin.register(with: registry.registrar(forPlugin: "IcloudStoragePlugin")) IcloudStoragePlugin.register(with: registry.registrar(forPlugin: "IcloudStoragePlugin"))
FLALocalAuthPlugin.register(with: registry.registrar(forPlugin: "FLALocalAuthPlugin")) FLALocalAuthPlugin.register(with: registry.registrar(forPlugin: "FLALocalAuthPlugin"))
MobileScannerPlugin.register(with: registry.registrar(forPlugin: "MobileScannerPlugin"))
FPPPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FPPPackageInfoPlusPlugin")) FPPPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FPPPackageInfoPlusPlugin"))
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
ScreenRetrieverPlugin.register(with: registry.registrar(forPlugin: "ScreenRetrieverPlugin")) ScreenRetrieverPlugin.register(with: registry.registrar(forPlugin: "ScreenRetrieverPlugin"))

View File

@@ -134,6 +134,46 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "8.9.2" version: "8.9.2"
camera:
dependency: transitive
description:
name: camera
sha256: "26ff41045772153f222ffffecba711a206f670f5834d40ebf5eed3811692f167"
url: "https://pub.dev"
source: hosted
version: "0.11.0+2"
camera_android_camerax:
dependency: transitive
description:
name: camera_android_camerax
sha256: "7cd93578ad201dcc6bb5810451fb00d76a86bab9b68dceb68b8cbd7038ac5846"
url: "https://pub.dev"
source: hosted
version: "0.6.8+3"
camera_avfoundation:
dependency: transitive
description:
name: camera_avfoundation
sha256: "7c28969a975a7eb2349bc2cb2dfe3ad218a33dba9968ecfb181ce08c87486655"
url: "https://pub.dev"
source: hosted
version: "0.9.17+3"
camera_platform_interface:
dependency: transitive
description:
name: camera_platform_interface
sha256: b3ede1f171532e0d83111fe0980b46d17f1aa9788a07a2fbed07366bbdbb9061
url: "https://pub.dev"
source: hosted
version: "2.8.0"
camera_web:
dependency: transitive
description:
name: camera_web
sha256: "595f28c89d1fb62d77c73c633193755b781c6d2e0ebcd8dc25b763b514e6ba8f"
url: "https://pub.dev"
source: hosted
version: "0.3.5"
characters: characters:
dependency: transitive dependency: transitive
description: description:
@@ -142,6 +182,14 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.3.0" version: "1.3.0"
charset:
dependency: transitive
description:
name: charset
sha256: "27802032a581e01ac565904ece8c8962564b1070690794f0072f6865958ce8b9"
url: "https://pub.dev"
source: hosted
version: "2.0.1"
checked_yaml: checked_yaml:
dependency: transitive dependency: transitive
description: description:
@@ -390,8 +438,8 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
path: "." path: "."
ref: "v1.0.142" ref: "v1.0.143"
resolved-ref: "0860beabd5096dd5f783d8c60b860c81895477dd" resolved-ref: "241ab972985a97abcba032cba96229bdff61a759"
url: "https://github.com/lppcg/fl_lib" url: "https://github.com/lppcg/fl_lib"
source: git source: git
version: "0.0.1" version: "0.0.1"
@@ -823,14 +871,6 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.0.5" version: "1.0.5"
mobile_scanner:
dependency: transitive
description:
name: mobile_scanner
sha256: b8c0e9afcfd52534f85ec666f3d52156f560b5e6c25b1e3d4fe2087763607926
url: "https://pub.dev"
source: hosted
version: "5.1.1"
nested: nested:
dependency: transitive dependency: transitive
description: description:
@@ -968,6 +1008,14 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.1.8" version: "2.1.8"
pocketbase:
dependency: transitive
description:
name: pocketbase
sha256: "1d2958a3a7cb1e0050f425f179bd6557441fafcf740a79d5b8b80d6954149790"
url: "https://pub.dev"
source: hosted
version: "0.18.1"
pointycastle: pointycastle:
dependency: transitive dependency: transitive
description: description:
@@ -1024,6 +1072,14 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "3.0.2" version: "3.0.2"
qr_code_dart_scan:
dependency: transitive
description:
name: qr_code_dart_scan
sha256: "7a6d4a17a8b68bea78b96ed2dab00a0619600517bcd6ea9195e40b0aebcab556"
url: "https://pub.dev"
source: hosted
version: "0.9.0"
quiver: quiver:
dependency: transitive dependency: transitive
description: description:
@@ -1536,6 +1592,14 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.0.6" version: "0.0.6"
zxing_lib:
dependency: transitive
description:
name: zxing_lib
sha256: "870a63610be3f20009ca9201f7ba2d53d7eaefa675c154b3e8c1f6fc55984d04"
url: "https://pub.dev"
source: hosted
version: "1.1.2"
sdks: sdks:
dart: ">=3.5.0-259.0.dev <4.0.0" dart: ">=3.5.0 <4.0.0"
flutter: ">=3.22.0" flutter: ">=3.24.0"

View File

@@ -60,7 +60,7 @@ dependencies:
fl_lib: fl_lib:
git: git:
url: https://github.com/lppcg/fl_lib url: https://github.com/lppcg/fl_lib
ref: v1.0.142 ref: v1.0.143
dependency_overrides: dependency_overrides:
# dartssh2: # dartssh2: