-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from quanshousio/4.0.0
Release 4.0.0
- Loading branch information
Showing
31 changed files
with
976 additions
and
1,023 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
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,17 +1,19 @@ | ||
name: docc | ||
name: DocC documentation | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
push: | ||
tags: | ||
- "*" | ||
|
||
jobs: | ||
docbuild: | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: docc | ||
run: ./toastui docc deploy | ||
|
||
- name: Deploy documentation | ||
run: ./toastui docc deploy |
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,112 @@ | ||
# SwiftFormat config compliant with Google Swift Guideline | ||
# https://google.github.io/swift/#control-flow-statements | ||
|
||
# Specify version used in a project | ||
|
||
--swiftversion 5.10 | ||
|
||
# Rules explicitly required by the guideline | ||
|
||
--rules \ | ||
blankLinesAroundMark, \ | ||
blankLinesAtEndOfScope, \ | ||
blankLinesAtStartOfScope, \ | ||
blankLinesBetweenScopes, \ | ||
braces, \ | ||
consecutiveBlankLines, \ | ||
consecutiveSpaces, \ | ||
duplicateImports, \ | ||
elseOnSameLine, \ | ||
emptyBraces, \ | ||
enumNamespaces, \ | ||
extensionAccessControl, \ | ||
hoistPatternLet, \ | ||
indent, \ | ||
leadingDelimiters, \ | ||
linebreakAtEndOfFile, \ | ||
markTypes, \ | ||
organizeDeclarations, \ | ||
redundantInit, \ | ||
redundantParens, \ | ||
redundantPattern, \ | ||
redundantRawValues, \ | ||
redundantType, \ | ||
redundantVoidReturnType, \ | ||
semicolons, \ | ||
sortImports, \ | ||
sortSwitchCases, \ | ||
spaceAroundBraces, \ | ||
spaceAroundBrackets, \ | ||
spaceAroundComments, \ | ||
spaceAroundGenerics, \ | ||
spaceAroundOperators, \ | ||
spaceAroundParens, \ | ||
spaceInsideBraces, \ | ||
spaceInsideBrackets, \ | ||
spaceInsideComments, \ | ||
spaceInsideGenerics, \ | ||
spaceInsideParens, \ | ||
todos, \ | ||
trailingClosures, \ | ||
trailingCommas, \ | ||
trailingSpace, \ | ||
typeSugar, \ | ||
void, \ | ||
wrap, \ | ||
wrapArguments, \ | ||
wrapAttributes, \ | ||
# | ||
# | ||
# Additional rules not mentioned in the guideline, but helping to keep the codebase clean | ||
# Quoting the guideline: | ||
# Common themes among the rules in this section are: | ||
# avoid redundancy, avoid ambiguity, and prefer implicitness over explicitness | ||
# unless being explicit improves readability and/or reduces ambiguity. | ||
# | ||
# | ||
andOperator, \ | ||
isEmpty, \ | ||
redundantBackticks, \ | ||
redundantBreak, \ | ||
redundantExtensionACL, \ | ||
redundantGet, \ | ||
redundantLetError, \ | ||
redundantNilInit, \ | ||
redundantObjc, \ | ||
redundantOptionalBinding, \ | ||
redundantReturn, \ | ||
redundantSelf, \ | ||
strongifiedSelf | ||
|
||
# Options for basic rules | ||
|
||
--extensionacl on-declarations | ||
--funcattributes prev-line | ||
--indent 2 | ||
--maxwidth 100 | ||
--typeattributes prev-line | ||
--funcattributes prev-line | ||
--storedvarattrs same-line | ||
--computedvarattrs prev-line | ||
--complexattrs prev-line | ||
--voidtype void | ||
--wraparguments before-first | ||
--wrapparameters before-first | ||
--wrapcollections before-first | ||
--wrapreturntype if-multiline | ||
--wrapconditions after-first | ||
|
||
# Option for additional rules | ||
|
||
--self init-only | ||
|
||
--organizationmode type | ||
--markcategories false | ||
--marktypes never | ||
--markextensions never | ||
|
||
# Excluded folders | ||
|
||
--exclude Pods,**/UNTESTED_TODO,vendor,fastlane | ||
|
||
# https://github.com/NoemiRozpara/Google-SwiftFormat-Config |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,10 @@ | ||
// swift-tools-version:5.5 | ||
// swift-tools-version:5.7 | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "ToastUI", | ||
platforms: [ | ||
.iOS(.v14), .tvOS(.v14), .watchOS(.v7), .macOS(.v11) | ||
], | ||
products: [ | ||
.library(name: "ToastUI", targets: ["ToastUI"]) | ||
], | ||
targets: [ | ||
.target(name: "ToastUI") | ||
] | ||
platforms: [.iOS(.v14), .tvOS(.v14), .watchOS(.v7), .macOS(.v11)], | ||
products: [.library(name: "ToastUI", targets: ["ToastUI"])], | ||
targets: [.target(name: "ToastUI")] | ||
) |
Oops, something went wrong.