Skip to content

Commit

Permalink
Mobile: Update to flutter 3.22.3 and packages (#964)
Browse files Browse the repository at this point in the history
* Update to flutter 3.22.3 and dart 3.4.4
* Update all packages to latest possible without changing minimal supported os versions
* Add "asdf" version manager support for flutter
* Update version number and code
* Update podfile to use Firebase iOS SDK 10.25.0
* Use v0.8.0 of flutter package "intl_phone_number_input" to fix the iOS build error with the message "Cannot find type 'PhoneNumberKit' in scope". v0.8.0 is not publish on pub.dev but it is released on Github.
  • Loading branch information
KarinBerg authored Dec 17, 2024
1 parent 0327d90 commit 44ade87
Show file tree
Hide file tree
Showing 11 changed files with 230 additions and 246 deletions.
2 changes: 1 addition & 1 deletion recipients_app/.tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
flutter 3.19.6
flutter 3.22.3
14 changes: 6 additions & 8 deletions recipients_app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Mobile App for Recipients of a Social Income.
## Tools needed for building the app on an Apple Silicon Mac

- [Homebrew](https://brew.sh/de/)
- Flutter 3.19.6, Dart 3.3.4
- Flutter (Version see file .tool-versions)
- Java JDK 17
- Android Studio LadyBug or later
- Latest vsCode
Expand Down Expand Up @@ -39,16 +39,18 @@ Mobile App for Recipients of a Social Income.
- Restart your terminal so that these changes take effect
- Install Flutter
- Tell Flutter to use our Java 17 JDK and not the one bundle with
Android Studio via `flutter config --jdk-dir $JAVA_HOME`. Otherwise,
you will get the error "Unsupported class file major version 65”
when building the app for Android.
Android Studio via `flutter config --jdk-dir "$JAVA_HOME"`.
Otherwise, you will get the error "Unsupported class file major
version 65” when building the app for Android.
- Restart your terminal and IDE so that these changes take effect
- Install vsCode
- Install Flutter extension
- Install Xcode
- Set is as default via `sudo xcode-select -s <path/to/>Xcode.app`
- To agree to the Xcode license from the command line, you can use the
following command: `sudo xcodebuild -license accept`
- Install CocoaPods
- Install via Homebrew `brew install cocoapods`
## Optionally: Use the version manager [asdf](https://asdf-vm.com/)
Expand Down Expand Up @@ -153,10 +155,6 @@ locations as well:
- If you use 'asdf' run the comman `asdf local flutter x.y.z` #Replace
x.y.z with the new Flutter version.
- Otherwise just update the version number in the file
- Adjust variable 'REQUIRED_VERSION' in 'clean_build.sh'
- README.md
- Find all places in the README.md which mentions the Flutter version
number
## Testing
Expand Down
7 changes: 5 additions & 2 deletions recipients_app/clean_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ fi

# Verify Flutter version
echo "Verify Flutter version..."
REQUIRED_VERSION="3.19.6"
REQUIRED_VERSION=$(grep flutter .tool-versions | awk '{print $2}')
CURRENT_VERSION=$(flutter --version | head -n 1 | awk '{print $2}')
if [ "$CURRENT_VERSION" != "$REQUIRED_VERSION" ]; then
echo "Error: Flutter version $REQUIRED_VERSION is required (current: $CURRENT_VERSION)"
exit 1
else
echo "Required version: $REQUIRED_VERSION == Current version: $CURRENT_VERSION"
echo "Flutter version is correct"
fi

echo "Cleaning Flutter build..."
Expand All @@ -31,4 +34,4 @@ dart run build_runner build --delete-conflicting-outputs
echo "Generating localizations..."
flutter gen-l10n

echo "Build completed successfully!"
echo "Build completed successfully!"
2 changes: 1 addition & 1 deletion recipients_app/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ flutter_ios_podfile_setup
target 'Runner' do
use_frameworks!
use_modular_headers!
pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '10.24.0'
pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '10.25.0'

flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end
Expand Down
182 changes: 84 additions & 98 deletions recipients_app/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,88 +1,89 @@
PODS:
- AppCheckCore (10.19.0):
- AppCheckCore (10.19.2):
- GoogleUtilities/Environment (~> 7.13)
- GoogleUtilities/UserDefaults (~> 7.13)
- PromisesObjC (~> 2.3)
- cloud_firestore (4.17.2):
- Firebase/Firestore (= 10.24.0)
- cloud_firestore (4.17.5):
- Firebase/Firestore (= 10.25.0)
- firebase_core
- Flutter
- Firebase/Auth (10.24.0):
- Firebase/Auth (10.25.0):
- Firebase/CoreOnly
- FirebaseAuth (~> 10.24.0)
- Firebase/CoreOnly (10.24.0):
- FirebaseCore (= 10.24.0)
- Firebase/Firestore (10.24.0):
- FirebaseAuth (~> 10.25.0)
- Firebase/CoreOnly (10.25.0):
- FirebaseCore (= 10.25.0)
- Firebase/Firestore (10.25.0):
- Firebase/CoreOnly
- FirebaseFirestore (~> 10.24.0)
- Firebase/Messaging (10.24.0):
- FirebaseFirestore (~> 10.25.0)
- Firebase/Messaging (10.25.0):
- Firebase/CoreOnly
- FirebaseMessaging (~> 10.24.0)
- firebase_app_check (0.2.2-4):
- Firebase/CoreOnly (~> 10.24.0)
- FirebaseMessaging (~> 10.25.0)
- firebase_app_check (0.2.2-7):
- Firebase/CoreOnly (~> 10.25.0)
- firebase_core
- FirebaseAppCheck (~> 10.24.0-beta)
- FirebaseAppCheck (~> 10.25.0-beta)
- Flutter
- firebase_auth (4.19.4):
- Firebase/Auth (= 10.24.0)
- firebase_auth (4.20.0):
- Firebase/Auth (= 10.25.0)
- firebase_core
- Flutter
- firebase_core (2.30.1):
- Firebase/CoreOnly (= 10.24.0)
- firebase_core (2.32.0):
- Firebase/CoreOnly (= 10.25.0)
- Flutter
- firebase_messaging (14.9.1):
- Firebase/Messaging (= 10.24.0)
- firebase_messaging (14.9.4):
- Firebase/Messaging (= 10.25.0)
- firebase_core
- Flutter
- FirebaseAppCheck (10.24.0):
- AppCheckCore (~> 10.18)
- FirebaseAppCheck (10.25.0):
- AppCheckCore (~> 10.19)
- FirebaseAppCheckInterop (~> 10.17)
- FirebaseCore (~> 10.0)
- GoogleUtilities/Environment (~> 7.8)
- GoogleUtilities/Environment (~> 7.13)
- GoogleUtilities/UserDefaults (~> 7.13)
- PromisesObjC (~> 2.1)
- FirebaseAppCheckInterop (10.24.0)
- FirebaseAuth (10.24.0):
- FirebaseAppCheckInterop (10.29.0)
- FirebaseAuth (10.25.0):
- FirebaseAppCheckInterop (~> 10.17)
- FirebaseCore (~> 10.0)
- GoogleUtilities/AppDelegateSwizzler (~> 7.8)
- GoogleUtilities/Environment (~> 7.8)
- GTMSessionFetcher/Core (< 4.0, >= 2.1)
- RecaptchaInterop (~> 100.0)
- FirebaseCore (10.24.0):
- FirebaseCore (10.25.0):
- FirebaseCoreInternal (~> 10.0)
- GoogleUtilities/Environment (~> 7.12)
- GoogleUtilities/Logger (~> 7.12)
- FirebaseCoreExtension (10.24.0):
- FirebaseCoreExtension (10.25.0):
- FirebaseCore (~> 10.0)
- FirebaseCoreInternal (10.24.0):
- FirebaseCoreInternal (10.29.0):
- "GoogleUtilities/NSData+zlib (~> 7.8)"
- FirebaseFirestore (10.24.0):
- FirebaseFirestoreBinary (= 10.24.0)
- FirebaseFirestore (10.25.0):
- FirebaseFirestoreBinary (= 10.25.0)
- FirebaseFirestoreAbseilBinary (1.2024011601.0)
- FirebaseFirestoreBinary (10.24.0):
- FirebaseCore (= 10.24.0)
- FirebaseCoreExtension (= 10.24.0)
- FirebaseFirestoreInternalBinary (= 10.24.0)
- FirebaseSharedSwift (= 10.24.0)
- FirebaseFirestoreBinary (10.25.0):
- FirebaseCore (= 10.25.0)
- FirebaseCoreExtension (= 10.25.0)
- FirebaseFirestoreInternalBinary (= 10.25.0)
- FirebaseSharedSwift (= 10.25.0)
- FirebaseFirestoreGRPCBoringSSLBinary (1.62.1)
- FirebaseFirestoreGRPCCoreBinary (1.62.1):
- FirebaseFirestoreAbseilBinary (= 1.2024011601.0)
- FirebaseFirestoreGRPCBoringSSLBinary (= 1.62.1)
- FirebaseFirestoreGRPCCPPBinary (1.62.1):
- FirebaseFirestoreAbseilBinary (= 1.2024011601.0)
- FirebaseFirestoreGRPCCoreBinary (= 1.62.1)
- FirebaseFirestoreInternalBinary (10.24.0):
- FirebaseCore (= 10.24.0)
- FirebaseFirestoreInternalBinary (10.25.0):
- FirebaseCore (= 10.25.0)
- FirebaseFirestoreAbseilBinary (= 1.2024011601.0)
- FirebaseFirestoreGRPCCPPBinary (= 1.62.1)
- leveldb-library (~> 1.22)
- nanopb (< 2.30911.0, >= 2.30908.0)
- FirebaseInstallations (10.27.0):
- FirebaseInstallations (10.29.0):
- FirebaseCore (~> 10.0)
- GoogleUtilities/Environment (~> 7.8)
- GoogleUtilities/UserDefaults (~> 7.8)
- PromisesObjC (~> 2.1)
- FirebaseMessaging (10.24.0):
- FirebaseMessaging (10.25.0):
- FirebaseCore (~> 10.0)
- FirebaseInstallations (~> 10.0)
- GoogleDataTransport (~> 9.3)
Expand All @@ -91,64 +92,55 @@ PODS:
- GoogleUtilities/Reachability (~> 7.8)
- GoogleUtilities/UserDefaults (~> 7.8)
- nanopb (< 2.30911.0, >= 2.30908.0)
- FirebaseSharedSwift (10.24.0)
- FirebaseSharedSwift (10.25.0)
- Flutter (1.0.0)
- flutter_native_splash (0.0.1):
- Flutter
- GoogleDataTransport (9.4.1):
- GoogleUtilities/Environment (~> 7.7)
- nanopb (< 2.30911.0, >= 2.30908.0)
- PromisesObjC (< 3.0, >= 1.2)
- GoogleUtilities/AppDelegateSwizzler (7.13.0):
- GoogleUtilities/AppDelegateSwizzler (7.13.3):
- GoogleUtilities/Environment
- GoogleUtilities/Logger
- GoogleUtilities/Network
- GoogleUtilities/Privacy
- GoogleUtilities/Environment (7.13.0):
- GoogleUtilities/Environment (7.13.3):
- GoogleUtilities/Privacy
- PromisesObjC (< 3.0, >= 1.2)
- GoogleUtilities/Logger (7.13.0):
- GoogleUtilities/Logger (7.13.3):
- GoogleUtilities/Environment
- GoogleUtilities/Privacy
- GoogleUtilities/Network (7.13.0):
- GoogleUtilities/Network (7.13.3):
- GoogleUtilities/Logger
- "GoogleUtilities/NSData+zlib"
- GoogleUtilities/Privacy
- GoogleUtilities/Reachability
- "GoogleUtilities/NSData+zlib (7.13.0)":
- "GoogleUtilities/NSData+zlib (7.13.3)":
- GoogleUtilities/Privacy
- GoogleUtilities/Privacy (7.13.0)
- GoogleUtilities/Reachability (7.13.0):
- GoogleUtilities/Privacy (7.13.3)
- GoogleUtilities/Reachability (7.13.3):
- GoogleUtilities/Logger
- GoogleUtilities/Privacy
- GoogleUtilities/UserDefaults (7.13.0):
- GoogleUtilities/UserDefaults (7.13.3):
- GoogleUtilities/Logger
- GoogleUtilities/Privacy
- GTMSessionFetcher/Core (3.4.1)
- leveldb-library (1.22.5)
- libphonenumber_plugin (0.0.1):
- Flutter
- PhoneNumberKit
- GTMSessionFetcher/Core (3.5.0)
- leveldb-library (1.22.6)
- nanopb (2.30910.0):
- nanopb/decode (= 2.30910.0)
- nanopb/encode (= 2.30910.0)
- nanopb/decode (2.30910.0)
- nanopb/encode (2.30910.0)
- package_info_plus (0.4.5):
- Flutter
- PhoneNumberKit (3.7.10):
- PhoneNumberKit/PhoneNumberKitCore (= 3.7.10)
- PhoneNumberKit/UIKit (= 3.7.10)
- PhoneNumberKit/PhoneNumberKitCore (3.7.10)
- PhoneNumberKit/UIKit (3.7.10):
- PhoneNumberKit/PhoneNumberKitCore
- PromisesObjC (2.4.0)
- RecaptchaInterop (100.0.0)
- Sentry/HybridSDK (8.25.2)
- sentry_flutter (8.2.0):
- Sentry/HybridSDK (8.40.1)
- sentry_flutter (8.10.1):
- Flutter
- FlutterMacOS
- Sentry/HybridSDK (= 8.25.2)
- Sentry/HybridSDK (= 8.40.1)
- url_launcher_ios (0.0.1):
- Flutter
- webview_flutter_wkwebview (0.0.1):
Expand All @@ -160,10 +152,9 @@ DEPENDENCIES:
- firebase_auth (from `.symlinks/plugins/firebase_auth/ios`)
- firebase_core (from `.symlinks/plugins/firebase_core/ios`)
- firebase_messaging (from `.symlinks/plugins/firebase_messaging/ios`)
- FirebaseFirestore (from `https://github.com/invertase/firestore-ios-sdk-frameworks.git`, tag `10.24.0`)
- FirebaseFirestore (from `https://github.com/invertase/firestore-ios-sdk-frameworks.git`, tag `10.25.0`)
- Flutter (from `Flutter`)
- flutter_native_splash (from `.symlinks/plugins/flutter_native_splash/ios`)
- libphonenumber_plugin (from `.symlinks/plugins/libphonenumber_plugin/ios`)
- package_info_plus (from `.symlinks/plugins/package_info_plus/ios`)
- sentry_flutter (from `.symlinks/plugins/sentry_flutter/ios`)
- url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)
Expand Down Expand Up @@ -193,7 +184,6 @@ SPEC REPOS:
- GTMSessionFetcher
- leveldb-library
- nanopb
- PhoneNumberKit
- PromisesObjC
- RecaptchaInterop
- Sentry
Expand All @@ -211,13 +201,11 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/firebase_messaging/ios"
FirebaseFirestore:
:git: https://github.com/invertase/firestore-ios-sdk-frameworks.git
:tag: 10.24.0
:tag: 10.25.0
Flutter:
:path: Flutter
flutter_native_splash:
:path: ".symlinks/plugins/flutter_native_splash/ios"
libphonenumber_plugin:
:path: ".symlinks/plugins/libphonenumber_plugin/ios"
package_info_plus:
:path: ".symlinks/plugins/package_info_plus/ios"
sentry_flutter:
Expand All @@ -230,49 +218,47 @@ EXTERNAL SOURCES:
CHECKOUT OPTIONS:
FirebaseFirestore:
:git: https://github.com/invertase/firestore-ios-sdk-frameworks.git
:tag: 10.24.0
:tag: 10.25.0

SPEC CHECKSUMS:
AppCheckCore: 58dbd968d93b7c56650c28a1ac404d7a54307c0e
cloud_firestore: a291c7ca0e498f9b08bbabd47a2499a5ae02c152
Firebase: 91fefd38712feb9186ea8996af6cbdef41473442
firebase_app_check: 58bedde8d2f46e4ab206cec53511a748658833a2
firebase_auth: b782567cafd5cfd64debf54638a9f29b63abd7bf
firebase_core: 7f1e1156934d0da3be260174812842df9420e4ab
firebase_messaging: 28b49260e70d10042fa2bea79f37e1edae48f1bd
FirebaseAppCheck: afb42367002c12bbb5f58c4a954ecd2f0a171182
FirebaseAppCheckInterop: fecc08c89936c8acb1428d8088313aabedb348e4
FirebaseAuth: 711d01cccefaf10035b3090a92956d0dd4f99088
FirebaseCore: 11dc8a16dfb7c5e3c3f45ba0e191a33ac4f50894
FirebaseCoreExtension: af5fd85e817ea9d19f9a2659a376cf9cf99f03c0
FirebaseCoreInternal: bcb5acffd4ea05e12a783ecf835f2210ce3dc6af
FirebaseFirestore: 455ba4bf3f0e1da88f77aaa76dc506d920396346
AppCheckCore: 9feb4300caa596a36416cde10674dc5bec1e022e
cloud_firestore: 003d53b6b8b392600b7769acf9421cc4f23e5911
Firebase: 0312a2352584f782ea56f66d91606891d4607f06
firebase_app_check: 717089a2df93747620263dd6c8e444bde5699b7e
firebase_auth: 5719ddc9f654b813405899480e84971bd8e61235
firebase_core: a626d00494efa398e7c54f25f1454a64c8abf197
firebase_messaging: 06391e8f35dc65a00c56580266285263d2861f10
FirebaseAppCheck: 148fa858b8070710c8f83d3f545b5f1e85d104a4
FirebaseAppCheckInterop: 6a1757cfd4067d8e00fccd14fcc1b8fd78cfac07
FirebaseAuth: c0f93dcc570c9da2bffb576969d793e95c344fbb
FirebaseCore: 7ec4d0484817f12c3373955bc87762d96842d483
FirebaseCoreExtension: 8a47811d0b155501559ef05d089518152a0a1677
FirebaseCoreInternal: df84dd300b561c27d5571684f389bf60b0a5c934
FirebaseFirestore: d30223cc084fb1ea2d7aee742eea5392beaf3edd
FirebaseFirestoreAbseilBinary: bd0451946879e0e01327c8efc35896bb273009c4
FirebaseFirestoreBinary: 7eccf62d9204bd1b8915bf4f30406f6b13a5f01a
FirebaseFirestoreBinary: bfcacce21af5109ab56bef3d41b4235b98b22861
FirebaseFirestoreGRPCBoringSSLBinary: c3007e61593e4583ec3bb8b34ce654663663b690
FirebaseFirestoreGRPCCoreBinary: 1243fc6604a52912694635f891916976924931ed
FirebaseFirestoreGRPCCPPBinary: e447b3a7c060c0abfc4e2c9f6fb53bf7635ded66
FirebaseFirestoreInternalBinary: 264bc7678c6df6581477b139a216f6b3340efb64
FirebaseInstallations: 766dabca09fd94aef922538aaf144cc4a6fb6869
FirebaseMessaging: 4d52717dd820707cc4eadec5eb981b4832ec8d5d
FirebaseSharedSwift: 76e1529c32101d80e4f1ca2fba7c39d59f0a390a
FirebaseFirestoreInternalBinary: 64bdfce9f9f44f131e47694b6287fce0f6f26019
FirebaseInstallations: 913cf60d0400ebd5d6b63a28b290372ab44590dd
FirebaseMessaging: 88950ba9485052891ebe26f6c43a52bb62248952
FirebaseSharedSwift: 0274086954b1b2d5fd7e829eccc587044d72a4ba
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
flutter_native_splash: edf599c81f74d093a4daf8e17bd7a018854bc778
GoogleDataTransport: 6c09b596d841063d76d4288cc2d2f42cc36e1e2a
GoogleUtilities: d053d902a8edaa9904e1bd00c37535385b8ed152
GTMSessionFetcher: 8000756fc1c19d2e5697b90311f7832d2e33f6cd
leveldb-library: e8eadf9008a61f9e1dde3978c086d2b6d9b9dc28
libphonenumber_plugin: 48bf4078546377eedaab4aa54978cd0f6fa23072
GoogleUtilities: ea963c370a38a8069cc5f7ba4ca849a60b6d7d15
GTMSessionFetcher: 5aea5ba6bd522a239e236100971f10cb71b96ab6
leveldb-library: cc8b8f8e013647a295ad3f8cd2ddf49a6f19be19
nanopb: 438bc412db1928dac798aa6fd75726007be04262
package_info_plus: 58f0028419748fad15bf008b270aaa8e54380b1c
PhoneNumberKit: 3d9a20cfe8ee68f35c2a3ae9474093133f72a8a1
package_info_plus: c0502532a26c7662a62a356cebe2692ec5fe4ec4
PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47
RecaptchaInterop: 7d1a4a01a6b2cb1610a47ef3f85f0c411434cb21
Sentry: 51b056d96914a741f63eca774d118678b1eb05a1
sentry_flutter: e8397d13e297a5d4b6be8a752e33140b21c5cc97
Sentry: e9215d7b17f7902692b4f8700e061e4f853e3521
sentry_flutter: 927eed60d66951d1b0f1db37fe94ff5cb7c80231
url_launcher_ios: 6116280ddcfe98ab8820085d8d76ae7449447586
webview_flutter_wkwebview: be0f0d33777f1bfd0c9fdcb594786704dbf65f36

PODFILE CHECKSUM: 61a1e298345136f87e92ae0a59c7ea2a430a8f66
PODFILE CHECKSUM: f727177ee8bd2fa0ad40e98c3b4299dfade495ac

COCOAPODS: 1.15.2
COCOAPODS: 1.16.2
Loading

0 comments on commit 44ade87

Please sign in to comment.