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

identity V3: public facing changes #252

Merged
merged 6 commits into from
Jul 15, 2021

Conversation

aboedo
Copy link
Member

@aboedo aboedo commented Feb 4, 2021

Makes logIn and logOut public, deprecates identity v2 methods.

Requirements:

@aboedo aboedo added the HOLD label Feb 4, 2021
@aboedo aboedo self-assigned this Feb 4, 2021
@aboedo aboedo requested a review from vegaro February 4, 2021 17:09
@@ -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")
Copy link
Contributor

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...

Copy link
Member Author

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!

@aboedo aboedo force-pushed the feature/identityv3_public_facing_changes branch 4 times, most recently from 058c692 to 87f4326 Compare February 9, 2021 18:11
@aboedo aboedo force-pushed the feature/identityv3 branch from 58dfa2c to 44b1592 Compare February 9, 2021 18:11
@aboedo aboedo force-pushed the feature/identityv3_public_facing_changes branch 5 times, most recently from a31fcad to eb51693 Compare February 16, 2021 17:30
@aboedo aboedo force-pushed the feature/identityv3_public_facing_changes branch from eb51693 to e1b78b9 Compare February 17, 2021 16:48
@aboedo aboedo force-pushed the feature/identityv3 branch from 5f16f25 to e48287e Compare February 17, 2021 16:48
@aboedo aboedo force-pushed the feature/identityv3_public_facing_changes branch 2 times, most recently from b67fc51 to 36955a8 Compare February 19, 2021 16:56
@aboedo aboedo requested a review from vegaro February 19, 2021 17:00
Base automatically changed from feature/identityv3 to develop February 19, 2021 18:31
@aboedo aboedo force-pushed the feature/identityv3_public_facing_changes branch from a305e82 to 63f02c5 Compare February 19, 2021 18:33
@aboedo aboedo force-pushed the feature/identityv3_public_facing_changes branch 3 times, most recently from 651cff1 to 326111e Compare March 2, 2021 19:57
@aboedo aboedo changed the base branch from develop to fix/identify_endpoint_path March 2, 2021 19:57
@aboedo aboedo force-pushed the fix/identify_endpoint_path branch from c512dc2 to 7f3d26a Compare March 3, 2021 14:00
@aboedo aboedo force-pushed the feature/identityv3_public_facing_changes branch 3 times, most recently from fbdf391 to 4d51fbf Compare March 4, 2021 14:01
@aboedo aboedo force-pushed the fix/identify_endpoint_path branch from 878a0d7 to 0037287 Compare March 4, 2021 14:01
Base automatically changed from fix/identify_endpoint_path to develop March 4, 2021 14:13
@aboedo aboedo force-pushed the feature/identityv3_public_facing_changes branch from 4d51fbf to 117e87b Compare March 5, 2021 14:32
@aboedo aboedo force-pushed the feature/identityv3_public_facing_changes branch 2 times, most recently from c755a01 to 718a178 Compare March 17, 2021 21:07
@aboedo aboedo changed the base branch from develop to identityv3_update_appuserid_location_in_identify March 17, 2021 21:13
@aboedo aboedo force-pushed the feature/identityv3_public_facing_changes branch from 718a178 to 88b1a39 Compare March 22, 2021 19:39
@aboedo aboedo force-pushed the identityv3_update_appuserid_location_in_identify branch from 9e56ba3 to 234f0a0 Compare March 22, 2021 19:39
Base automatically changed from identityv3_update_appuserid_location_in_identify to develop March 22, 2021 20:04
@aboedo aboedo force-pushed the feature/identityv3_public_facing_changes branch from 88b1a39 to 6cbd194 Compare April 2, 2021 17:45
@aboedo aboedo force-pushed the feature/identityv3_public_facing_changes branch from 6cbd194 to d95e100 Compare April 23, 2021 19:01
@@ -796,7 +805,7 @@ class Purchases @VisibleForTesting(otherwise = VisibleForTesting.PRIVATE) intern
*/
@JvmOverloads
@JvmSynthetic
Copy link
Contributor

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.

@aboedo aboedo force-pushed the feature/identityv3_public_facing_changes branch from d95e100 to 2015cd6 Compare May 27, 2021 21:42
@aboedo aboedo mentioned this pull request May 27, 2021
@aboedo aboedo force-pushed the feature/identityv3_public_facing_changes branch from 2015cd6 to 73feee3 Compare July 14, 2021 20:42
@aboedo aboedo requested a review from vegaro July 14, 2021 20:49
@aboedo aboedo removed the HOLD label Jul 14, 2021
@aboedo aboedo requested a review from a team July 14, 2021 21:02
@@ -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(
Copy link
Contributor

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?

Copy link
Member Author

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

Copy link
Contributor

@beylmk beylmk left a 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 🥳

@aboedo aboedo merged commit f4ff618 into develop Jul 15, 2021
@aboedo aboedo deleted the feature/identityv3_public_facing_changes branch July 15, 2021 13:53
@aboedo aboedo mentioned this pull request Jul 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants