Skip to content

fix(android): Migration step for ApplicationSettings.getNumber - #10140

Merged
NathanWalker merged 1 commit into
NativeScript:mainfrom
CatchABus:application-settings-patch
Dec 21, 2022
Merged

NathanWalker merged 1 commit into
NativeScript:mainfrom
CatchABus:application-settings-patch

Conversation

@CatchABus

Copy link
Copy Markdown
Contributor

PR Checklist

What is the current behavior?

It seems that my SharedPreferences fix in #10094 has caused trouble for apps that have old float values stored because Java fails to cast Float to Long.

What is the new behavior?

Added a migration step to store the outdated values anew in proper format.

Fixes/Implements/Closes #10139 .

@Semurak I believe this takes care of the problem. Let me know if you think there's a case we don't cover.

@nx-cloud

nx-cloud Bot commented Dec 20, 2022 •

Copy link
Copy Markdown

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 6c85fe5. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


🟥 Failed Commands
nx run apps-automated:ios --timeout=600
✅ Successfully ran 2 targets

Sent with 💌 from NxCloud.

@cla-bot cla-bot Bot added the cla: yes label Dec 20, 2022
@Semurak

Semurak commented Dec 20, 2022

Copy link
Copy Markdown

Wow, that's a quick fix, good job!

This is the best way to ensure backwards compatibility and should take care of all cases. Thanks!

@NathanWalker
NathanWalker merged commit 7c1590a into NativeScript:main Dec 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Old ApplicationSettings.getNumber() cannot be returned due to type mismatch

3 participants