Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Carthage #3978

Merged
merged 5 commits into from
Jun 20, 2024
Merged

Fix Carthage #3978

merged 5 commits into from
Jun 20, 2024

Conversation

jamesrb1
Copy link
Contributor

@jamesrb1 jamesrb1 commented Jun 20, 2024

It deletes all non-RevenueCat schemes which I assume are not needed by Carthage, so this should save a bit of time over what it was doing before too because it won't spend time on them.

https://app.circleci.com/pipelines/github/RevenueCat/purchases-ios/19899/workflows/a895e06e-305d-439d-9f99-3047a0375594

image

@jamesrb1 jamesrb1 added the build label Jun 20, 2024
@jamesrb1 jamesrb1 requested a review from a team June 20, 2024 18:16
@jamesrb1 jamesrb1 marked this pull request as ready for review June 20, 2024 18:16
@jamesrb1 jamesrb1 changed the title Attempt to fix carthage Fix Carthage Jun 20, 2024
Copy link
Member

@aboedo aboedo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but maybe we can allow-list revenueCatUI too?

# Carthage builds all schemes including ones we don't need, so let's nuke them before proceeding
schemes_directory = "Carthage/Checkouts/purchases-root/RevenueCat.xcodeproj/xcshareddata/xcschemes"
Dir.glob("#{schemes_directory}/*.xcscheme").each do |file_path|
next if File.basename(file_path) == "RevenueCat.xcscheme"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this mean that we're skipping the test for RevenueCatUI?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RevenueCatUI scheme is only defined in the Package file, which is ignored by Carthage.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh wait that might be wrong, it's there but not shown? Anyway, this is the directory it searches, so it shouldn't affect RevenueCatUI.

jamesborthwick@Jamess-MacBook-Pro-2 xcschemes % ls -l 
total 48
-rw-r--r--@ 1 jamesborthwick  staff  4978 13 Apr 14:02 BackendIntegrationTests.xcscheme
-rw-r--r--@ 1 jamesborthwick  staff  3591 13 Apr 14:02 ReceiptParser.xcscheme
-rw-r--r--@ 1 jamesborthwick  staff  7220 14 Jun 14:47 RevenueCat.xcscheme
-rw-r--r--@ 1 jamesborthwick  staff  2609 20 Jun 10:21 RevenueCatUIDev.xcscheme

@jamesrb1 jamesrb1 merged commit 707afb5 into main Jun 20, 2024
24 checks passed
@jamesrb1 jamesrb1 deleted the fix-carthage branch June 20, 2024 18:44
This was referenced Jun 21, 2024
tonidero pushed a commit that referenced this pull request Jun 21, 2024
**This is an automatic release.**

### Dependency Updates
* Bump fastlane from 2.220.0 to 2.221.0 (#3971) via dependabot[bot]
(@dependabot[bot])
* Bump rexml from 3.2.6 to 3.2.8 (#3907) via dependabot[bot]
(@dependabot[bot])
* Bump fastlane-plugin-revenuecat_internal from `8ec0072` to `5f55466`
(#3938) via dependabot[bot] (@dependabot[bot])
### Other Changes
* Fix cocoapods installation tests (#3981) via Toni Rico (@tonidero)
* Remove carthage from CI and update release jobs to use xcode 15 and M1
(#3927) via Cesar de la Vega (@vegaro)
* Bring back offline integration tests on M1 (#3976) via Toni Rico
(@tonidero)
* Fix Carthage (#3978) via James Borthwick (@jamesrb1)
* Revert "Run offline backend integration tests on M1 machines (#3961)"
(#3974) via Toni Rico (@tonidero)
* Run offline backend integration tests on M1 machines (#3961) via Toni
Rico (@tonidero)
* Xcode project with RevenueCatUI + Tests (#3960) via James Borthwick
(@jamesrb1)
* Clone to spm using fastlane (#3926) via James Borthwick (@jamesrb1)
* finishTransactions/ObserverMode -> PurchasesAreCompletedBy (#3947) via
James Borthwick (@jamesrb1)
* Switch tests for iOS 12 and 13 to M1 (#3958) via Toni Rico (@tonidero)
* Fix prepare next version job (#3939) via Toni Rico (@tonidero)
nyeu pushed a commit that referenced this pull request Oct 2, 2024
Deletes all non-"RevenueCat" schemes in the project's shared folder (currently `BackendIntegrationTests.xcscheme `, `ReceiptParser.xcscheme ` and `RevenueCatUIDev.xcscheme `, which I assume are not needed by Carthage, so this should save a bit of time over what it was doing before too because it won't spend time on them.
nyeu pushed a commit that referenced this pull request Oct 2, 2024
**This is an automatic release.**

### Dependency Updates
* Bump fastlane from 2.220.0 to 2.221.0 (#3971) via dependabot[bot]
(@dependabot[bot])
* Bump rexml from 3.2.6 to 3.2.8 (#3907) via dependabot[bot]
(@dependabot[bot])
* Bump fastlane-plugin-revenuecat_internal from `8ec0072` to `5f55466`
(#3938) via dependabot[bot] (@dependabot[bot])
### Other Changes
* Fix cocoapods installation tests (#3981) via Toni Rico (@tonidero)
* Remove carthage from CI and update release jobs to use xcode 15 and M1
(#3927) via Cesar de la Vega (@vegaro)
* Bring back offline integration tests on M1 (#3976) via Toni Rico
(@tonidero)
* Fix Carthage (#3978) via James Borthwick (@jamesrb1)
* Revert "Run offline backend integration tests on M1 machines (#3961)"
(#3974) via Toni Rico (@tonidero)
* Run offline backend integration tests on M1 machines (#3961) via Toni
Rico (@tonidero)
* Xcode project with RevenueCatUI + Tests (#3960) via James Borthwick
(@jamesrb1)
* Clone to spm using fastlane (#3926) via James Borthwick (@jamesrb1)
* finishTransactions/ObserverMode -> PurchasesAreCompletedBy (#3947) via
James Borthwick (@jamesrb1)
* Switch tests for iOS 12 and 13 to M1 (#3958) via Toni Rico (@tonidero)
* Fix prepare next version job (#3939) via Toni Rico (@tonidero)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants