From a2a5baa3ed56c727f35bb7b4954cae67b2633d5f Mon Sep 17 00:00:00 2001
From: Jing <42014615+jing332@users.noreply.github.com>
Date: Mon, 15 Jan 2024 19:05:48 +0800
Subject: [PATCH] admin password
---
android/app/build.gradle | 2 +-
android/app/src/main/AndroidManifest.xml | 5 +-
.../github/jing332/pigeon/GeneratedApi.java | 38 +++++++++++++
.../jing332/alistflutter/AListService.kt | 44 ++++++++-------
.../jing332/alistflutter/MainActivity.kt | 19 ++++---
.../alistflutter/bridge/AndroidBridge.kt | 2 +-
.../jing332/alistflutter/model/alist/AList.kt | 33 ++++++------
.../jing332/alistflutter/utils/MyTools.kt | 3 +-
android/settings.gradle | 1 +
android/utils/build.gradle | 35 ++++++++++++
android/utils/build.gradle.kts | 54 -------------------
lib/generated_api.dart | 28 ++++++++++
lib/main.dart | 3 ++
lib/pages/alist.dart | 3 ++
lib/pages/pwd_edit_dialog.dart | 15 +++---
pigeons/pigeon.dart | 5 ++
16 files changed, 175 insertions(+), 115 deletions(-)
create mode 100644 android/utils/build.gradle
delete mode 100644 android/utils/build.gradle.kts
diff --git a/android/app/build.gradle b/android/app/build.gradle
index e392095..d0dccaa 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -130,7 +130,7 @@ flutter {
//}
dependencies {
// compileOnly files("$flutterRoot/bin/cache/artifacts/engine/android-arm/flutter.jar")
-
+ implementation project(":utils")
//noinspection GradleDependency
implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0'
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index cedbe6e..4792a71 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -39,7 +39,10 @@
tools:ignore="UnusedAttribute">
+ android:exported="true"
+ android:launchMode="singleTask"
+ android:taskAffinity="alist.switch"
+ android:theme="@android:style/Theme.NoDisplay" />
getCodec() {
+ return new StandardMessageCodec();
+ }
+ public void getLocalIpAddress(@NonNull Result result) {
+ final String channelName = "dev.flutter.pigeon.alist_flutter.Flutter.getLocalIpAddress";
+ BasicMessageChannel