-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added starter code for logIn * added basic logic to IdentityManager for logIn * added basic backend logic for logIn * fix imports * fixed more imports, removed magic number * added logOut * detekt * made logIn and logOut internal temporarily * added logInWith listener conversion * fixed a bug where if the appUserID was empty, login would still contact the backend. Added tests for logIn in identityManager * added tests for identifierManager.logOut * wip adding backend tests for logIn + considering case where purchaserInfo can't be parsed from the backend's response * added more tests for backend * added final backend tests for the login endpoint * added skeleton for unit tests for login in purchases * added logout test skeletons * more test cases for login in Purchases * added more test cases and fixed a bug where offerings would be fetched for the old app user id instead of the new one after a successful login * re-wrote logOut to use the identityManager's logic and added more tests * fix tests * fixed more tests * added error log for login errors in backend.kt * more logging cleanup * removed unused import * fixed formatting in a few places * more fixed indentation * added @JvmSynthetic in a couple of places * updated imports for identity strings to use the namespace instead of a full import * updated loginListener -> LogInCallback and moved it to kotlin * removed unnecessary line breaks * extracted log string into identity strings * fail<String> -> fail * removed unnecessary mock completion * small cleanup * added explicit call count to verify calls
- Loading branch information
Showing
10 changed files
with
793 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.