update readme

This commit is contained in:
Marc Rousavy 2021-02-23 12:32:03 +01:00
parent d1ca7f0177
commit 3157341a0e
3 changed files with 22 additions and 14 deletions

View File

@ -1,18 +1,20 @@
name: Validate Swift
on: push
# push:
# branches:
# - master
# paths:
# - ".github/workflows/validate-swift.yaml"
# - "ios/"
# - "example/ios/"
# pull_request:
# paths:
# - ".github/workflows/validate-swift.yaml"
# - "ios/"
# - "example/ios/"
on:
push:
branches:
- master
paths:
- ".github/workflows/validate-swift.yaml"
- "ios/"
- "example/ios/"
- ".github/workflows/validate-swift.yml"
pull_request:
paths:
- ".github/workflows/validate-swift.yaml"
- "ios/"
- "example/ios/"
- ".github/workflows/validate-swift.yml"
jobs:
SwiftLint:

View File

@ -9,12 +9,14 @@ on:
- "*.js"
- "*.json"
- "package.json"
- ".github/workflows/validate-typescript.yml"
pull_request:
paths:
- "src"
- "*.js"
- "*.json"
- "package.json"
- ".github/workflows/validate-typescript.yml"
jobs:
build:

View File

@ -4,7 +4,11 @@ This folder contains the iOS-platform-specific code for react-native-vision-came
## Prerequesites
1. Install need [SwiftFormat](https://github.com/nicklockwood/SwiftFormat) and [SwiftLint](https://github.com/realm/SwiftLint)
1. Install Xcode tools
```sh
xcode-select --install
```
2. Install need [SwiftFormat](https://github.com/nicklockwood/SwiftFormat) and [SwiftLint](https://github.com/realm/SwiftLint)
```sh
brew install swiftformat swiftlint
```