Skip to content

Commit

Permalink
Separate PurchasesHybridCommonUI
Browse files Browse the repository at this point in the history
  • Loading branch information
NachoSoto committed Jan 23, 2024
1 parent 9b6b0b3 commit 6d6a4c4
Show file tree
Hide file tree
Showing 13 changed files with 359 additions and 37 deletions.
1 change: 0 additions & 1 deletion PurchasesHybridCommon.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ Pod::Spec.new do |s|
s.framework = 'SwiftUI'

s.dependency 'RevenueCat', '4.32.1'
s.dependency 'RevenueCatUI', '4.32.1'
s.swift_version = '5.7'

s.ios.deployment_target = '11.0'
Expand Down
35 changes: 35 additions & 0 deletions PurchasesHybridCommonUI.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
Pod::Spec.new do |s|
s.name = "PurchasesHybridCommonUI"
s.version = "8.11.2"
s.summary = "Common files for hybrid SDKs for RevenueCat UI"

s.description = <<-DESC
Save yourself the hastle of implementing a subscriptions backend. Use RevenueCat instead https://www.revenuecat.com/
DESC

s.homepage = "https://www.revenuecat.com/"
s.license = { :type => 'MIT' }
s.author = { "RevenueCat, Inc." => "support@revenuecat.com" }
s.source = { :git => "https://github.com/revenuecat/purchases-hybrid-common.git", :tag => s.version.to_s }
s.documentation_url = "https://docs.revenuecat.com/"

s.framework = 'StoreKit'
s.framework = 'SwiftUI'

s.dependency 'RevenueCat', '4.32.0'
s.dependency 'RevenueCatUI', '4.32.0'
s.swift_version = '5.7'

s.ios.deployment_target = '11.0'
s.osx.deployment_target = '10.13'
s.tvos.deployment_target = '11.0'

s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }

s.source_files = ['ios/PurchasesHybridCommon/PurchasesHybridCommonUI/**/*.{h,m,swift}']

s.public_header_files = [
'ios/PurchasesHybridCommon/PurchasesHybridCommonUI/*.h'
]

end
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import <Foundation/Foundation.h>
@import PurchasesHybridCommon;
@import PurchasesHybridCommonUI;

NS_ASSUME_NONNULL_BEGIN

Expand Down
13 changes: 10 additions & 3 deletions ios/PurchasesHybridCommon/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
target 'PurchasesHybridCommon' do
platform :ios, '11.0'
use_frameworks!

# Pods for PurchasesHybridCommon

pod 'RevenueCat', '4.32.1'
pod 'RevenueCatUI', '4.32.1'

target 'PurchasesHybridCommonTests' do
# Pods for testing
Expand All @@ -22,6 +20,15 @@ target 'PurchasesHybridCommon' do

end

target 'PurchasesHybridCommonUI' do
platform :ios, '11.0'
use_frameworks!

pod 'RevenueCat', '4.32.0'
pod 'RevenueCatUI', '4.32.0'

end

target 'ObjCAPITester' do
platform :ios, '11.0'
use_frameworks!
Expand Down
2 changes: 1 addition & 1 deletion ios/PurchasesHybridCommon/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ SPEC CHECKSUMS:
RevenueCat: 435a7e59f541d07bc904a5d9802bcdbc0978140d
RevenueCatUI: 7a09480fe34d5bda83c5b9bc42c326e8a3a8c0dc

PODFILE CHECKSUM: 9fe47195f4ff367439c51ae493e9f25fb6b017db
PODFILE CHECKSUM: c657fd8288554a3a3700a2c496d708f1a00462af

COCOAPODS: 1.14.3

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1330"
LastUpgradeVersion = "1520"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1140"
LastUpgradeVersion = "1520"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1400"
LastUpgradeVersion = "1520"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1520"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "4F7974492B5EDDEF003085E7"
BuildableName = "PurchasesHybridCommonUI.framework"
BlueprintName = "PurchasesHybridCommonUI"
ReferencedContainer = "container:PurchasesHybridCommon.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "4F7974492B5EDDEF003085E7"
BuildableName = "PurchasesHybridCommonUI.framework"
BlueprintName = "PurchasesHybridCommonUI"
ReferencedContainer = "container:PurchasesHybridCommon.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// PaywallProxy.swift
// PurchasesHybridCommon
// PurchasesHybridCommonUI
//
// Created by Nacho Soto on 11/1/23.
// Copyright © 2023 RevenueCat. All rights reserved.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// PaywallResult.swift
// PurchasesHybridCommon
// PurchasesHybridCommonUI
//
// Created by Antonio Rico Diez on 4/1/24.
// Copyright © 2024 RevenueCat. All rights reserved.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//
// PurchasesHybridCommonUI.h
// PurchasesHybridCommonUI
//
// Created by NachoSoto on 1/22/24.
// Copyright © 2024 RevenueCat. All rights reserved.
//

#import <Foundation/Foundation.h>

//! Project version number for PurchasesHybridCommon.
FOUNDATION_EXPORT double PurchasesHybridCommonVersionNumber;

//! Project version string for PurchasesHybridCommon.
FOUNDATION_EXPORT const unsigned char PurchasesHybridCommonVersionString[];

// In this header, you should import all the public headers of your framework using statements like #import <PurchasesHybridCommonUI/PublicHeader.h>

0 comments on commit 6d6a4c4

Please sign in to comment.