-
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.
test: add API test for new
DangerousSettings
init
- Loading branch information
1 parent
fffa4b9
commit f406e82
Showing
3 changed files
with
26 additions
and
0 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
18 changes: 18 additions & 0 deletions
18
Tests/APITesters/AllAPITests/SwiftAPITester/DangerousSettingsAPI.swift
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,18 @@ | ||
// | ||
// 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 | ||
// | ||
// DangerousSettingsAPI.swift | ||
// | ||
// Created by Antonio Pallares on 28/1/25. | ||
|
||
@_spi(Internal) import RevenueCat | ||
|
||
func checkDangerousSettingsAPI() { | ||
let _: DangerousSettings = DangerousSettings(uiPreviewMode: true) | ||
} |
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 |
---|---|---|
|
@@ -70,5 +70,7 @@ func main() -> Int { | |
|
||
checkVerificationResultAPI() | ||
|
||
checkDangerousSettingsAPI() | ||
|
||
return 0 | ||
} |