* Views be viewing
* Fixed lint
* Add swift flag check
* Fixed compile issue from rebase
* Made view models internal
* Fixed a bunch of merge issues
* Fix some compile stuff
* Fix things
The project no longer depends on `purchases-ios` through SPM.
This was needed for 2 reasons:
- `v3LoadShedderIntegration`
- `BackendCustomEntitlementsIntegrationTests`
Both of these depend on `RevenueCat_CustomEntitlementComputation`, which
is only an SPM library.
This solution allows us to build it but without having to clone the repo
separately through a dependency, and instead embedding a reference to
the _local_ Package.
`v3LoadShedderIntegration` depended on the 3.x release, so I've simply
removed it from the workspace. It can still be modified and ran directly
by opening the project.
This solves at least 2 major current annoyances:
- Compiling `BackendIntegrationTests` lead to compile errors because the
local changes weren't seen when building
`RevenueCat_CustomEntitlementComputation`.
- Switching branches was always frustrating, as Xcode tried to modify
`RevenueCat.xcworkspace/xcshareddata/swiftpm/Package.resolved` to point
to the latest commit in `main`, sometimes even making it crash.
⚠️ *This might also help with the timeouts when cloning the repo, since
SPM was probably resolving our repo twice through the transitive
dependency.*
#### New setup:
<img width="260" alt="Screenshot 2023-09-07 at 15 01 53"
src="https://github.com/RevenueCat/purchases-ios/assets/685609/7670b341-fc90-45e4-adda-6a9bd4d5656c">
This is required for Xcode Cloud:
> a resolved file is required when automatic dependency resolution is
disabled and should be placed at
/Volumes/workspace/repository/RevenueCat.xcworkspace/xcshareddata/swiftpm/Package.resolved.
Running resolver because the following dependencies were added:
'purchases-ios' (https://github.com/RevenueCat/purchases-ios)fatalError