mirror of
https://github.com/RevenueCat/purchases-ios
synced 2026-11-09 22:35:56 +05:45
### RevenueCatUI and its tests are now accessible in the files navigator: <img width="555" alt="image" src="https://github.com/RevenueCat/purchases-ios/assets/109382862/a4067d0a-62e5-43b2-bf77-a8a7ee1dd16e"> ### It add two new schemes: <img width="384" alt="image" src="https://github.com/RevenueCat/purchases-ios/assets/109382862/94b80848-5cc3-4abc-b132-345d79a6f143"> Use RevenueCatUIDev to build RevenueCatUI, and RevenueCatUITests to run its tests. ### Linting works: <img width="716" alt="image" src="https://github.com/RevenueCat/purchases-ios/assets/109382862/aacfa0bf-84af-494e-a4b1-9434de69b4f8"> ### Individual tests can be run from the UI: <img width="999" alt="image" src="https://github.com/RevenueCat/purchases-ios/assets/109382862/902c5167-d352-4e6d-a848-c5d6c0e988de"> ## N.B. - Tests must be run via the RevenueCatUITest scheme. - Xcode sometimes has difficulties switching schemes. If you see the errors below, **clean the build folder** and try again and it will work <img width="822" alt="image" src="https://github.com/RevenueCat/purchases-ios/assets/109382862/0ac8dd77-676c-46e4-bc76-f8edf86f5a79"> - Building with the RevenueCatUIDev scheme creates some warnings related to switches. Adding in an `@unknown default:` resolves the warning but causes an error in other configurations ("Default will never be executed"). <img width="801" alt="image" src="https://github.com/RevenueCat/purchases-ios/assets/109382862/dcba6e0c-5755-4e5a-b940-ca270242b6bb"> - Because the root Package file was not altered, this PR won't have any affect on how our package works when integrated via SPM. --------- Co-authored-by: Cesar de la Vega <cesarvegaro@gmail.com>
25 lines
745 B
Objective-C
25 lines
745 B
Objective-C
//
|
|
// 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
|
|
//
|
|
// RevenueCatUIDev.h
|
|
//
|
|
// Created by James Borthwick on 2024-06-14.
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
//! Project version number for RevenueCatUIDev.
|
|
FOUNDATION_EXPORT double RevenueCatUIDevVersionNumber;
|
|
|
|
//! Project version string for RevenueCatUIDev.
|
|
FOUNDATION_EXPORT const unsigned char RevenueCatUIDevVersionString[];
|
|
|
|
// In this header, you should import all the public headers of your framework using statements like #import <RevenueCatUIDev/PublicHeader.h>
|
|
|
|
|