Skip to content

Commit

Permalink
Merge branch 'rc-4.11.0' into kiddopia
Browse files Browse the repository at this point in the history
* rc-4.11.0: (964 commits)
  Update RevenueCat-Swift.h for version 4.11.0
  Version bump for 4.11.0
  skip if needed and adds automatic_release (RevenueCat#1870)
  Fixed crash on `async` SK1 cancelled purchase (RevenueCat#1869)
  Added `beginRefundRequest` overload with completion block (RevenueCat#1861)
  Release/4.10.3 (RevenueCat#1867)
  Update fastlane-plugin-revenuecat_internal and fix release-train job (RevenueCat#1866)
  fix typo in comment (RevenueCat#1863)
  Use Dangerfile repository (RevenueCat#1864)
  `CircleCI`: added job for building SDK with `SPM` (RevenueCat#1860)
  `TrialOrIntroPriceEligibilityChecker`: return `.noIntroOfferExists` if the product has no introductory offer (RevenueCat#1859)
  `Lock`: changed default implementation to use `NSLock` (RevenueCat#1819)
  `Offering: Sendable` conformance (RevenueCat#1826)
  `ReceiptParser: Sendable` conformance (RevenueCat#1825)
  `CustomerInfo: Sendable` conformance (RevenueCat#1824)
  Added `Collection.onlyElement` (RevenueCat#1857)
  README updates (RevenueCat#1856)
  `IntegrationTests`: actually fail test if tests aren't configured (RevenueCat#1855)
  `watchOS`: fixed crash on single-target apps (RevenueCat#1849)
  Prepare next version: 4.11.0-SNAPSHOT (RevenueCat#1854)
  ...

# Conflicts:
#	.circleci/config.yml
#	.jazzy.yaml
#	.version
#	CHANGELOG.latest.md
#	CHANGELOG.md
#	Gemfile.lock
#	Package.swift
#	Purchases/Attribution/RCAttributionFetcher.h
#	Purchases/Attribution/RCAttributionFetcher.m
#	Purchases/Attribution/RCAttributionPoster.m
#	Purchases/Attribution/RCAttributionTypeFactory.h
#	Purchases/Attribution/RCAttributionTypeFactory.m
#	Purchases/Caching/RCDeviceCache.m
#	Purchases/Misc/RCSystemInfo.m
#	Purchases/Networking/RCBackend.h
#	Purchases/Networking/RCBackend.m
#	Purchases/ProtectedExtensions/RCAttributionTypeFactory+Protected.h
#	Purchases/Public/RCPurchases.h
#	Purchases/Public/RCPurchases.m
#	Purchases/Public/RCPurchasesErrorUtils.h
#	Purchases/Public/RCPurchasesErrorUtils.m
#	Purchases/Purchasing/RCOfferingsFactory.m
#	Purchases/Purchasing/RCStoreKitRequestFetcher.h
#	Purchases/Purchasing/RCStoreKitRequestFetcher.m
#	Purchases/SubscriberAttributes/RCSubscriberAttributesManager.h
#	Purchases/SubscriberAttributes/RCSubscriberAttributesManager.m
#	PurchasesCoreSwift.podspec
#	PurchasesCoreSwift/Info.plist
#	PurchasesCoreSwift/Logging/Strings/AttributionStrings.swift
#	PurchasesCoreSwift/Logging/Strings/IdentityStrings.swift
#	PurchasesCoreSwift/Logging/Strings/OfferingStrings.swift
#	PurchasesCoreSwift/Misc/OperationDispatcher.swift
#	PurchasesCoreSwift/SubscriberAttributes/SpecialSubscriberAttributes.swift
#	PurchasesTests/Info.plist
#	PurchasesTests/Mocks/MockAttributionFetcher.swift
#	PurchasesTests/Mocks/MockAttributionTypeFactory.swift
#	PurchasesTests/Mocks/MockBackend.swift
#	PurchasesTests/Mocks/MockOfferingsFactory.swift
#	PurchasesTests/Mocks/MockRequestFetcher.swift
#	PurchasesTests/Networking/BackendTests.swift
#	PurchasesTests/Purchasing/OfferingsTests.swift
#	PurchasesTests/Purchasing/PurchasesTests.swift
#	PurchasesTests/SubscriberAttributes/PurchasesSubscriberAttributesTests.swift
#	RevenueCat.podspec
#	Sources/Info.plist
#	Tests/BackendIntegrationTestApp/Info.plist
#	Tests/BackendIntegrationTests/Info.plist
#	Tests/InstallationTests/CocoapodsInstallation/Gemfile.lock
#	Tests/InstallationTests/XcodeDirectInstallation/XcodeDirectInstallation.xcodeproj/project.pbxproj
#	Tests/UnitTests/Attribution/AttributionTypeFactoryTests.swift
#	Tests/UnitTests/Info.plist
#	Tests/UnitTests/Mocks/MockProductsRequest.swift
#	Tests/UnitTests/Mocks/MockSubscriberAttributesManager.swift
#	Tests/UnitTests/Purchasing/StoreKitRequestFetcherTests.swift
#	fastlane/Fastfile
  • Loading branch information
Kaushik Poria committed Sep 7, 2022
2 parents 50c5094 + 1c41c4a commit 93f4ac9
Show file tree
Hide file tree
Showing 1,390 changed files with 81,420 additions and 31,057 deletions.
582 changes: 442 additions & 140 deletions .circleci/config.yml

Large diffs are not rendered by default.

15 changes: 8 additions & 7 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Bug report
name: 🐛 Bug report
about: Filling a bug report
title: ''
labels: bug
Expand All @@ -8,20 +8,21 @@ assignees: ''
---

- [ ] I have updated Purchases SDK to the latest version
- [ ] I have read the [Contribution Guidelines](https://github.com/RevenueCat/purchases-ios/blob/main/CONTRIBUTING.md)
- [ ] I have read the [Help Center](https://support.revenuecat.com/hc/en-us)
- [ ] I have read the [Contribution Guidelines](https://github.com/RevenueCat/purchases-ios/blob/main/Development/CONTRIBUTING.md)
- [ ] I have searched the [Community](https://community.revenuecat.com)
- [ ] I have read [docs.revenuecat.com](https://docs.revenuecat.com/)
- [ ] I have searched for [existing Github issues](https://github.com/RevenueCat/purchases-ios/issues)

**Describe the bug**
A clear and concise description of what the bug is. The more detail you can provide the faster our team will be able to triage and resolve the issue. If debug logs are not applicable to this issue, please do not remove step 2 when submitting the issue.
A clear and concise description of what the bug is. The more detail you can provide the faster our team will be able to triage and resolve the issue. **Do not remove any of the steps from the template below. If a step is not applicable to your issue, please leave that step empty.**

1. Environment
1. Platform:
2. SDK version:
3. OS version:
4. Xcode version:
5. How widespread is the issue. Percentage of devices affected.
3. StoreKit 2 (_enabled with `useStoreKit2IfEnabled`_) (Y/N):
4. OS version:
5. Xcode version:
6. How widespread is the issue. Percentage of devices affected.
2. [Debug logs](https://docs.revenuecat.com/docs/debugging) that reproduce the issue
3. Steps to reproduce, with a description of expected vs. actual behavior
4. **Other information** (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)
Expand Down
31 changes: 17 additions & 14 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
blank_issues_enabled: false
contact_links:
- name: Our online community
url: https://spectrum.chat/revenuecat
about: Please ask and answer questions here
- name: Our Help Center
url: https://support.revenuecat.com/hc/en-us
- name: 🚥 RevenueCat system status
url: https://status.revenuecat.com
about: Check RevenueCat's API status
- name: 🙋 Our online community
url: https://community.revenuecat.com
about: Please ask and answer questions at https://community.revenuecat.com
- name: 🧾 Account or billing support
url: https://app.revenuecat.com/settings/support
about: Get help from our support team
- name: Feature Request
url: https://support.revenuecat.com/hc/en-us/articles/360046422033-Feature-Requests
about: Please use this instead of opening an issue. This is best channel that allows us to keep track of feature requests.
- name: Offerings, products, or available packages are empty
url: https://support.revenuecat.com/hc/en-us/articles/360041793174
- name: Feature request
url: https://app.revenuecat.com/settings/support
about: Please use the Contact Us form instead of opening an issue. This is best channel that allows us to keep track of feature requests.
- name: Offerings, products, or available packages are empty
url: https://community.revenuecat.com/search?q=why_are_offerings_empty&content_type[0]=discussion
about: Why are my products, offerings, or available packages empty?
- name: Invalid Play Store credentials errors
url: https://support.revenuecat.com/hc/en-us/articles/360046398913
- name: Invalid Play Store credentials errors
url: https://community.revenuecat.com/search?q=invalid_play_store_credentials&content_type%5B0%5D=discussion
about: How to solve Play Store credentials errors
- name: Unable to connect to the App Store (STORE_PROBLEM) errors
url: https://support.revenuecat.com/hc/en-us/articles/360046399333
- name: Unable to connect to the App Store (STORE_PROBLEM) errors
url: https://community.revenuecat.com/search?q=store%20problem&content_type%5B0%5D=discussion
about: Why I get STORE_PROBLEM errors

11 changes: 0 additions & 11 deletions .github/ISSUE_TEMPLATE/custom.md

This file was deleted.

4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
name: Feature request
name: Feature request
about: Suggest an idea for this project
title: ''
labels: enhancement
assignees: ''

---

Please use https://support.revenuecat.com/hc/en-us/articles/360046422033-Feature-Requests instead of opening an issue. That is the best channel that allows us to keep track of feature requests.
Please use https://app.revenuecat.com/settings/support instead of opening an issue. That is the best channel that allows us to keep track of feature requests.
14 changes: 10 additions & 4 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
Thank you for contributing to Purchases. Before pressing the "Create Pull Request" button, please provide the following:
<!-- Thank you for contributing to Purchases! Before pressing the "Create Pull Request" button, please provide the following: -->

- [ ] A description about what and why you are contributing, even if it's trivial.
### Checklist
- [ ] If applicable, unit tests
- [ ] If applicable, create follow-up issues for `purchases-android` and hybrids

- [ ] The issue number(s) or PR number(s) in the description if you are contributing in response to those.
### Motivation
<!-- Why is this change required? What problem does it solve? -->
<!-- Please link to issues following this format: Resolves #999999 -->

- [ ] If applicable, unit tests.
### Description
<!-- Describe your changes in detail -->
<!-- Please describe in detail how you tested your changes -->
28 changes: 0 additions & 28 deletions .github/issuecomplete.yml

This file was deleted.

5 changes: 4 additions & 1 deletion .github/stale.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Configuration for probot-stale - https://github.com/probot/stale

# Number of days of inactivity before an Issue or Pull Request becomes stale
daysUntilStale: 30
daysUntilStale: 7

# Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
Expand All @@ -19,6 +19,9 @@ exemptLabels:
- do-not-lock
- swift migration
- test backfill
- pinned
- you can do this!
- triaged

# Set to true to ignore issues in a project (defaults to false)
#exemptProjects: false
Expand Down
13 changes: 10 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
build/
docs/
DerivedData/
*.moved-aside
*.pbxuser
Expand All @@ -25,12 +24,20 @@ DerivedData/
.idea/
Carthage
.DS_Store
.ruby-version
.bundle/
.build/
vendor/
CarthageUploads
*.bck
**/fastlane/report.xml
**/fastlane/test_output/
builds/
Pods/
IntegrationTests/CarthageIntegration/Cartfile.resolved
scan_derived_data/
IntegrationTests/CarthageInstallation/Cartfile.resolved
scan_derived_data/
generated_docs/
**/Package.resolved

# fastlane
fastlane/.env
13 changes: 5 additions & 8 deletions .jazzy.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
clean: true
author: RevenueCat
author_url: https://revenuecat.com
objc: true
sdk: iphonesimulator
module: Purchases
umbrella_header: Purchases/Public/Purchases.h
module_version: 3.13.2
module_version: 4.11.0
github_url: https://github.com/revenuecat/purchases-ios
github_file_prefix: https://github.com/revenuecat/purchases-ios/tree/3.13.2
output: docs
# Leaving this commented out. We used to specify this before, but now it's working without it
# xcodebuild_arguments: [--objc,Purchases/Public/Purchases.h,--,-x,objective-c,-isysroot,$(xcrun --show-sdk-path),-I,$(pwd)]
github_file_prefix: https://github.com/revenuecat/purchases-ios/tree/4.11.0
output: generated_docs
include:
- "Sources/**/*"
Empty file added .nojekyll
Empty file.
5 changes: 5 additions & 0 deletions .spi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: 1
builder:
configs:
- platform: ios
documentation_targets: [RevenueCat]
33 changes: 25 additions & 8 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,33 @@
excluded:
- Carthage
- Pods
- PurchasesTests
- PurchasesCoreSwiftTests
- Examples
- IntegrationTests
- StoreKitTests
- Tests/InstallationTests
- Tests/TestingApps
- vendor
- scan_derived_data
disabled_rules:
- trailing_comma
identifier_name:
- .git
- .build

opt_in_rules:
- sorted_imports
- missing_docs
- convenience_type
- multiline_parameters
- vertical_parameter_alignment
- vertical_parameter_alignment_on_call

custom_rules:
xctestcase_superclass:
included: ".*\\.swift"
excluded: Tests/BackendIntegrationTests
regex: "\\: XCTestCase \\{"
name: "XCTestCase Superclass"
message: "Test classes must inherit `TestCase` instead."

identifier_name:
max_length:
warning: 60
error: 80

missing_docs:
excludes_inherited_types: false
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.13.2
4.11.0
10 changes: 6 additions & 4 deletions CHANGELOG.latest.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
- Disable asserts in release builds when using Swift Package Manager
https://github.com/RevenueCat/purchases-ios/pull/1061
- Fixed `.xcframework` not including dSYMs
https://github.com/RevenueCat/purchases-ios/pull/1117
### Bugfixes
* Fixed crash on `async` SK1 cancelled purchase (#1869) via NachoSoto (@NachoSoto)
### New Features
* Added `beginRefundRequest` overload with completion block (#1861) via NachoSoto (@NachoSoto)
### Other Changes
* Skip release if needed and adds automatic release to PR title and body (#1870) via Cesar de la Vega (@vegaro)
Loading

0 comments on commit 93f4ac9

Please sign in to comment.