mirror of
https://github.com/RevenueCat/purchases-ios
synced 2026-11-11 22:55:55 +05:45
63 lines
1.8 KiB
Swift
63 lines
1.8 KiB
Swift
//
|
|
// Copyright RevenueCat Inc. All Rights Reserved.
|
|
//
|
|
// Licensed under the MIT License (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// https://opensource.org/licenses/MIT
|
|
//
|
|
// IdentityStrings.swift
|
|
//
|
|
// Created by Tina Nguyen on 12/11/20.
|
|
|
|
import Foundation
|
|
|
|
// swiftlint:disable identifier_name
|
|
enum IdentityStrings {
|
|
|
|
case logging_in_with_empty_appuserid
|
|
|
|
case logging_in_with_same_appuserid
|
|
|
|
case login_success
|
|
|
|
case log_out_called_for_user
|
|
|
|
case log_out_success
|
|
|
|
case identifying_app_user_id
|
|
|
|
case null_currentappuserid
|
|
|
|
case deleting_synced_attributes_none_found
|
|
|
|
}
|
|
|
|
extension IdentityStrings: CustomStringConvertible {
|
|
|
|
var description: String {
|
|
switch self {
|
|
case .logging_in_with_empty_appuserid:
|
|
return "The appUserID is empty. " +
|
|
"This method should only be called with non-empty values."
|
|
case .logging_in_with_same_appuserid:
|
|
return "The appUserID passed to logIn is the same as the one " +
|
|
"already cached. No action will be taken."
|
|
case .login_success:
|
|
return "Log in successful"
|
|
case .log_out_called_for_user:
|
|
return "Log out called for user"
|
|
case .log_out_success:
|
|
return "Log out successful"
|
|
case .identifying_app_user_id:
|
|
return "Identifying App User ID"
|
|
case .null_currentappuserid:
|
|
return "currentAppUserID is nil. This might happen if the cache in UserDefaults is unintentionally cleared."
|
|
case .deleting_synced_attributes_none_found:
|
|
return "Attempt to delete synced attributes for user, but there were none to delete"
|
|
}
|
|
}
|
|
|
|
}
|