From 8d699dee2fb0bbffbf85e7f3c721e4ab5ac342f0 Mon Sep 17 00:00:00 2001
From: louis <869322496@qq.com>
Date: Thu, 28 Mar 2024 15:13:27 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E5=87=BA=E5=85=A5=E5=BA=93=E7=99=BB?=
=?UTF-8?q?=E8=AE=B0=E5=8A=9F=E8=83=BD=E5=AE=8C=E6=88=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
android/app/build.gradle | 16 +-
android/app/src/main/AndroidManifest.xml | 26 ++-
.../res/drawable-hdpi/android12splash.png | Bin 0 -> 26646 bytes
.../res/drawable-land/launch_background.xml | 6 -
.../res/drawable-mdpi/android12splash.png | Bin 0 -> 14468 bytes
.../drawable-night-hdpi/android12splash.png | Bin 0 -> 26646 bytes
.../drawable-night-mdpi/android12splash.png | Bin 0 -> 14468 bytes
.../drawable-night-xhdpi/android12splash.png | Bin 0 -> 42247 bytes
.../drawable-night-xxhdpi/android12splash.png | Bin 0 -> 79622 bytes
.../android12splash.png | Bin 0 -> 124048 bytes
.../src/main/res/drawable-v21/background.png | Bin 95215 -> 124048 bytes
.../res/drawable-xhdpi/android12splash.png | Bin 0 -> 42247 bytes
.../res/drawable-xxhdpi/android12splash.png | Bin 0 -> 79622 bytes
.../res/drawable-xxxhdpi/android12splash.png | Bin 0 -> 124048 bytes
.../app/src/main/res/drawable/background.png | Bin 95215 -> 124048 bytes
.../src/main/res/values-night-v31/styles.xml | 2 +
.../app/src/main/res/values-v31/styles.xml | 2 +
assets/images/launch_image.jpg | Bin 113350 -> 58055 bytes
assets/images/launch_image_landscape.jpg | Bin 0 -> 41337 bytes
flutter_native_splash.yaml | 8 -
.../LaunchBackground.imageset/background.png | Bin 95215 -> 124048 bytes
ios/Runner/Base.lproj/LaunchScreen.storyboard | 2 +-
ios/Runner/Info.plist | 2 +
keystore.jks | Bin 0 -> 2169 bytes
lib/apis/index.dart | 13 +-
lib/config.dart | 7 +-
lib/constants/global_url.dart | 4 +-
lib/main.dart | 24 ++-
lib/models/dept.model.dart | 33 +++
lib/models/role.model.dart | 73 ++++---
lib/models/user_info.model.dart | 128 +++++------
.../components/custom_app_bar.dart | 2 +-
lib/screens/login/login copy.dart | 11 -
lib/screens/login/login.controller.dart | 2 +
.../components/agent_search.dart | 201 ++++++++++++++++++
.../new_inventory_inout.dart | 50 ++++-
lib/screens/workbench/workbench.dart | 4 +-
lib/services/app_info.service.dart | 28 +--
lib/services/dio.service.dart | 4 +-
lib/store/auth.store.dart | 27 +--
lib/widgets/fade_in_cache_image.dart | 27 +--
lib/widgets/image_preview.dart | 1 -
pubspec.lock | 16 +-
pubspec.yaml | 16 +-
web/index.html | 100 ++++++++-
web/splash/img/light-background.png | Bin 0 -> 124048 bytes
46 files changed, 623 insertions(+), 212 deletions(-)
create mode 100644 android/app/src/main/res/drawable-hdpi/android12splash.png
delete mode 100644 android/app/src/main/res/drawable-land/launch_background.xml
create mode 100644 android/app/src/main/res/drawable-mdpi/android12splash.png
create mode 100644 android/app/src/main/res/drawable-night-hdpi/android12splash.png
create mode 100644 android/app/src/main/res/drawable-night-mdpi/android12splash.png
create mode 100644 android/app/src/main/res/drawable-night-xhdpi/android12splash.png
create mode 100644 android/app/src/main/res/drawable-night-xxhdpi/android12splash.png
create mode 100644 android/app/src/main/res/drawable-night-xxxhdpi/android12splash.png
create mode 100644 android/app/src/main/res/drawable-xhdpi/android12splash.png
create mode 100644 android/app/src/main/res/drawable-xxhdpi/android12splash.png
create mode 100644 android/app/src/main/res/drawable-xxxhdpi/android12splash.png
create mode 100644 assets/images/launch_image_landscape.jpg
delete mode 100644 flutter_native_splash.yaml
create mode 100644 keystore.jks
create mode 100644 lib/models/dept.model.dart
create mode 100644 lib/screens/new_inventory_inout/components/agent_search.dart
create mode 100644 web/splash/img/light-background.png
diff --git a/android/app/build.gradle b/android/app/build.gradle
index 7766687..4c34ce2 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -3,6 +3,11 @@ plugins {
id "kotlin-android"
id "dev.flutter.flutter-gradle-plugin"
}
+def keystoreProperties = new Properties()
+def keystorePropertiesFile = rootProject.file('key.properties')
+if (keystorePropertiesFile.exists()) {
+ keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
+}
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
@@ -50,12 +55,19 @@ android {
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
-
+ signingConfigs {
+ release {
+ keyAlias keystoreProperties['keyAlias']
+ keyPassword keystoreProperties['keyPassword']
+ storeFile file(keystoreProperties['storeFile'])
+ storePassword keystoreProperties['storePassword']
+ }
+ }
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
- signingConfig signingConfigs.debug
+ signingConfig signingConfigs.release
}
}
}
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index feb0cbd..37f7207 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -17,12 +17,12 @@
while the Flutter UI initializes. After that, this theme continues
to determine the Window background behind the Flutter UI. -->