Skip to content

Commit

Permalink
Paywalls: separate PurchasesHybridCommonUI (#858)
Browse files Browse the repository at this point in the history
Depends on
RevenueCat/purchases-hybrid-common#672

See also RevenueCat/purchases-flutter#943

---------

Co-authored-by: RevenueCat CI <dev+ci@revenuecat.com>
  • Loading branch information
NachoSoto and RevenueCat CI authored Jan 24, 2024
1 parent fcafeee commit ceaa27d
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 15 deletions.
5 changes: 3 additions & 2 deletions RNPurchases.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ Pod::Spec.new do |spec|
# developers who don't want to use Cocoapods
spec.exclude_files = [
"ios/Purchases.framework",
"ios/PurchasesHybridCommon.framework"
"ios/PurchasesHybridCommon.framework",
"ios/PurchasesHybridCommonUI.framework"
]

spec.dependency "React-Core"
spec.dependency "PurchasesHybridCommon", '8.12.0'
spec.dependency "PurchasesHybridCommon", '9.0.0'
spec.swift_version = '5.7'
end
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,6 @@ def kotlin_version = getExtOrDefault('kotlinVersion')
dependencies {
//noinspection GradleDynamicVersion
api 'com.facebook.react:react-native:+'
implementation 'com.revenuecat.purchases:purchases-hybrid-common:8.12.0'
implementation 'com.revenuecat.purchases:purchases-hybrid-common:9.0.0'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
1 change: 1 addition & 0 deletions examples/purchaseTesterTypescript/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ target 'PurchaseTester' do
# pod 'RevenueCat', :path => '../../../../../purchases-ios/'
# pod 'RevenueCatUI', :path => '../../../../../purchases-ios/'
# pod 'PurchasesHybridCommon', :path => '../../../../../purchases-hybrid-common/'
# pod 'PurchasesHybridCommonUI', :path => '../../../../../purchases-hybrid-common/'

use_react_native!(
:path => config[:reactNativePath],
Expand Down
2 changes: 1 addition & 1 deletion fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ files_with_version_number = {
}
files_to_update_phc_version = {
'RNPurchases.podspec' => ['"PurchasesHybridCommon", \'{x}\''],
'react-native-purchases-ui/RNPaywalls.podspec' => ['"PurchasesHybridCommon", \'{x}\''],
'react-native-purchases-ui/RNPaywalls.podspec' => ['"PurchasesHybridCommon", \'{x}\'', '"PurchasesHybridCommonUI", \'{x}\''],
'android/build.gradle' => ['com.revenuecat.purchases:purchases-hybrid-common:{x}'],
'react-native-purchases-ui/android/build.gradle' => ['com.revenuecat.purchases:purchases-hybrid-common-ui:{x}'],
'package.json' => ['"@revenuecat/purchases-typescript-internal": "{x}"']
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,6 @@
]
},
"dependencies": {
"@revenuecat/purchases-typescript-internal": "8.12.0"
"@revenuecat/purchases-typescript-internal": "9.0.0"
}
}
3 changes: 2 additions & 1 deletion react-native-purchases-ui/RNPaywalls.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Pod::Spec.new do |spec|
spec.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }

spec.dependency "React-Core"
spec.dependency "PurchasesHybridCommon", '8.12.0'
spec.dependency "PurchasesHybridCommon", '9.0.0'
spec.dependency "PurchasesHybridCommonUI", '9.0.0'
spec.swift_version = '5.7'
end
2 changes: 1 addition & 1 deletion react-native-purchases-ui/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ dependencies {
//noinspection GradleDynamicVersion
implementation "com.facebook.react:react-native:+"
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'com.revenuecat.purchases:purchases-hybrid-common-ui:8.12.0'
implementation 'com.revenuecat.purchases:purchases-hybrid-common-ui:9.0.0'
implementation 'androidx.compose.ui:ui-android:1.5.4'
implementation "androidx.appcompat:appcompat:1.6.1"
}
3 changes: 2 additions & 1 deletion react-native-purchases-ui/ios/PaywallViewManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
//

#import "PaywallViewManager.h"
@import PurchasesHybridCommon;

@import PurchasesHybridCommonUI;
@import RevenueCatUI;

@implementation PaywallViewManager
Expand Down
2 changes: 1 addition & 1 deletion react-native-purchases-ui/ios/RCPaywallFooterViewManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#import "RCPaywallFooterViewManager.h"

@import RevenueCatUI;
@import PurchasesHybridCommon;
@import PurchasesHybridCommonUI;

#import "UIView+Extensions.h"

Expand Down
2 changes: 1 addition & 1 deletion react-native-purchases-ui/ios/RNPaywalls.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#import <React/RCTEventEmitter.h>

@import PurchasesHybridCommon;
@import PurchasesHybridCommonUI;
@import RevenueCat;

static NSString *const safeAreaInsetsDidChangeEvent = @"safeAreaInsetsDidChange";
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3514,10 +3514,10 @@ __metadata:
languageName: node
linkType: hard

"@revenuecat/purchases-typescript-internal@npm:8.12.0":
version: 8.12.0
resolution: "@revenuecat/purchases-typescript-internal@npm:8.12.0"
checksum: 546b4d9b9d7f3d5042bc1af1c0723e740b6129c75673b8aba21d4096a0d2bfe4c6019db9f4a6334d818a372f061e065b4684abb836ee7642bc57ffec91f51f80
"@revenuecat/purchases-typescript-internal@npm:9.0.0":
version: 9.0.0
resolution: "@revenuecat/purchases-typescript-internal@npm:9.0.0"
checksum: b67d3ac0de052a3e8e06a08d2074fa67145b47c439e4a0555c65e3aff15f177dff77c08bbe0e01dd6edd0c5523872f3f347a528aedb715124db2b738a82b1d83
languageName: node
linkType: hard

Expand Down Expand Up @@ -12588,7 +12588,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "react-native-purchases@workspace:."
dependencies:
"@revenuecat/purchases-typescript-internal": 8.12.0
"@revenuecat/purchases-typescript-internal": 9.0.0
"@types/jest": ^26.0.0
"@types/react": ^16.9.19
"@types/react-native": 0.62.13
Expand Down

0 comments on commit ceaa27d

Please sign in to comment.