Skip to content

Commit

Permalink
5.0.0 changes: support SK2 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
NachoSoto authored Jul 1, 2024
1 parent 11f3962 commit 2bcd0ce
Show file tree
Hide file tree
Showing 1,005 changed files with 10,853 additions and 6,777 deletions.
283 changes: 134 additions & 149 deletions .circleci/config.yml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"StoreKit2JWSIntegrationTests",
"StoreKit2JWSObserverModeIntegrationTests",
"StoreKit2JWSObserverModeWithExistingPurchasesTests",
"StoreKit2NotEnabledObserverModeIntegrationTests",
"StoreKit2ObserverModeIntegrationTests",
"StoreKit2ObserverModeWithExistingPurchasesTests",
"SubscriberAttributesManagerIntegrationTests",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"StoreKit2JWSIntegrationTests",
"StoreKit2JWSObserverModeIntegrationTests",
"StoreKit2JWSObserverModeWithExistingPurchasesTests",
"StoreKit2NotEnabledObserverModeIntegrationTests",
"StoreKit2ObserverModeIntegrationTests",
"StoreKit2ObserverModeWithExistingPurchasesTests",
"TestCase"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"StoreKit2JWSIntegrationTests",
"StoreKit2JWSObserverModeIntegrationTests",
"StoreKit2JWSObserverModeWithExistingPurchasesTests",
"StoreKit2NotEnabledObserverModeIntegrationTests",
"StoreKit2ObserverModeIntegrationTests",
"StoreKit2ObserverModeWithExistingPurchasesTests",
"SubscriberAttributesManagerIntegrationTests",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,11 @@ class AppDelegate: UIResponder, UIApplicationDelegate {

- `appUserID` is nil by default, so an anonymous ID will be generated automatically by the Purchases SDK.
Read more about Identifying Users here: https://docs.revenuecat.com/docs/user-ids

- `observerMode` is false by default, so Purchases will automatically handle finishing transactions.
Read more about Observer Mode here: https://docs.revenuecat.com/docs/observer-mode
*/

Purchases.configure(
with: Configuration.Builder(withAPIKey: Constants.apiKey)
.with(usesStoreKit2IfAvailable: true)
.with(storeKitVersion: .storeKit2)
.build()
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,12 @@ struct MagicWeatherApp: App {

- `appUserID` is nil by default, so an anonymous ID will be generated automatically by the Purchases SDK.
Read more about Identifying Users here: https://docs.revenuecat.com/docs/user-ids

- `observerMode` is false by default, so Purchases will automatically handle finishing transactions.
Read more about Observer Mode here: https://dz gocs.revenuecat.com/docs/observer-mode

*/

Purchases.configure(
with: Configuration.Builder(withAPIKey: Constants.apiKey)
.with(usesStoreKit2IfAvailable: true)
.with(storeKitVersion: .storeKit2)
.build()
)

Expand Down
10 changes: 8 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
GIT
remote: https://github.com/RevenueCat/fastlane-plugin-create_xcframework
revision: 88a9a2d9d9de5d65ad5e57c5245da80315ec572b
specs:
fastlane-plugin-create_xcframework (1.1.2)

GIT
remote: https://github.com/RevenueCat/fastlane-plugin-revenuecat_internal
revision: 5f55466a2a8308cddb0c9f08bc4f3bc4c06a6549
Expand Down Expand Up @@ -194,7 +200,6 @@ GEM
xcodeproj (>= 1.13.0, < 2.0.0)
xcpretty (~> 0.3.0)
xcpretty-travis-formatter (>= 0.0.3, < 2.0.0)
fastlane-plugin-create_xcframework (1.1.2)
ffi (1.16.3)
fourflusher (2.3.1)
fuzzy_match (2.0.4)
Expand Down Expand Up @@ -355,9 +360,10 @@ DEPENDENCIES
cocoapods-trunk
danger
fastlane
fastlane-plugin-create_xcframework
fastlane-plugin-create_xcframework!
fastlane-plugin-revenuecat_internal!
nokogiri
rb-readline
rest-client

BUNDLED WITH
Expand Down
6 changes: 3 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ let package = Package(
name: "RevenueCat",
defaultLocalization: "en",
platforms: [
.macOS(.v10_13),
.macOS(.v10_15),
.watchOS("6.2"),
.tvOS(.v11),
.iOS(.v11),
.tvOS(.v13),
.iOS(.v13),
.visionOS(.v1)
],
products: [
Expand Down
6 changes: 3 additions & 3 deletions [email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ let package = Package(
name: "RevenueCat",
defaultLocalization: "en",
platforms: [
.macOS(.v10_13),
.macOS(.v10_15),
.watchOS("6.2"),
.tvOS(.v11),
.iOS(.v11)
.tvOS(.v13),
.iOS(.v13)
],
products: [
.library(name: "RevenueCat",
Expand Down
6 changes: 3 additions & 3 deletions [email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ let package = Package(
name: "RevenueCat",
defaultLocalization: "en",
platforms: [
.macOS(.v10_13),
.macOS(.v10_15),
.watchOS("6.2"),
.tvOS(.v11),
.iOS(.v11)
.tvOS(.v13),
.iOS(.v13)
],
products: [
.library(name: "RevenueCat",
Expand Down
19 changes: 11 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ Sign up to [get started for free](https://app.revenuecat.com/signup).

*RevenueCat* is the client for the [RevenueCat](https://www.revenuecat.com/) subscription and purchase tracking system. It's 100% `Swift` and compatible with `Objective-C`.

## Migrating from Purchases v3
## Migrating from Purchases v4 to v5
- See our [Migration guide](https://revenuecat.github.io/purchases-ios-docs/v5_api_migration_guide.html)

## Migrating from Purchases v3 to v4
- See our [Migration guide](https://revenuecat.github.io/purchases-ios-docs/v4_api_migration_guide.html)

## RevenueCat SDK Features
Expand Down Expand Up @@ -52,15 +55,15 @@ Or view our iOS sample apps:
- [MagicWeather SwiftUI](Examples/MagicWeatherSwiftUI)

## Requirements
- Xcode 14.0+
- Xcode 15.0+

| Platform | Minimum target |
| --- | --- |
| iOS | 11.0+ |
| tvOS | 11.0+ |
| macOS | 10.13+ |
| watchOS | 6.2+ |
| visionOS | 1.0+ |
|----------|----------------|
| iOS | 13.0+ |
| tvOS | 13.0+ |
| macOS | 10.15+ |
| watchOS | 6.2+ |
| visionOS | 1.0+ |

## SDK Reference
Our full SDK reference [can be found here](https://revenuecat.github.io/purchases-ios-docs).
Expand Down
6 changes: 3 additions & 3 deletions RevenueCat.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ Pod::Spec.new do |s|
s.framework = 'StoreKit'
s.swift_version = '5.7'

s.ios.deployment_target = '11.0'
s.ios.deployment_target = '13.0'
s.watchos.deployment_target = '6.2'
s.tvos.deployment_target = '11.0'
s.osx.deployment_target = '10.13'
s.tvos.deployment_target = '13.0'
s.osx.deployment_target = '10.15'
s.visionos.deployment_target = '1.0'

s.pod_target_xcconfig = {
Expand Down
Loading

0 comments on commit 2bcd0ce

Please sign in to comment.