Skip to content

Commit

Permalink
Paywalls: set up CI tests and API Tester (#2816)
Browse files Browse the repository at this point in the history
  • Loading branch information
NachoSoto committed Jul 24, 2023
1 parent 240f7f8 commit 9e115d9
Show file tree
Hide file tree
Showing 16 changed files with 609 additions and 9 deletions.
21 changes: 21 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,25 @@ jobs:
command: swift build -c release --target ReceiptParser
no_output_timeout: 30m

spm-revenuecat-ui-ios-16:
<<: *base-job
steps:
- checkout
- update-spm-installation-commit
- run:
name: SPM RevenueCatUI Release Build
command: swift build -c release --target RevenueCatUI
no_output_timeout: 5m
- run:
name: SPM RevenueCatUI Tests
command: bundle exec fastlane test_revenuecatui
no_output_timeout: 5m
environment:
SCAN_DEVICE: iPhone 14,OS=16.4
- run:
name: RevenueCatUI API Tests
command: bundle exec fastlane build_revenuecatui_api_tester

run-test-ios-17:
<<: *base-job
steps:
Expand Down Expand Up @@ -878,6 +897,8 @@ workflows:
xcode_version: '14.3.0'
- spm-receipt-parser:
xcode_version: '14.3.0'
- spm-revenuecat-ui-ios-16:
xcode_version: '14.3.0'
# Disabled until we drop support for iOS 11
# - run-test-ios-17:
# xcode_version: '15.0.0'
Expand Down
1 change: 1 addition & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ let package = Package(
"Nimble",
.product(name: "SnapshotTesting", package: "swift-snapshot-testing")
],
exclude: ["__Snapshots__"],
resources: [.copy("Resources/image.png")])
]
)
2 changes: 2 additions & 0 deletions RevenueCatUI/Templates/Example1Template.swift
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,9 @@ private struct Example1TemplateContent: View {
.fontWeight(.semibold)
.tint(Color.green.gradient.opacity(0.8))
.buttonStyle(.borderedProminent)
#if !os(macOS)
.buttonBorderShape(.capsule)
#endif
.controlSize(.large)
}

Expand Down
2 changes: 1 addition & 1 deletion RevenueCatUI/Views/DebugErrorView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ struct DebugErrorView: View {
Logger.warning("Couldn't load paywall: \(self.description)")
}

case let .fatalError:
case .fatalError:
fatalError(self.description)
}
#endif
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
Loading

0 comments on commit 9e115d9

Please sign in to comment.