You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[shared_preferences] Allow reading int as long in SharedPreferences #165781 (#9032)
Resolves issue [#165781](flutter/flutter#165781) by falling back to reading preference as an int then upcasted to a Long.
## Pre-Review Checklist
[^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
Copy file name to clipboardExpand all lines: packages/shared_preferences/shared_preferences_android/CHANGELOG.md
+4
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,7 @@
1
+
## 2.4.9
2
+
3
+
* Enables callers to use `getInt` to read preference of type `int` that was written to shared preferences by native code without passing though plugin code.
4
+
1
5
## 2.4.8
2
6
3
7
* Updates compileSdk 34 to flutter.compileSdkVersion.
Copy file name to clipboardExpand all lines: packages/shared_preferences/shared_preferences_android/android/src/main/kotlin/io/flutter/plugins/sharedpreferences/SharedPreferencesPlugin.kt
Copy file name to clipboardExpand all lines: packages/shared_preferences/shared_preferences_android/example/android/app/src/main/java/dev/flutter/plugins/shared_preferences_example/MainActivity.java
+2-1
Original file line number
Diff line number
Diff line change
@@ -17,9 +17,10 @@ public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine) {
Copy file name to clipboardExpand all lines: packages/shared_preferences/shared_preferences_android/example/integration_test/shared_preferences_test.dart
0 commit comments