arriven / db1000n

MIT License
1.17k stars 201 forks source link

Mobile support (android, ios) #547

Open roman-kruglov opened 2 years ago

roman-kruglov commented 2 years ago

Description

Made with fyne - a terminal emulator which supports text selection and copying; for mobile platforms. Also respects dark and light themes. If you remove the theming code - the terminal is only 65 lines long. Note: it doesn't need any manifests - fyne enables networking / internet access by default.

Shout-out to @zlaya-sobaka for their repo https://github.com/zlaya-sobaka/db1000n_mobile which was an inspiration.

How to build

go get github.com/fyne-io/fyne-cross
go get fyne.io/fyne/v2/cmd/fyne

then fyne install or go install fyne.io/fyne/v2/cmd/fyne

Then have Java SDK and NDK installed (or just extracted somewhere) and make sure NDK_HOME is properly set. To build for all possible android devices you need an NDK with android16 compilers (at least fyne demanded them from me) - like r19, but I bet there are newer versions which have those too. The newest version of NDK doesn't. But it is also possible to limit cpu architectures and not build all possible variants.

Then just run fyne package -os android -appID com.some.id and you get an .apk file which you just send or upload to any android device and install.

It is also possible to build a release build with fyne release and have it published to PlayStore, but I doubt they will pass it there. Building for IOS is possible too, but I didn't try it yet (described here https://developer.fyne.io/started/mobile).

Type of change

TBD