-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #3152.
- Loading branch information
Showing
12 changed files
with
495 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
Pod::Spec.new do |s| | ||
s.name = "RevenueCatUI" | ||
s.version = "4.30.0-SNAPSHOT" | ||
s.summary = "UI library for RevenueCat paywalls." | ||
|
||
s.description = <<-DESC | ||
Save yourself the hassle 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." => "[email protected]" } | ||
s.source = { :git => "https://github.com/revenuecat/purchases-ios.git", :tag => s.version.to_s } | ||
s.documentation_url = "https://docs.revenuecat.com/" | ||
|
||
s.framework = 'SwiftUI' | ||
s.swift_version = '5.7' | ||
|
||
s.ios.deployment_target = '15.0' | ||
|
||
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' } | ||
|
||
s.source_files = 'RevenueCatUI/**/*.swift' | ||
|
||
s.dependency 'RevenueCat', s.version.to_s | ||
|
||
s.resource_bundles = { | ||
'RevenueCat_RevenueCatUI' => [ | ||
# Note: these have to match the values in Package.swift | ||
'RevenueCatUI/Resources/background.jpg', | ||
'RevenueCatUI/Resources/icons.xcassets', | ||
] | ||
} | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// | ||
// Copyright RevenueCat Inc. All Rights Reserved. | ||
// | ||
// Licensed under the MIT License (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// https://opensource.org/licenses/MIT | ||
// | ||
// Bundle+Extensions.swift | ||
// | ||
// Created by Nacho Soto on 10/31/23. | ||
// | ||
|
||
import Foundation | ||
|
||
#if COCOAPODS | ||
|
||
extension Bundle { | ||
|
||
static let module: Bundle = { | ||
let candidates = [ | ||
Bundle.main.resourceURL, | ||
Bundle(for: BundleToken.self).resourceURL | ||
] | ||
|
||
// Generated by CocoaPods | ||
let bundleName = "RevenueCat_RevenueCatUI" | ||
|
||
for candidate in candidates { | ||
let bundlePath = candidate?.appendingPathComponent(bundleName + ".bundle") | ||
if let bundle = bundlePath.flatMap(Bundle.init(url:)) { | ||
return bundle | ||
} | ||
} | ||
|
||
return Bundle(for: BundleToken.self) | ||
}() | ||
|
||
} | ||
|
||
private final class BundleToken {} | ||
|
||
#endif |
Oops, something went wrong.