-
Notifications
You must be signed in to change notification settings - Fork 53
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
identity V3: public facing changes #252
Conversation
@@ -594,6 +599,10 @@ class Purchases @VisibleForTesting(otherwise = VisibleForTesting.PRIVATE) intern | |||
* @param newAppUserID The new appUserID that should be linked to the currently user | |||
* @param [listener] An optional listener to listen for successes or errors. | |||
*/ | |||
@Deprecated( | |||
"Use logIn instead", | |||
ReplaceWith("logIn") |
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.
You can add the parameters of the logIn
function that way the developers get a nice automatic "replace with" option in Android Studio. Maybe it works just specifying the function name, but I don't think so...
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.
nice, didn't know that was a thing, will do!
058c692
to
87f4326
Compare
58dfa2c
to
44b1592
Compare
a31fcad
to
eb51693
Compare
eb51693
to
e1b78b9
Compare
5f16f25
to
e48287e
Compare
b67fc51
to
36955a8
Compare
a305e82
to
63f02c5
Compare
651cff1
to
326111e
Compare
c512dc2
to
7f3d26a
Compare
fbdf391
to
4d51fbf
Compare
878a0d7
to
0037287
Compare
4d51fbf
to
117e87b
Compare
c755a01
to
718a178
Compare
718a178
to
88b1a39
Compare
9e56ba3
to
234f0a0
Compare
88b1a39
to
6cbd194
Compare
6cbd194
to
d95e100
Compare
@@ -796,7 +805,7 @@ class Purchases @VisibleForTesting(otherwise = VisibleForTesting.PRIVATE) intern | |||
*/ | |||
@JvmOverloads | |||
@JvmSynthetic |
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.
This annotation and the one in line 764 should be removed, otherwise it would still be hidden in Java. We add it because internal functions are public in Java, since internal is a Kotlin keyword.
d95e100
to
2015cd6
Compare
2015cd6
to
73feee3
Compare
@@ -348,7 +348,7 @@ internal fun Purchases.logInWith( | |||
* @param [onError] Will be called after the call has completed with an error. | |||
*/ | |||
@Suppress("unused") | |||
internal fun Purchases.logOutWith( | |||
fun Purchases.logOutWith( |
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.
just curious, does this return the newly-created anonymous user's purchaser info?
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.
it deletes all data for the current user, then generates a new anonymous id, and returns the purchaserinfo for that new anonymous id
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.
just one question about actual identity implementation, but looks good to me! congrats 🥳
Makes
logIn
andlogOut
public, deprecates identity v2 methods.Requirements: