mobile_nebula/README.md

40 lines
1.2 KiB
Markdown
Raw Normal View History

2020-12-07 21:10:31 +00:00
# Dependencies
- [`flutter`](https://flutter.dev/docs/get-started/install)
- [`gomobile`](https://godoc.org/golang.org/x/mobile/cmd/gomobile)
2020-12-10 17:06:40 +00:00
- [`android-studio`](https://developer.android.com/studio)
- [Enable NDK](https://developer.android.com/studio/projects/install-ndk) Check local.properties for current NDK version
2021-04-23 17:33:28 +00:00
Currently using flutter 2.0.5
2020-12-10 17:06:40 +00:00
Copy env.sh.example to env.sh and update your PATH variable to expose both flutter and go bin directories
```export PATH="$PATH:/path/to/go/bin:/path/to/flutter/bin```
2020-12-07 21:10:31 +00:00
# Formatting
`flutter format` can be used to format the code in `lib` and `test` but it's default is 80 char line limit, it's 2020
Use:
```sh
flutter format lib/ test/ -l 120
2020-12-10 17:06:40 +00:00
```
2020-12-07 21:10:31 +00:00
# Release
Update `version` in `pubspec.yaml` to reflect this release, then
## Android
`flutter build appbundle --no-shrink`
This will create an android app bundle at `build/app/outputs/bundle/release/`
Upload the android bundle to the google play store https://play.google.com/apps/publish
## iOS
In xcode, Release -> Archive then follow the directions to upload to the app store. If you have issues, https://flutter.dev/docs/deployment/ios#create-a-build-archive