-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate RCPurchaseOwnershipType (#594)
* Add APITester target - Added an `APITester` target that relies on the project's public API - Added build phase run step that builds the `APITester` after the `Purchases` framework - If the `APITester` target fails, that means we changed the public API * Update project.pbxproj Circular dependencies... let's just do a new circle CI step for the target. * Update dependency Forgot to update this dependency 🤦♂️ * Migrate the logger Resolves #559 * Fix build * Don't try and verify bitcode for the APITester project * Add a swift file Because apparently this is a thing. * Update TODOs and messaging to make intentions more clear * Add APITester target - Added an `APITester` target that relies on the project's public API - Added build phase run step that builds the `APITester` after the `Purchases` framework - If the `APITester` target fails, that means we changed the public API * Update project.pbxproj Circular dependencies... let's just do a new circle CI step for the target. * Initial stuff * Rebased * address comments that aren't being addressed in another PR
- Loading branch information
Showing
10 changed files
with
148 additions
and
104 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
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// PurchaseOwnershipType.swift | ||
// PurchasesCoreSwift | ||
// | ||
// Created by Joshua Liebowitz on 6/24/21. | ||
// Copyright © 2021 Purchases. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
@objc(RCPurchaseOwnershipType) public enum PurchaseOwnershipType: Int { | ||
/** | ||
The purchase was made directly by this user. | ||
*/ | ||
case purchased = 0 | ||
/** | ||
The purchase has been shared to this user by a family member. | ||
*/ | ||
case familyShared = 1 | ||
|
||
case unknown = 2 | ||
} |
39 changes: 39 additions & 0 deletions
39
PurchasesCoreSwift/Public/ReOrgLater/EntitlementInfoEnums.swift
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// | ||
// EntitlementInfoEnums.swift | ||
// PurchasesCoreSwift | ||
// | ||
// Created by Joshua Liebowitz on 6/24/21. | ||
// Copyright © 2021 Purchases. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
/** | ||
Enum of supported stores | ||
*/ | ||
@objc(RCStore) public enum Store: Int { | ||
/// For entitlements granted via Apple App Store. | ||
@objc(RCAppStore) case appStore = 0 | ||
/// For entitlements granted via Apple Mac App Store. | ||
@objc(RCMacAppStore) case macAppStore = 1 | ||
/// For entitlements granted via Google Play Store. | ||
@objc(RCPlayStore) case playStore = 2 | ||
/// For entitlements granted via Stripe. | ||
@objc(RCStripe) case stripe = 3 | ||
/// For entitlements granted via a promo in RevenueCat. | ||
@objc(RCPromotional) case promotional = 4 | ||
/// For entitlements granted via an unknown store. | ||
@objc(RCUnknownStore) case unknownStore = 5 | ||
} | ||
|
||
/** | ||
Enum of supported period types for an entitlement. | ||
*/ | ||
@objc(RCPeriodType) public enum PeriodType: Int { | ||
/// If the entitlement is not under an introductory or trial period. | ||
@objc(RCNormal) case normal = 0 | ||
/// If the entitlement is under a introductory price period. | ||
@objc(RCIntro) case intro = 1 | ||
/// If the entitlement is under a trial period. | ||
@objc(RCTrial) case trial = 2 | ||
} |
Oops, something went wrong.