Skip to content

Commit

Permalink
Update dependency com.revenuecat.purchases:purchases to v7.8.0 (#44)
Browse files Browse the repository at this point in the history
* Update RevenueCat

* Adds new stores to the Store enum.

---------

Co-authored-by: Renovate Bot <bot@renovateapp.com>
  • Loading branch information
JayShortway and renovate-bot authored Apr 22, 2024
1 parent fad2a2c commit a2af2ad
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/core.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Pod::Spec.new do |spec|
spec.vendored_frameworks = 'build/cocoapods/framework/KobanKat.framework'
spec.libraries = 'c++'
spec.ios.deployment_target = '11.0'
spec.dependency 'RevenueCat', '4.39.0'
spec.dependency 'RevenueCat', '4.41.0'

if !Dir.exist?('build/cocoapods/framework/KobanKat.framework') || Dir.empty?('build/cocoapods/framework/KobanKat.framework')
raise "
Expand Down
10 changes: 10 additions & 0 deletions core/src/commonMain/kotlin/io/shortway/kobankat/EntitlementInfo.kt
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,16 @@ public expect enum class Store {
* For entitlements granted via Amazon store.
*/
AMAZON,

/**
* For entitlements granted via RC Billing.
*/
RC_BILLING,

/**
* For entitlements granted via RevenueCat's External Purchases API.
*/
EXTERNAL,
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ public actual enum class Store {
PROMOTIONAL,
UNKNOWN_STORE,
AMAZON,
RC_BILLING,
EXTERNAL,
}

public actual enum class PeriodType {
Expand Down Expand Up @@ -100,4 +102,4 @@ internal fun RCPurchaseOwnershipType.toOwnershipType(): OwnershipType =
RCPurchaseOwnershipTypeFamilyShared -> OwnershipType.FAMILY_SHARED
RCPurchaseOwnershipTypeUnknown -> OwnershipType.UNKNOWN
else -> error("Unknown RCPurchaseOwnershipType: $this")
}
}
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ android-targetSdk = "34"
compose = "1.6.6"
java = "1.8"
kotlin = "1.9.23"
revenuecat-android = "7.7.2"
revenuecat-ios = "4.39.0"
revenuecat-android = "7.9.0"
revenuecat-ios = "4.41.0"

[libraries]
android-gradlePlugin = { module = "com.android.tools.build:gradle", version.ref = "agp" }
Expand Down

0 comments on commit a2af2ad

Please sign in to comment.