diff --git a/.flutter b/.flutter index ea121f8..b25305a 160000 --- a/.flutter +++ b/.flutter @@ -1 +1 @@ -Subproject commit ea121f8859e4b13e47a8f845e4586164519588bc +Subproject commit b25305a8832cfc6ba632a7f87ad455e319dccce8 diff --git a/build.sh b/build.sh index 4bf3c48..4257d2a 100755 --- a/build.sh +++ b/build.sh @@ -2,15 +2,35 @@ # Convenience script CURR_DIR="$(pwd)" -trap "cd "$CURR_DIR"" EXIT +SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)" +trap "cd \"$CURR_DIR\"" EXIT +cd "$SCRIPT_DIR" if [ -z "$1" ]; then git fetch && git merge origin/main && git push # Typically run after a PR to main, so bring dev up to date fi + +# Update local Flutter +git submodule update --remote cd .flutter git fetch -git checkout "$(flutter --version | head -2 | tail -1 | awk '{print $4}')" # Ensure included Flutter submodule version equals my environment +git checkout stable +git pull +FLUTTER_GIT_URL="https://github.com/flutter/flutter/" ./bin/flutter upgrade cd .. + +# Keep global Flutter, if any, in sync +if [ -f ~/flutter/bin/flutter ]; then + cd ~/flutter + ./bin/flutter channel stable + ./bin/flutter upgrade + cd "$SCRIPT_DIR" +fi + +if [ -z "$(which flutter)" ]; then + export PATH="$PATH:$SCRIPT_DIR/.flutter/bin" +fi + rm ./build/app/outputs/flutter-apk/* 2>/dev/null # Get rid of older builds if any flutter build apk --flavor normal && flutter build apk --split-per-abi --flavor normal # Build (both split and combined APKs) for file in ./build/app/outputs/flutter-apk/app-*normal*.apk*; do mv "$file" "${file//-normal/}"; done diff --git a/pubspec.lock b/pubspec.lock index 56380bf..32a9665 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -96,10 +96,10 @@ packages: dependency: transitive description: name: async - sha256: d2872f9c19731c2e5f10444b14686eb7cc85c76274bd6c16e1816bff9a3bab63 + sha256: "758e6d74e971c3e5aceb4110bfd6698efc7f501675bcfe0c775459a8140750eb" url: "https://pub.dev" source: hosted - version: "2.12.0" + version: "2.13.0" background_fetch: dependency: "direct main" description: @@ -288,10 +288,10 @@ packages: dependency: transitive description: name: fake_async - sha256: "6a95e56b2449df2273fd8c45a662d6947ce1ebb7aafe80e550a3f68297f3cacc" + sha256: "5368f224a74523e8d2e7399ea1638b37aecfca824a3cc4dfdf77bf1fa905ac44" url: "https://pub.dev" source: hosted - version: "1.3.2" + version: "1.3.3" ffi: dependency: transitive description: @@ -461,10 +461,10 @@ packages: dependency: "direct dev" description: name: flutter_lints - sha256: "5398f14efa795ffb7a33e9b6a08798b26a180edac4ad7db3f231e40f82ce11e1" + sha256: "3105dc8492f6183fb076ccf1f351ac3d60564bff92e20bfc4af9cc1651f4e7e1" url: "https://pub.dev" source: hosted - version: "5.0.0" + version: "6.0.0" flutter_local_notifications: dependency: "direct main" description: @@ -596,10 +596,10 @@ packages: dependency: transitive description: name: intl - sha256: d6f56758b7d3014a48af9701c085700aac781a92a87a62b1333b46d8879661cf + sha256: "3df61194eb431efc39c4ceba583b95633a403f46c9fd341e550ce0bfa50e9aa5" url: "https://pub.dev" source: hosted - version: "0.19.0" + version: "0.20.2" json_annotation: dependency: transitive description: @@ -612,10 +612,10 @@ packages: dependency: transitive description: name: leak_tracker - sha256: c35baad643ba394b40aac41080300150a4f08fd0fd6a10378f8f7c6bc161acec + sha256: "6bb818ecbdffe216e81182c2f0714a2e62b593f4a4f13098713ff1685dfb6ab0" url: "https://pub.dev" source: hosted - version: "10.0.8" + version: "10.0.9" leak_tracker_flutter_testing: dependency: transitive description: @@ -636,10 +636,10 @@ packages: dependency: transitive description: name: lints - sha256: c35bb79562d980e9a453fc715854e1ed39e24e7d0297a880ef54e17f9874a9d7 + sha256: a5e2b223cb7c9c8efdc663ef484fdd95bb243bff242ef5b13e26883547fce9a0 url: "https://pub.dev" source: hosted - version: "5.1.1" + version: "6.0.0" markdown: dependency: "direct main" description: @@ -949,7 +949,7 @@ packages: description: path: "." ref: master - resolved-ref: "8784c39b909324df8913dd30fa416b8a50d55f49" + resolved-ref: "89cdb5434a7ac7510f6bcdb60e1d51a27ee2f40b" url: "https://github.com/AlexBacich/shared-storage" source: git version: "0.7.0" @@ -1179,10 +1179,10 @@ packages: dependency: transitive description: name: vm_service - sha256: "0968250880a6c5fe7edc067ed0a13d4bae1577fe2771dcf3010d52c4a9d3ca14" + sha256: ddfa8d30d89985b96407efce8acbdd124701f96741f2d981ca860662f1c0dc02 url: "https://pub.dev" source: hosted - version: "14.3.1" + version: "15.0.0" web: dependency: transitive description: @@ -1195,10 +1195,10 @@ packages: dependency: "direct main" description: name: webview_flutter - sha256: "62d763c27ce7f6cef04b3bec01c85a28d60149bffd155884aa4b8fd4941ea2e4" + sha256: c3e4fe614b1c814950ad07186007eff2f2e5dd2935eba7b9a9a1af8e5885f1ba url: "https://pub.dev" source: hosted - version: "4.12.0" + version: "4.13.0" webview_flutter_android: dependency: transitive description: @@ -1264,5 +1264,5 @@ packages: source: hosted version: "3.1.3" sdks: - dart: ">=3.7.2 <4.0.0" + dart: ">=3.8.0 <4.0.0" flutter: ">=3.27.0" diff --git a/pubspec.yaml b/pubspec.yaml index 988c837..ce25144 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.1.55+2312 +version: 1.1.56+2313 environment: sdk: ^3.6.0 @@ -98,7 +98,7 @@ dev_dependencies: # activated in the `analysis_options.yaml` file located at the root of your # package. See that file for information about deactivating specific lint # rules and activating additional ones. - flutter_lints: ^5.0.0 + flutter_lints: ^6.0.0 flutter_launcher_icons: android: "ic_launcher"