1d044a1e36
Fixes #15. When tapping the toggle in rapid succession, `NebulaVpnService.onStartCommand` is called twice, in serial. This method includes logic to show an error to the user if they somehow attempt to connect to a service while already connected. However, this method of showing an error message (calling `announceExit`) sends a signal to `MainActivity` telling it the service has exited, and that it should set the UI state to "Disconnected." It does not actually disconnect the service at this point, resulting in a state mismatch in which you cannot actually disconnect the service. The solution in this commit is to remove this signalling and simply return out of `onStartCommand` to avoid processing the start request twice if the site is already running. |
||
---|---|---|
android | ||
fonts | ||
ios | ||
lib | ||
nebula | ||
.gitignore | ||
.metadata | ||
README.md | ||
env.sh.example | ||
gen-artifacts.sh | ||
pubspec.lock | ||
pubspec.yaml |
README.md
Dependencies
flutter
gomobile
android-studio
- Enable NDK Check local.properties for current NDK version
Currently using flutter 2.0.5
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
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:
flutter format lib/ test/ -l 120
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