Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Obfuscated account id #299

Merged
merged 4 commits into from
Jul 21, 2021
Merged

Conversation

bohdan1krokhmaliuk
Copy link
Contributor

Provides possibility to set obfuscated account id both for apple and google

@@ -99,7 +99,6 @@ class FlutterInappPurchase {
///
/// `iOS` also returns subscriptions.
Future<List<IAPItem>> getProducts(List<String> skus) async {
if (skus == null || skus.contains(null)) return [];
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No use as List can't be null and any element of it can't be null as well

@@ -128,7 +127,6 @@ class FlutterInappPurchase {
///
/// `iOS` also returns non-subscription products.
Future<List<IAPItem>> getSubscriptions(List<String> skus) async {
if (skus == null || skus.contains(null)) return [];
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No use as List can't be null and any element of it can't be null as well

@@ -587,11 +582,6 @@ class FlutterInappPurchase {
required String accessToken,
bool isSubscription = false,
}) async {
assert(packageName != null);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no use for null safety version

@@ -642,7 +632,7 @@ class FlutterInappPurchase {
throw new ArgumentError('Unknown method ${call.method}');
}
return Future.value(null);
} as Future<dynamic> Function(MethodCall)?);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

redundant

Copy link
Owner

@hyochan hyochan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@hyochan hyochan added enhancement New feature or request release labels Jul 21, 2021
@hyochan hyochan merged commit 09ef387 into hyochan:master Jul 21, 2021
@jonsamwell
Copy link

@bohdan1krokhmaliuk if I set the obfuscatedAccountId when using invoking requestPurchase on iOS the account id is not included in the signed transaction info our web hook receives? Is this expected behaviour?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants