-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Restructure for better support and maintenance
BREAKING CHANGE: - Moved circleci to githubci - Supports RxSwift 6.0 - Release xcframeworks
- Loading branch information
Showing
90 changed files
with
3,364 additions
and
2,499 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,73 @@ | ||
name: Create release | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
build: | ||
if: "!contains(github.event.head_commit.message, 'skip ci')" | ||
runs-on: macos-11.0 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Fetch all tags | ||
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* | ||
|
||
- name: Bump version | ||
run: | | ||
chmod +x ./scripts/bump-version.sh | ||
./scripts/bump-version.sh | ||
# - name: Changelog | ||
# uses: scottbrenner/generate-changelog-action@master | ||
# id: Changelog | ||
# env: | ||
# REPO: ${{ github.repository }} | ||
|
||
- name: Push changes | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: ${{ github.ref }} | ||
|
||
- name: Release XCFrameworks | ||
run: | | ||
chmod +x ./scripts/xcframeworks.sh | ||
./scripts/xcframeworks.sh | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ env.RELEASE_VERSION }} | ||
release_name: RxWebKit ${{ env.RELEASE_VERSION }} | ||
# body: | | ||
# ${{ steps.Changelog.outputs.changelog }} | ||
draft: false | ||
prerelease: false | ||
|
||
- name: Upload XCFramework | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./RxWebKit.xcframework.zip | ||
asset_name: RxWebKit.xcframework.zip | ||
asset_content_type: application/zip | ||
|
||
- name: Deploy to Cocoapods | ||
run: | | ||
set -eo pipefail | ||
export RELEASE_VERSION="$(git describe --abbrev=0 | tr -d '\n')" | ||
RELEASE_VERSION=${RELEASE_VERSION:1} | ||
pod lib lint --allow-warnings | ||
pod trunk push --allow-warnings | ||
env: | ||
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} |
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,53 @@ | ||
name: Lint, build and test | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-11.0 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Fetch all tags | ||
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* | ||
|
||
- name: Resolve dependencies | ||
run: | | ||
brew bundle | ||
bundle | ||
- name: Danger | ||
run: | | ||
bundle exec danger | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Restore SPM Cache | ||
uses: actions/cache@v1 | ||
with: | ||
path: .build | ||
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }} | ||
restore-keys: | | ||
${{ runner.os }}-spm- | ||
- name: Build and test (SPM) | ||
run: | | ||
swift build | ||
swift test | ||
- name: Generate Xcodeproj | ||
run: | | ||
xcodegen | ||
- name: Build Cocoapods iOS Demo | ||
run: | | ||
set -eo pipefail | ||
cd Examples | ||
xcodegen | ||
pod install --repo-update | ||
xcodebuild build -scheme 'RxWebKitDemo-iOS' -workspace 'RxWebKitDemo.xcworkspace' -sdk iphonesimulator -destination "platform=iOS simulator,name=iPhone 11" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
output: ../docs/RxWebKit | ||
module: RxWebKit | ||
xcodebuild_arguments: | ||
- -scheme | ||
- RxWebKit 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--allman false | ||
--binarygrouping none | ||
--commas inline | ||
--comments ignore | ||
--decimalgrouping 3,6 | ||
--elseposition same-line | ||
--empty void | ||
--exponentcase lowercase | ||
--exponentgrouping disabled | ||
--fractiongrouping disabled | ||
--disable blankLinesAroundMark | ||
--header ignore | ||
--hexgrouping 4,8 | ||
--hexliteralcase uppercase | ||
--patternlet hoist | ||
--ifdef indent | ||
--indent 2 | ||
--indentcase false | ||
--linebreaks lf | ||
--octalgrouping none | ||
--operatorfunc nospace | ||
--patternlet hoist | ||
--ranges nospace | ||
--self remove | ||
--semicolons inline | ||
--stripunusedargs closure-only | ||
--trimwhitespace always | ||
--wraparguments after-first | ||
--wrapcollections before-first | ||
--enable blankLinesBetweenScopes | ||
--enable redundantVoidReturnType | ||
--enable strongifiedSelf | ||
--enable trailingClosures | ||
--enable trailingSpace | ||
--enable typeSugar | ||
--enable spaceInsideParens | ||
--enable spaceInsideBrackets | ||
--enable spaceInsideBraces | ||
--enable spaceAroundOperators | ||
--enable spaceAroundBraces | ||
--enable redundantParens | ||
--enable redundantNilInit | ||
--enable consecutiveSpaces | ||
--enable anyObjectProtocol | ||
--disable isEmpty |
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,56 @@ | ||
disabled_rules: | ||
- trailing_whitespace | ||
- trailing_comma | ||
- large_tuple | ||
- nesting | ||
- todo | ||
- operator_whitespace | ||
- colon | ||
- identifier_name | ||
|
||
opt_in_rules: # some rules are only opt-in | ||
- empty_count | ||
- yoda_condition | ||
# Find all the available rules by running: | ||
# swiftlint rules | ||
|
||
included: | ||
- Sources | ||
- Tests | ||
- Examples/RxWebKitDemo-iOS | ||
|
||
# excluded: # paths to ignore during linting. Takes precedence over `included`. | ||
|
||
# configurable rules can be customized from this configuration file | ||
# binary rules can set their severity level | ||
force_cast: warning # implicitly | ||
force_try: | ||
severity: warning # explicitly | ||
# rules that have both warning and error levels, can set just the warning level | ||
# implicitly | ||
line_length: 180 | ||
# they can set both implicitly with an array | ||
function_body_length: 120 | ||
type_body_length: | ||
- 400 # warning | ||
- 500 # error | ||
# or they can set both explicitly | ||
file_length: | ||
warning: 500 | ||
error: 1200 | ||
# naming rules can set warnings/errors for min_length and max_length | ||
# additionally they can set excluded names | ||
generic_type_name: | ||
min_length: 1 # only warning | ||
max_length: 30 | ||
|
||
type_name: | ||
min_length: 2 # only warning | ||
max_length: # warning and error | ||
warning: 100 | ||
error: 120 | ||
excluded: iPhone # excluded via string | ||
identifier_name: | ||
min_length: | ||
warning: 1 | ||
reporter: "xcode" |
2 changes: 1 addition & 1 deletion
2
...bKit.xcworkspace/contents.xcworkspacedata → ...kage.xcworkspace/contents.xcworkspacedata
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
File renamed without changes.
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,5 @@ | ||
{ | ||
"releaseCommitMessageFormat": "chore(release): {{currentTag}} [skip ci]", | ||
"compareUrlFormat": "{{host}}/{{owner}}/{{repository}}/branches/compare/{{currentTag}}%0D{{previousTag}}", | ||
"commitUrlFormat": "{{host}}/{{owner}}/{{repository}}/commits/{{hash}}" | ||
} |
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 @@ | ||
brew "xcodegen" |
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 |
---|---|---|
@@ -1 +1 @@ | ||
github "ReactiveX/RxSwift" ~> 5.0 | ||
github "ReactiveX/RxSwift" ~> 6.0 |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
github "Quick/Quick" | ||
github "Quick/Nimble" | ||
github "Quick/Quick" ~> 3.0 | ||
github "Quick/Nimble" ~> 9.0 |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
github "Quick/Nimble" "v8.0.7" | ||
github "Quick/Quick" "v2.2.0" | ||
github "ReactiveX/RxSwift" "5.1.1" | ||
github "Quick/Nimble" "v9.0.0" | ||
github "Quick/Quick" "v3.0.0" | ||
github "ReactiveX/RxSwift" "6.0.0" |
Oops, something went wrong.