-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DX improvements and more info in logs (#93)
- Loading branch information
Showing
8 changed files
with
79 additions
and
19 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,14 @@ | ||
# Apply to all files | ||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
# Ruby specific rules | ||
[{*.rb,Fastfile,Gemfile}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.{swift,h,m}] | ||
indent_style = space | ||
indent_size = 4 |
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 |
---|---|---|
|
@@ -11,3 +11,7 @@ xcuserdata/* | |
|
||
# Ruby tooling | ||
vendor/bundle | ||
|
||
|
||
# SwiftLint Remote Config Cache | ||
.swiftlint/RemoteConfigCache |
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,7 @@ | ||
swiftlint_version: 0.57.0 | ||
|
||
parent_config: https://raw.githubusercontent.com/Automattic/swiftlint-config/b497131f8d0fddbf3b23278cfc4ef8d86c9bcb20/.swiftlint.yml | ||
remote_timeout: 10.0 | ||
|
||
excluded: | ||
- .build |
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,22 @@ | ||
# TODO: Use newer Sim. Sticking with it at the moment because we know it works in the existing GitHub action setup. | ||
SIMULATOR_NAME ?= iPhone 14 | ||
SIMULATOR_OS ?= latest | ||
XCODE_PATH ?= /Applications/Xcode.app | ||
|
||
# Convenience to open the lib and demo project with Xcode, given it's not in the root. | ||
open: | ||
open -a $(XCODE_PATH) ./Demo/ParselyDemo.xcodeproj | ||
|
||
# TODO: Move off xcpretty to xcbeautify. Sticking with it at the moment because we know it works in the existing GitHub action setup. | ||
test: | ||
set -o pipefail \ | ||
&& xcodebuild test \ | ||
-project Demo/ParselyDemo.xcodeproj \ | ||
-scheme ParselyDemo \ | ||
-sdk iphonesimulator \ | ||
-destination 'platform=iOS Simulator,name=$(SIMULATOR_NAME),OS=$(SIMULATOR_OS)' \ | ||
| xcpretty | ||
|
||
# TODO: Add automation to set up SwiftLint | ||
format: | ||
swiftlint --fix --format |
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