Skip to content

Commit

Permalink
clean up platforms for RevenueCatUI xcframework
Browse files Browse the repository at this point in the history
  • Loading branch information
aboedo committed Aug 15, 2024
1 parent fa3521a commit bb53e86
Showing 1 changed file with 21 additions and 11 deletions.
32 changes: 21 additions & 11 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -537,23 +537,33 @@ platform :ios do
end

lane :export_xcframeworks do |options|
create_and_sign_xcframework(scheme: 'RevenueCat', product_name: 'RevenueCat')
create_and_sign_xcframework(scheme: 'RevenueCatUIDev', product_name: 'RevenueCatUI')
end

private_lane :create_and_sign_xcframework do |options|
scheme = options[:scheme]
product_name = options[:product_name]

output_directory = 'build/xcframeworks'
platforms = [
create_and_sign_xcframework(
scheme: 'RevenueCat',
product_name: 'RevenueCat',
platforms: [
'iOS',
'macOS',
'maccatalyst',
'tvOS',
'watchOS',
'visionOS'
]
])
create_and_sign_xcframework(
scheme: 'RevenueCatUIDev',
product_name: 'RevenueCatUI',
platforms: [
'iOS',
'maccatalyst',
'watchOS',
])
end

private_lane :create_and_sign_xcframework do |options|
scheme = options[:scheme]
product_name = options[:product_name]
platforms = options[:platforms]

output_directory = "build/xcframeworks/#{product_name}"

create_xcframework(
destinations: platforms,
Expand Down

0 comments on commit bb53e86

Please sign in to comment.