-
Notifications
You must be signed in to change notification settings - Fork 160
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
Feature: identity v3 #180
Feature: identity v3 #180
Conversation
f3b34a5
to
8fb7d6b
Compare
@override | ||
bool operator ==(other) { |
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.
used for checks in tests
@@ -4,55 +4,61 @@ | |||
|
|||
#import <PurchasesHybridCommon/PurchasesHybridCommon.h> | |||
|
|||
|
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.
a lot of the stuff in this file is auto-formatting
} else if ([@"logOut" isEqualToString:call.method]) { | ||
[self logOutWithResult:result]; | ||
} else if ([@"reset" isEqualToString:call.method]) { | ||
[self resetWithResult:result]; | ||
} else if ([@"logIn" isEqualToString:call.method]) { | ||
[self logInAppUserID:arguments[@"appUserID"] result:result]; | ||
} else if ([@"identify" isEqualToString:call.method]) { |
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.
new stuff here
#pragma GCC diagnostic push | ||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations" |
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.
these are to prevent xcode build warnings that show up for developers who use our SDK, even if it's internal to us
- (void)identify:(NSString *_Nullable)appUserID | ||
result:(FlutterResult)result | ||
{ | ||
- (void)logInAppUserID:(NSString * _Nullable)appUserID |
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.
new stuff here
} | ||
|
||
- (void)logOutWithResult:(FlutterResult)result { | ||
[RCCommonFunctionality logOutWithCompletionBlock:[self getResponseCompletionBlock:result]]; |
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.
end of new stuff
@@ -631,3 +667,16 @@ class IntroEligibility { | |||
: status = IntroEligibilityStatus.values[map["status"]], | |||
description = map["description"]; | |||
} | |||
|
|||
/// Class used to hold the result of the logIn method | |||
class LogInResult { |
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.
didn't know the best way to handle it in Flutter, it seemed like having a new type would be the cleanest.
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! Don 't forget to remove all the temporary dependencies stuff
oh just saw purchases-hybrid-common is merged with the temporary dependencies. Is the plan to merge this too and then remove the temporary development dependencies in a future PR? |
yeah, that was my thinking, to have everything ready and merged and then in the release branch make sure to point to final versions |
…e's dependencies are compatible with null safety
…always storing purchaserInfo
…other branch in the switch
122a3af
to
0b3950f
Compare
- (void)canMakePaymentsWithFeatures:(NSArray <NSNumber *>*)features result:(FlutterResult)result { | ||
result(@([RCCommonFunctionality canMakePaymentsWithFeatures:features])); | ||
} | ||
|
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.
not new, just formatted and moved to after collectDeviceIdentifiersWithResult
since that one is related to attribution
… the local version, updated calls to identity methods to identity v3 in magicWeather
5f1d873
to
d440ddd
Compare
changes summary:
logIn
andlogOut
methodssetAllowSharingAppStoreAccount
,identify
andreset
methodsRequirements:
purchases-hybrid-common
release with identity v3 supportpurchases-ios
release with identity v3 supportpurchases-android
release with identity v3 support