mirror of
https://github.com/DefinedNet/mobile_nebula.git
synced 2025-02-15 16:25:26 +00:00
Document dep on swiftformat
and using it for swift formatting
This commit is contained in:
parent
c46166b45a
commit
9de1849e93
1 changed files with 5 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
||||||
Install all of the following things:
|
Install all of the following things:
|
||||||
|
|
||||||
- [`xcode`](https://apps.apple.com/us/app/xcode/)
|
- [`xcode`](https://apps.apple.com/us/app/xcode/)
|
||||||
|
- [`swiftformat`](https://github.com/nicklockwood/SwiftFormat)
|
||||||
- [`android-studio`](https://developer.android.com/studio)
|
- [`android-studio`](https://developer.android.com/studio)
|
||||||
- [`flutter` 3.29.0](https://docs.flutter.dev/get-started/install)
|
- [`flutter` 3.29.0](https://docs.flutter.dev/get-started/install)
|
||||||
- [`gomobile`](https://pkg.go.dev/golang.org/x/mobile/cmd/gomobile)
|
- [`gomobile`](https://pkg.go.dev/golang.org/x/mobile/cmd/gomobile)
|
||||||
|
@ -41,6 +42,10 @@ dart format lib/ test/ -l 120
|
||||||
|
|
||||||
In Android Studio, set the line length using Preferences -> Editor -> Code Style -> Dart -> Line length, set it to 120. Enable auto-format with Preferences -> Languages & Frameworks -> Flutter -> Format code on save.
|
In Android Studio, set the line length using Preferences -> Editor -> Code Style -> Dart -> Line length, set it to 120. Enable auto-format with Preferences -> Languages & Frameworks -> Flutter -> Format code on save.
|
||||||
|
|
||||||
|
`swiftformat .` can be used to format the `*.swift` code in the repo.
|
||||||
|
|
||||||
|
There are several options for editor integrations listed in the source repo: <https://github.com/nicklockwood/SwiftFormat>
|
||||||
|
|
||||||
|
|
||||||
# Release
|
# Release
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue