Skip to content

Commit

Permalink
Updates PHC to 10.10.0 and checks its version at configure() time on …
Browse files Browse the repository at this point in the history
…iOS (#104)
  • Loading branch information
JayShortway authored Jun 26, 2024
1 parent 0f42914 commit b19cb42
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 21 deletions.
6 changes: 3 additions & 3 deletions 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/Purchases.framework'
spec.libraries = 'c++'
spec.ios.deployment_target = '11.0'
spec.dependency 'PurchasesHybridCommon', '10.7.0'
spec.dependency 'PurchasesHybridCommon', '10.10.0'

if !Dir.exist?('build/cocoapods/framework/Purchases.framework') || Dir.empty?('build/cocoapods/framework/Purchases.framework')
raise "
Expand All @@ -21,7 +21,7 @@ Pod::Spec.new do |spec|
Alternatively, proper pod installation is performed during Gradle sync in the IDE (if Podfile location is set)"
end

spec.pod_target_xcconfig = {
'KOTLIN_PROJECT_PATH' => ':core',
'PRODUCT_MODULE_NAME' => 'Purchases',
Expand All @@ -47,4 +47,4 @@ Pod::Spec.new do |spec|
}
]

end
end
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public actual class Purchases private constructor(private val iosPurchases: IosP
public actual fun configure(
configuration: PurchasesConfiguration
): Purchases {
// TODO Enable this in SDK-3301 checkCommonVersion()
checkCommonVersion()

return with(configuration) {
IosPurchases.configureWithAPIKey(
Expand Down Expand Up @@ -90,7 +90,7 @@ public actual class Purchases private constructor(private val iosPurchases: IosP

private fun checkCommonVersion() {
val expected = BuildKonfig.revenuecatCommonVersion
val actual = IosPurchases.frameworkVersion()
val actual = RCCommonFunctionality.hybridCommonVersion()
check(actual == expected) {
"Unexpected version of PurchasesHybridCommon ('$actual'). Make sure to use " +
"'$expected' exactly."
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ android-targetSdk = "34"
compose = "1.6.7"
java = "1.8"
kotlin = "1.9.23"
revenuecat-common = "10.7.0"
revenuecat-common = "10.10.0"
revenuecat-kmp = "0.5.0-SNAPSHOT"

[libraries]
Expand Down
24 changes: 12 additions & 12 deletions iosApp/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
PODS:
- PurchasesHybridCommon (10.7.0):
- RevenueCat (= 4.41.2)
- PurchasesHybridCommonUI (10.7.0):
- PurchasesHybridCommon (= 10.7.0)
- RevenueCatUI (= 4.41.2)
- RevenueCat (4.41.2)
- RevenueCatUI (4.41.2):
- RevenueCat (= 4.41.2)
- PurchasesHybridCommon (10.10.0):
- RevenueCat (= 4.43.0)
- PurchasesHybridCommonUI (10.10.0):
- PurchasesHybridCommon (= 10.10.0)
- RevenueCatUI (= 4.43.0)
- RevenueCat (4.43.0)
- RevenueCatUI (4.43.0):
- RevenueCat (= 4.43.0)

DEPENDENCIES:
- PurchasesHybridCommon
Expand All @@ -20,10 +20,10 @@ SPEC REPOS:
- RevenueCatUI

SPEC CHECKSUMS:
PurchasesHybridCommon: 01b102a271605eb5857a6cbf27e3fde31dae0f61
PurchasesHybridCommonUI: f3a7ef56aa41a7fd602b4f450393cc7897fe5815
RevenueCat: 0250867579677899de94f96ad9be342be865560f
RevenueCatUI: e3bac7e40db387f53e7b3579175cca749656bee7
PurchasesHybridCommon: dcc722da673612ae05e9cec1e4d8d45847ab0f40
PurchasesHybridCommonUI: bfa7c7f1d8ed8f96fdc1e2a53746c75cd69ffad9
RevenueCat: f7b90c52f4b7e322bc9e7adaf734030523534b06
RevenueCatUI: 1d945ac4cd70052c092e467588f545281b1ca8c3

PODFILE CHECKSUM: 94b98173b57ff2909b9b4bdb218a9abcceef39fe

Expand Down
6 changes: 3 additions & 3 deletions revenuecatui/revenuecatui.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/revenuecatui.framework'
spec.libraries = 'c++'
spec.ios.deployment_target = '11.0'
spec.dependency 'PurchasesHybridCommonUI', '10.7.0'
spec.dependency 'PurchasesHybridCommonUI', '10.10.0'

if !Dir.exist?('build/cocoapods/framework/revenuecatui.framework') || Dir.empty?('build/cocoapods/framework/revenuecatui.framework')
raise "
Expand All @@ -21,7 +21,7 @@ Pod::Spec.new do |spec|
Alternatively, proper pod installation is performed during Gradle sync in the IDE (if Podfile location is set)"
end

spec.pod_target_xcconfig = {
'KOTLIN_PROJECT_PATH' => ':revenuecatui',
'PRODUCT_MODULE_NAME' => 'revenuecatui',
Expand All @@ -47,4 +47,4 @@ Pod::Spec.new do |spec|
}
]
spec.resources = ['build/compose/cocoapods/compose-resources']
end
end

0 comments on commit b19cb42

Please sign in to comment.