-
Notifications
You must be signed in to change notification settings - Fork 235
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
Conversation
@@ -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 []; |
There was a problem hiding this comment.
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 []; |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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)?); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
redundant
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@bohdan1krokhmaliuk if I set the |
Provides possibility to set obfuscated account id both for apple and google