Is there a way to develop switch homebrew (nro) on my phone (android)?
or through a virtual machine online / cloud / browser system?
I do not get time at home to do that, so wanted to do it at work during slow times or during lunch. However my work blocks me from installing apps (devkitpro etc)
I couldn't find anything about developing .nro on my android phone and i tried to find some online C++ compiliers (like
https://www.onlinegdb.com/online_c++_compiler) but i dont think i can do much without having the necessary libraries installed.
I came across
https://hub.docker.com/u/devkitpro/ which i thought was cloud based system so i can develop and compile through browser... but doesn't seem like thats what it is.
You can use a text editor with syntax highlighting, there are at least a few for Android:
https://www.hongkiat.com/blog/android-code-editors/
You can use a git client to push the changes to GitHub or whatever:
https://www.slant.co/topics/5207/~github-clients-for-android
However some of the code editors in the first link have git support built in which is much more convenient.
For compiling, you can use a CI (continuous integration) server such as Travis, which you can configure to automatically build the project when a new git commit is pushed, so that once you push a commit in the git client you just have to wait for it to build:
https://en.wikipedia.org/wiki/Comparison_of_continuous_integration_software
https://travis-ci.org/
This is the cloud part which you would have to host yourself, or pay for a hosted one (unsure if there are any free hosted ones)
If the build passes, a link is generated to download the binary from the web UI (or zip file containing multiple files if necessary), if not, errors will be displayed there, all this can take only a few minutes so you can quickly test changes with a FTP client on Android and just copying the downloaded file(s) across, although it's not as fast as compiling and testing locally.
If you want to skip the downloading to phone and copying to Switch over FTP step, you could probably set up Tinfoil to read from the HTTP server where the compiled binaries are placed (only if they are in nsp format), and after waiting a few minutes for the thing to finish compiling load up Tinfoil (with wifi connected) select your server from the list and select which version you want to install. That way you could go directly from cloud->Switch.
It's not quite as convenient or quick as developing on a PC and you'd definitely want a bluetooth keyboard if you're going to be typing a lot but hey it's usable. There are programming optimized onscreen keyboards, which have some symbols more easily accessible and special keys, that would be a must have if you intend on coding with the onscreen keyboard. I have no idea how those handle autocorrect and suggestions, if at all, so you may be spending a lot of time correcting typos, or having to type very slowly to avoid any typos, so a proper keyboard is recommended even if it's a small one.