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 #453

Merged
merged 5 commits into from Jul 13, 2021

Conversation

aboedo
Copy link
Member

@aboedo aboedo commented Jan 20, 2021

Based on #438

This adds only the public-facing changes, so that we can integrate the main identity v3 PR without worrying about making changes available publicly through the SDK until we're ready.

Public changes overview

New methods

  • Introduces logIn, a new way of identifying users, which also returns whether a new user has been registered in the system.
    logIn uses a new backend endpoint.
  • Introduces logOut, a replacement for reset.

Deprecations / removals

  • removes createAlias
  • deprecates identify in favor of logIn
  • deprecates reset in favor of logOut
  • deprecates allowSharingAppStoreAccount in favor of dashboard-side configuration

@aboedo aboedo requested a review from vegaro January 20, 2021 20:23
@aboedo aboedo self-assigned this Jan 20, 2021
@aboedo aboedo added this to the 4.0.0 milestone Jan 20, 2021
@aboedo aboedo force-pushed the feature/identityV3_public_facing_changes branch from c741906 to c0e4657 Compare January 20, 2021 21:26
NS_SWIFT_NAME(reset(_:)) __attribute((deprecated("Use logOut instead.")));

/**
This function will identify the current user with an appUserID.
Copy link
Contributor

Choose a reason for hiding this comment

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

Are these final?

Copy link
Member Author

Choose a reason for hiding this comment

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

no, I'll add a note 👍

@mmdumi
Copy link

mmdumi commented Jan 26, 2021

Hi, When is this functionality being finalised ? We're working our backend against the alias functionality and I would like to know if we'll have to change once this login / logout functionality is finalised

@rkotzy
Copy link
Member

rkotzy commented Jan 27, 2021

Hi, When is this functionality being finalised ? We're working our backend against the alias functionality and I would like to know if we'll have to change once this login / logout functionality is finalised

@mmdumi We're targeting end of February but that may get pushed out. All of these changes will be backwards compatible with the current functionality so you won't have to make any changes 👍

@aboedo aboedo force-pushed the feature/identityV3_public_facing_changes branch 2 times, most recently from 397598c to cc21683 Compare February 9, 2021 15:11
@aboedo aboedo force-pushed the feature/identityV3_public_facing_changes branch from cc21683 to 9432eae Compare February 19, 2021 16:44
@aboedo aboedo force-pushed the feature/identityV3_public_facing_changes branch from 9432eae to 8f01e91 Compare March 1, 2021 17:22
@aboedo aboedo force-pushed the feature/identityV3_public_facing_changes branch from 8f01e91 to b0d7375 Compare March 1, 2021 20:59
@aboedo aboedo force-pushed the feature/identityV3_public_facing_changes branch from b0d7375 to 160a86a Compare March 5, 2021 21:31
Base automatically changed from feature/identityV3 to develop March 17, 2021 18:56
@aboedo aboedo force-pushed the feature/identityV3_public_facing_changes branch 5 times, most recently from dcd1a62 to c353b89 Compare March 22, 2021 20:26
@aboedo aboedo force-pushed the feature/identityV3_public_facing_changes branch from c353b89 to 2a9370c Compare April 1, 2021 20:44
@aboedo aboedo force-pushed the feature/identityV3_public_facing_changes branch 2 times, most recently from 8def2e2 to 920fb49 Compare April 22, 2021 19:08
@aboedo aboedo modified the milestones: 4.0.0, 3.12.0 Apr 22, 2021
@aboedo aboedo force-pushed the feature/identityV3_public_facing_changes branch from 920fb49 to d3ba3ff Compare April 27, 2021 17:20
@aboedo aboedo closed this Apr 27, 2021
@aboedo aboedo deleted the feature/identityV3_public_facing_changes branch April 27, 2021 17:21
@aboedo aboedo restored the feature/identityV3_public_facing_changes branch April 27, 2021 17:21
@aboedo aboedo reopened this Apr 27, 2021
@aboedo aboedo force-pushed the feature/identityV3_public_facing_changes branch from e4db6f6 to 61c0671 Compare April 29, 2021 14:10
@aboedo aboedo force-pushed the feature/identityV3_public_facing_changes branch from 61c0671 to be41eb2 Compare May 27, 2021 20:32
@aboedo aboedo mentioned this pull request May 27, 2021
@@ -22,7 +22,7 @@ Pod::Spec.new do |s|
s.tvos.deployment_target = '9.0'

s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
s.dependency 'PurchasesCoreSwift', '3.12.0-SNAPSHOT'
s.dependency 'PurchasesCoreSwift'
Copy link
Contributor

Choose a reason for hiding this comment

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

is this for local development? we'll need to add a version right?

@aboedo aboedo force-pushed the feature/identityV3_public_facing_changes branch from be41eb2 to 8370c47 Compare June 4, 2021 14:44
@taquitos taquitos changed the base branch from develop to main June 9, 2021 17:28
@aboedo aboedo merged commit 956da62 into main Jul 13, 2021
@aboedo aboedo deleted the feature/identityV3_public_facing_changes branch July 13, 2021 17:43
@aboedo aboedo mentioned this pull request Jul 13, 2021
aboedo added a commit that referenced this pull request Jul 21, 2021
* Create CODE_OF_CONDUCT.md (#589)

Resolves #588

* Update issue templates (#537)

* Update issue templates

Looks like GitHub wants this named differently 🤷‍♂️

* Delete migration_task.md

* Update custom.md

* Update README.md (#636)

Just removing the outdated image on the readme

* ETags support (#509)

* identity v3: public-facing changes (#453)

* re-added the public-facing changes for identity v3

* updated nullability for errors in login

* temporarily removed version from PurchasesCoreSwift in Purchases.podspec

* updated sample app to use identity v3

* improved copy in RCPurchases.h

* Integration tests: Identity v3 test cases (#506)

* added extra test case for storekit tests

* added more test cases

* added a few more test cases

* slight cleanup

* added another, particularly gnarly test case

* updated test case name

* added another test case

* one more test case

* refactors and cleanups, made chained calls more reliable for one test case

* fixed name, added debug information to appUserIDs

* fixed issue with test clearing transactions when it shouldn't

* formatting

* code cleanup

* update call to replace api key and proxy url to catch issues if proxy url is empty

* updated syntax since lanes are executed in a block

* updated xcode and simulator versions for storekitTests

* updated syntax for setting log levels

* fixed fastlane changes that broke replace_in for storekit_tests

* update fastlane

* improvements from PR comments

* restricted storekit_tests to release tags and branches

* removed signing for storekittest app since it only runs in simulator

* removed storekitTestCertificate.cer since it's not needed, re-added tests just in case

* restricted storekit_tests to release branches and tags again now that they passed

* Bump addressable in /IntegrationTests/CocoapodsIntegration (#647)

Bumps [addressable](https://github.com/sporkmonger/addressable) from 2.7.0 to 2.8.0.
- [Release notes](https://github.com/sporkmonger/addressable/releases)
- [Changelog](https://github.com/sporkmonger/addressable/blob/main/CHANGELOG.md)
- [Commits](sporkmonger/addressable@addressable-2.7.0...addressable-2.8.0)

---
updated-dependencies:
- dependency-name: addressable
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* remove unused typedef to fix build warning (#649)

* Release: 3.12.0 (#648)

* looks like in some rebase createAlias got un-deprecated, re-deprecated it

* updated changelog and version number to 3.12.0

* added missing PR for identity v3 in changelog

* added install swiflint step to more ci jobs

* fix typo in circleci config.yml

* updated the name of the swiftlint step in xcode so it's more obvious at first glance when it fails

* fixed an issue where a few targets wouldn't compile correctly when doing carthage archive because they were pointing to unreleased versions of Purchases.

* re-added the old carthage script for archives

* added `vendor` folder to excluded directories for swiftlint

* Preparing for next version (#656)

Co-authored-by: Andy Boedo <andresboedo@gmail.com>

* added swiftlint installation to all places that were missing it (#657)

* Release: 3.12.1 (#659)

* renamed eTagInResponse -> maybeEtagInResponse to resolve conflict in some versions of Xcode

* updated version number to 3.12.1 and changelog

* added `scan_derived_data` to excluded directories for swiftlint

* Preparing for next version (#661)

Co-authored-by: Distiller <distiller@static.38.39.178.68.cyberlynk.net>

* Fix: Calling `setDebugLogsEnabled(false)` enables debug logs when it should not (#663)

* fixed a bug where setting debugLogsEnabled = false would still set them to true

* cleanup: replaced if / else with ternary operator

* reverted changes in SystemInfo initialization

* format fixes

* removed rchttpRequest

* updated call in `buildTvWatchAndMacOS`: install-gems -> install-dependencies

* undo accidental whitespace

* deleted empty RCSystemInfo.m file

Co-authored-by: Joshua Liebowitz <taquitos@users.noreply.github.com>
Co-authored-by: Corey Rabazinski <6013553+CoreyRab@users.noreply.github.com>
Co-authored-by: Cesar de la Vega <cesarvegaro@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: revenuecat-ops <60164957+revenuecat-ops@users.noreply.github.com>
Co-authored-by: Distiller <distiller@static.38.39.178.68.cyberlynk.net>
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.

None yet

5 participants