3
0
Fork 0
a fork of mobile_nebula adding additional features and bringing Trifid to mobile devices
Go to file
Michael Brown affdc8a7bb
Add configuration setting for using local TZ
The default log timestamp is in UTC, this commit allows the user to
convert the log timestamps to their own timezone.

When approaching this problem I originally considered allowing the user
to set any timezone offset of their choice. This would require some
alignment between the device and client that was feeling cumbersome.

In the end we decided to keep things relatively simple and just allow a
simple toggle to convert log entries upon reading the logfile on the
device.

The default log timestamp emitted by the client remains UTC/Zulu

Advances #2
2020-12-16 10:36:15 -05:00
android Add configuration setting for using local TZ 2020-12-16 10:36:15 -05:00
fonts Initial commit 2020-07-27 15:43:58 -05:00
ios Tweak the icon 2020-09-25 10:13:00 -05:00
lib Add configuration setting for using local TZ 2020-12-16 10:36:15 -05:00
nebula Remove backend config mapping for logUserTZ 2020-12-16 10:14:41 -05:00
.gitignore Update README.md and pubspec.lock 2020-12-10 13:52:54 -05:00
.metadata Initial commit 2020-07-27 15:43:58 -05:00
README.md README.md updates for Android 2020-12-15 17:20:30 -05:00
env.sh.example Initial commit 2020-07-27 15:43:58 -05:00
gen-artifacts.sh Adjust sourcing of env.sh w/ relative path 2020-12-08 11:06:52 -05:00
pubspec.lock Adjust sourcing of env.sh w/ relative path 2020-12-08 11:06:52 -05:00
pubspec.yaml Tweak android icon 2020-09-25 10:47:10 -05:00

README.md

Dependencies

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

Android

Terminology

APK: Android Package ADB: Android Debug Bridge - A tool for interacting with running emulators AVD: Android Virtual Device Manager - A tool for launching, configuring and managing emulators

ADB (Android Debug Bridge)

Android Debug Bridge is an executible that can be found under ~/Android/Sdk/platform-tools/adb for ease of use add ~/Android/Sdk/platform-tools/ to your $PATH. adb surfaces a few useful commands.

You can sideload a downloaded APK into a running emulator

$ adb install ~/Downloads/Ping_v1.7.03_apkpure.com.apk
Performing Streamed Install
Success

You can also use shell to access network utilities like ping

$ adb shell ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.206 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.056 ms
...

Release

Update version in pubspec.yaml to reflect this release, then

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

Release

Update version in pubspec.yaml to reflect this release, then