-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improvement
Enable library evolution (#1482)
## Summary - Adds default implementation for protocol `@_spi` properties - Adds tests to guarantee `assertionFailure` on unimplemented protocol conformance - Fixes unrelated warnings - Adds a [github workflow](https://github.com/Adyen/adyen-ios/actions/workflows/test_library_evolution.yml) that ensures the compatibility with `BUILD_LIBRARY_FOR_DISTRIBUTION=YES` See: #1354
- Loading branch information
Showing
7 changed files
with
140 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: 📚 Library Evolution Compatibility | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
push: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
|
||
build: | ||
name: Verify | ||
runs-on: macos-13-xl | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: n1hility/cancel-previous-runs@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Select latest Xcode | ||
uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: '14.3' | ||
|
||
- name: "xcodebuild clean archive BUILD_LIBRARY_FOR_DISTRIBUTION=YES" | ||
run: | | ||
xcodebuild -version | ||
xcodebuild clean archive -project "${project}" -scheme "${scheme}" ${params} -destination "${destination}" | xcpretty --utf --color && exit ${PIPESTATUS[0]} | ||
env: | ||
project: 'Adyen.xcodeproj' | ||
params: '-archivePath "archives/Adyen-iphoneos.xcarchive" -skipPackagePluginValidation SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES' | ||
scheme: 'Adyen' | ||
destination: 'generic/platform=iOS' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters