chore: modernize dependencies and android tooling - #104
Merged
Conversation
simeng-li
marked this pull request as ready for review
August 17, 2026 07:18
simeng-li
requested review from
a team,
charIeszhao and
wangsijie
and removed request for
a team
August 17, 2026 07:23
charIeszhao
reviewed
Aug 17, 2026
charIeszhao
reviewed
Aug 17, 2026
charIeszhao
reviewed
Aug 18, 2026
charIeszhao
reviewed
Aug 19, 2026
charIeszhao
reviewed
Aug 19, 2026
Member
|
[P3] The PR description is now materially out of sync with the current head: it still says |
charIeszhao
approved these changes
Aug 19, 2026
charIeszhao
reviewed
Aug 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Users reported that the SDK's dependencies break app builds on modern Android toolchains: starting with Android Gradle Plugin (AGP) 9.0, plugins that apply the Kotlin Gradle Plugin (KGP) no longer compile (see flutter/flutter#181383), and
flutter_secure_storage9.x is one of them. This PR modernizes the dependency stack and release is versioned as4.0.0.What changed
pubspec.yaml: bumpflutter_secure_storage^9.0.0→^11.0.0(KGP-free, AGP 9 ready) andflutter_web_auth_2^4.1.0→^5.1.0; require Dart^3.8.0/ Flutter>=3.32.0; version4.0.0.lib/src/modules/logto_storage_strategy.dart: dropAndroidOptions(encryptedSharedPreferences: true)— the parameter was removed influtter_secure_storage11. Tokens stored by older SDK versions are migrated automatically on first access (migrateOnAlgorithmChangedefaults to true).lib/logto_client.dart: replace the deprecatedephemeralIntentFlagswithpreferEphemeral: trueat bothauthenticatecall sites; influtter_web_auth_25.x it covers Android as well as iOS/macOS.lib/src/modules/id_token.dart: remove an invalid@overrideon a constructor that the current analyzer flags.jose: refresh lockfile pin 0.3.4 → 0.3.5+2, which resolves GHSA-vm9r-h74p-hg97.example/androidto the current stable Flutter template — AGP 9.1.0, Gradle 9.3.1, Java 17, nokotlin-androidin the app plugins block,compileSdk 37andminSdk 24(required byflutter_secure_storage11),android:taskAffinity=""on exported activities (advised byflutter_web_auth_25.x), jetifier removed.build-androidjob that builds the example APK, so Android build breakage fails CI instead of landing silently.CHANGELOG.md4.0.0 entry with migration notes; README minimum-requirements table; fix build badge pointing atlogto-io/kotlin.Expected result
Reviewer notes
flutter_web_auth_25.x still applies KGP itself; builds succeed via Flutter's temporary KGP compatibility and emit a warning. Full KGP-free status requiresflutter_web_auth_26.x, which is still in alpha — deferred until it stabilizes.Testing
Tested locally
Checklist
.changeset