This repository was archived by the owner on Feb 22, 2023. It is now read-only.
[in_app_purchase] Added priceCurrencySymbol to SkuDetailsWrapper#4114
Merged
fluttergithubbot merged 6 commits intoflutter:masterfrom Jul 9, 2021
Merged
Conversation
11 tasks
renefloor
commented
Jun 29, 2021
mvanbeusekom
suggested changes
Jul 7, 2021
Contributor
mvanbeusekom
left a comment
There was a problem hiding this comment.
This PR seems to have a failing test that should be looked into (seems like the JAVA Currency.getSymbol() doesn't support the Euro symbol: https://docs.oracle.com/javase/7/docs/api/java/util/Currency.html#getSymbol() ) . Otherwise I think the changes look good.
io.flutter.plugins.inapppurchase.TranslatorTest > currencyCodeFromSymbol FAILED
org.junit.ComparisonFailure: expected:<[€]> but was:<[EUR]>
at org.junit.Assert.assertEquals(Assert.java:115)
at org.junit.Assert.assertEquals(Assert.java:144)
at io.flutter.plugins.inapppurchase.TranslatorTest.currencyCodeFromSymbol(TranslatorTest.java:197)
Contributor
Author
|
@mvanbeusekom Maybe it's better to first implement #4115 in this PR. |
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/flutter
that referenced
this pull request
Jul 9, 2021
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/flutter
that referenced
this pull request
Jul 9, 2021
amantoux
pushed a commit
to amantoux/plugins
that referenced
this pull request
Jul 10, 2021
Ralph-Li
added a commit
to Insight-Timer/plugins
that referenced
this pull request
Jul 15, 2021
* upstream_master: (40 commits) [image_picker] Image picker fix camera device (flutter#3898) [flutter_plugin_tools] Improve license-check output (flutter#4154) [webview_flutter] Fix broken keyboard issue link (flutter#3266) [flutter_plugin_tools] Support format on Windows (flutter#4150) [flutter_plugin_tools] Make unit tests pass on Windows (flutter#4149) [image_picker_for_web] Migrate image_picker to package:cross_file (flutter#4083) [various] Prepare plugin repo for binding API improvements (flutter#4148) [quick_actions] Add const constructor (flutter#4131) [in_app_purchase] Add iOS currency symbol to ProductDetails (flutter#4144) [in_app_purchase] Added priceCurrencySymbol to SkuDetailsWrapper (flutter#4114) [image_picker_platform_interface] Add methods that return package:cross_file (flutter#4072) [flutter_plugin_tools] Improve and test 'format' (flutter#4145) [flutter_plugin_tools] Only check target packages in analyze (flutter#4146) [in_app_purchase] Fix crash when retrieveReceiptWithError gives an error. (flutter#4138) [video_player] Pause video when it completes (flutter#3727) [in_app_purchase] Add currencySymbol to ProductDetails (flutter#4115) [in_app_purchase] Add documentation for price change confirmations (flutter#4092) [camera] android-rework part 8: Supporting modules for final implementation (flutter#4054) [plugin_platform_interface] Fix README broken link (flutter#4143) [various] Prepare plugin repo for binding API improvements (flutter#4137) ...
fotiDim
pushed a commit
to fotiDim/plugins
that referenced
this pull request
Sep 13, 2021
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
This PR adds priceCurrencySymbol to the SkuDetailsWrapper. It uses the java function
Currency.getInstance(currencyCode).getSymbol()to get the symbol.We could change the platform_interface to also expose this in the ProductDetails.
Part of flutter/flutter#83984 (other part can be the platform_interface).
Pre-launch Checklist
dart format.)[shared_preferences]///).If you need help, consider asking for advice on the #hackers-new channel on Discord.