From ab8974c0a8531b2bbcea2f07b9085bf9ca2fa950 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Tue, 1 Jul 2025 09:29:03 -0400 Subject: [PATCH] Start to build app skeleton --- moneymgr_mobile/.gitignore | 3 + moneymgr_mobile/README.md | 7 +- moneymgr_mobile/android/app/build.gradle.kts | 3 +- .../src/main/res/drawable-v21/background.png | Bin 0 -> 69 bytes .../res/drawable-v21/launch_background.xml | 12 +- .../app/src/main/res/drawable/background.png | Bin 0 -> 69 bytes .../main/res/drawable/launch_background.xml | 12 +- .../src/main/res/values-night-v31/styles.xml | 19 + .../app/src/main/res/values-night/styles.xml | 4 + .../app/src/main/res/values-v31/styles.xml | 19 + .../app/src/main/res/values/styles.xml | 4 + moneymgr_mobile/flutter_native_splash.yaml | 154 ++++ .../LaunchBackground.imageset/Contents.json | 21 + .../LaunchBackground.imageset/background.png | Bin 0 -> 69 bytes .../LaunchImage.imageset/Contents.json | 10 +- .../LaunchImage.imageset/LaunchImage.png | Bin 68 -> 69 bytes .../LaunchImage.imageset/LaunchImage@2x.png | Bin 68 -> 69 bytes .../LaunchImage.imageset/LaunchImage@3x.png | Bin 68 -> 69 bytes .../Runner/Base.lproj/LaunchScreen.storyboard | 15 +- moneymgr_mobile/ios/Runner/Info.plist | 92 +-- moneymgr_mobile/lib/main.dart | 167 ++--- moneymgr_mobile/lib/providers/settings.dart | 37 + .../lib/services/storage/prefs.dart | 11 + .../lib/utils/provider_observer.dart | 42 ++ moneymgr_mobile/lib/utils/theme_utils.dart | 36 + .../Flutter/GeneratedPluginRegistrant.swift | 2 + moneymgr_mobile/pubspec.lock | 671 +++++++++++++++++- moneymgr_mobile/pubspec.yaml | 22 + moneymgr_mobile/test/widget_test.dart | 7 +- moneymgr_mobile/web/index.html | 79 ++- 30 files changed, 1264 insertions(+), 185 deletions(-) create mode 100644 moneymgr_mobile/android/app/src/main/res/drawable-v21/background.png create mode 100644 moneymgr_mobile/android/app/src/main/res/drawable/background.png create mode 100644 moneymgr_mobile/android/app/src/main/res/values-night-v31/styles.xml create mode 100644 moneymgr_mobile/android/app/src/main/res/values-v31/styles.xml create mode 100644 moneymgr_mobile/flutter_native_splash.yaml create mode 100644 moneymgr_mobile/ios/Runner/Assets.xcassets/LaunchBackground.imageset/Contents.json create mode 100644 moneymgr_mobile/ios/Runner/Assets.xcassets/LaunchBackground.imageset/background.png create mode 100644 moneymgr_mobile/lib/providers/settings.dart create mode 100644 moneymgr_mobile/lib/services/storage/prefs.dart create mode 100644 moneymgr_mobile/lib/utils/provider_observer.dart create mode 100644 moneymgr_mobile/lib/utils/theme_utils.dart diff --git a/moneymgr_mobile/.gitignore b/moneymgr_mobile/.gitignore index 79c113f..a975a0e 100644 --- a/moneymgr_mobile/.gitignore +++ b/moneymgr_mobile/.gitignore @@ -43,3 +43,6 @@ app.*.map.json /android/app/debug /android/app/profile /android/app/release + + +*.g.dart \ No newline at end of file diff --git a/moneymgr_mobile/README.md b/moneymgr_mobile/README.md index a54a31b..0e41772 100644 --- a/moneymgr_mobile/README.md +++ b/moneymgr_mobile/README.md @@ -1,3 +1,8 @@ # MoneyMgrMobile -Mobile application for MoneyMgr, built using Flutter \ No newline at end of file +Mobile application for MoneyMgr, built using Flutter + + +## Build +1. Run `flutter pub get` to get dependencies. +2. Run `dart run build_runner build` to generate required files. You can also run `dart run build_runner watch` to generate files and let [build_runner] watch for changes and rebuild if necessary. diff --git a/moneymgr_mobile/android/app/build.gradle.kts b/moneymgr_mobile/android/app/build.gradle.kts index a0f6823..6220710 100644 --- a/moneymgr_mobile/android/app/build.gradle.kts +++ b/moneymgr_mobile/android/app/build.gradle.kts @@ -8,7 +8,8 @@ plugins { android { namespace = "com.example.moneymgr_mobile" compileSdk = flutter.compileSdkVersion - ndkVersion = flutter.ndkVersion + // ndkVersion = flutter.ndkVersion + ndkVersion = "27.0.12077973" compileOptions { sourceCompatibility = JavaVersion.VERSION_11 diff --git a/moneymgr_mobile/android/app/src/main/res/drawable-v21/background.png b/moneymgr_mobile/android/app/src/main/res/drawable-v21/background.png new file mode 100644 index 0000000000000000000000000000000000000000..11559e3c4b6514229f6758c1d9e607542187c781 GIT binary patch literal 69 zcmeAS@N?(olHy`uVBq!ia0vp^j3CUx1SBVv2j2ryJf1F&Ar*6y3!{FCGB8UrKKvJP Ry#^@G;OXk;vd$@?2>`{25IO(= literal 0 HcmV?d00001 diff --git a/moneymgr_mobile/android/app/src/main/res/drawable-v21/launch_background.xml b/moneymgr_mobile/android/app/src/main/res/drawable-v21/launch_background.xml index f74085f..f88598c 100644 --- a/moneymgr_mobile/android/app/src/main/res/drawable-v21/launch_background.xml +++ b/moneymgr_mobile/android/app/src/main/res/drawable-v21/launch_background.xml @@ -1,12 +1,6 @@ - - - - - + + + diff --git a/moneymgr_mobile/android/app/src/main/res/drawable/background.png b/moneymgr_mobile/android/app/src/main/res/drawable/background.png new file mode 100644 index 0000000000000000000000000000000000000000..11559e3c4b6514229f6758c1d9e607542187c781 GIT binary patch literal 69 zcmeAS@N?(olHy`uVBq!ia0vp^j3CUx1SBVv2j2ryJf1F&Ar*6y3!{FCGB8UrKKvJP Ry#^@G;OXk;vd$@?2>`{25IO(= literal 0 HcmV?d00001 diff --git a/moneymgr_mobile/android/app/src/main/res/drawable/launch_background.xml b/moneymgr_mobile/android/app/src/main/res/drawable/launch_background.xml index 304732f..f88598c 100644 --- a/moneymgr_mobile/android/app/src/main/res/drawable/launch_background.xml +++ b/moneymgr_mobile/android/app/src/main/res/drawable/launch_background.xml @@ -1,12 +1,6 @@ - - - - - + + + diff --git a/moneymgr_mobile/android/app/src/main/res/values-night-v31/styles.xml b/moneymgr_mobile/android/app/src/main/res/values-night-v31/styles.xml new file mode 100644 index 0000000..5fef228 --- /dev/null +++ b/moneymgr_mobile/android/app/src/main/res/values-night-v31/styles.xml @@ -0,0 +1,19 @@ + + + + + + + diff --git a/moneymgr_mobile/android/app/src/main/res/values-night/styles.xml b/moneymgr_mobile/android/app/src/main/res/values-night/styles.xml index 06952be..dbc9ea9 100644 --- a/moneymgr_mobile/android/app/src/main/res/values-night/styles.xml +++ b/moneymgr_mobile/android/app/src/main/res/values-night/styles.xml @@ -5,6 +5,10 @@ @drawable/launch_background + false + false + false + shortEdges + + + + diff --git a/moneymgr_mobile/android/app/src/main/res/values/styles.xml b/moneymgr_mobile/android/app/src/main/res/values/styles.xml index cb1ef88..0d1fa8f 100644 --- a/moneymgr_mobile/android/app/src/main/res/values/styles.xml +++ b/moneymgr_mobile/android/app/src/main/res/values/styles.xml @@ -5,6 +5,10 @@ @drawable/launch_background + false + false + false + shortEdges - + moneymgr_mobile + + + - - - + + + + \ No newline at end of file