Develop flutter app without actually installing flutter in my machine - android

My laptop stopped working and i really need to work on a flutter app. I have this old laptop that is 32 bit and i found out that we can not install flutter in 32 bit systems.
So is there any way i can still work on my flutter app using my 32 bit laptop

You can buy a cheap EC2 instance on AWS with the config you need. Also, Flutter as of now works on CodePen so you can write and see the output online.
Another fancy method will be to use an online code editor ( my suggestion Visual Studio Code online) and create a repository on github or other VCS host and finaly connect this to a CI/CD pipeline like Codemagic that will mail you the build outputs (apk and app). You can test your code in codepen before running throught the pipeline

Related

Run android emulator on remote ssh based linux machine and display it on local browser

I have recently been playing around with code-server, which is a Visual Studio Code IDE that can be ran on the remote machine and accessed through the browser. For that I made a google vm instance of Ubuntu LTS 16.04, and I was successfull to launch it and install the Flutter and Dart sdks. Because of the flutter_web and flutter itself still being unable to unify in one codebase, I ran into a lot of incompatibilities which made it impossible to debug my application as a web-site.
Now I want to launch the android emulator instead, because I would be able to test and debug the apps, but I didn't find any source of information on how to install it and display it remotely, for example, in local browser.
Is it practically possible? And if it is, please tell me how. Because me being able to develop flutter apps on iPad would be really cool.
Actually this out of our scope as is not related to the Google Compute Engine product, anyway I would give my best effort to help you:
Google Marketplace has an awesome product called Genymotion [1] which is an Android Emulator. I tried and it's one click deploy, very useful.
[1] https://console.cloud.google.com/marketplace/partners/genymotion-public-project

React Native without Android Studio?

Is there any way to develop a React Native app for Android without installing Android Studio ?
On Ubuntu 18.04 the apt command proposes a lot of android packages: android-sdk, android-sdk-platform-tools etc...
What do I need exactly to get React Native working properly ?
Please don't use expo or another SDKs of react native. React Native CLI is recommended everywhere because its performance is not comparable to expo and it is much more lightweight! Android Studio is just an IDE! If you setup your android development environment correctly there is no need to install Android Studio IDE (This is for experts!) but it is recommended to install for amateur users.
If you don't want to use the Android studio, you can take advantage of the Expo. Expo is the best way to assist React-native. You can run the app without the Android studio, and when you refresh, you can see the modified code right away.
Look at this official document and follow it slowly.
you don't need Android Studio at all, if you are using react native cli you can install it on your phone and run it there.
An attempt of solution to use react native without android studio and without expo is to build directly in your device.
you must install adb first by following this link install-adb-fastboot-on-ubuntu 18.04
and then you should follow this link react-native running-on-device
It will help you.
I'm using usb cable to install debug apk in my phone (react-native run-android). I put my phone in the same network (WIFI) with my machine (server) and configure the server address and port to debug remotely in the phone. After that i remove the usb cable.
In short everything is explained on the link above

Can you build React Native apps (Android app) on Ubuntu?

As I can see here you need OS X to build apps with React Native. That is probably because they used it at first to create only iOS apps. Now it's possible to create Android apps with React Native but they still require OS X as development platform which doesn't make sense to me. Is there any way to create Android apps using React Native on Ubuntu OS or any other Linux?
Update 2: I've been developing React native apps on Ubuntu for some time now, without any issues.
Update 1: It's almost possible on linux and windows now. Check this doc page: link
Old answer:
It's already almost working, from the issue shared in kzzzf's answer:
Everything works on Linux except:
react-native run-android can't open a new shell window, you need to
use react-native start. Will be fixed in next release. Debugging in
Chrome currently relies on an AppleScript to launch Chrome. There's a
PR to replace that.
Building on linux and windows is not officially supported although there are people in the community already sending pull requests that will allow to do so (main obstacle is the fact of using apple-script and calling to shell scripts from node - from react-packager and from react-cli).
Main task for tracking those efforts is here: https://github.com/facebook/react-native/issues/2693
While it's not officially supported on Linux yet, and there are certainly some hoops to jump through, I have created a docker container that allows me to build and run android apps from Ubuntu.
The dockerfile is still a work in progress but it's available on github: https://github.com/gilesp/docker/tree/master/react_native
There's a couple of shell scripts to make local development easier - I mainly use the react-bash script to give me a shell prompt in the container for running react-native run-android etc.
It works well enough that I can have a phone connected via USB on my host machine, the react native stuff running in the container and have my edits to the code (I mainly edit using emacs on the host) appear immediately on the device.
I'm currently working on CI builds for android as there are some more hoops to jump through to create the bundled version of the javascript for deployment.
It should be possible by now. For an up to date guide on "can i build for platform X on system Y", see:
https://facebook.github.io/react-native/docs/getting-started.html

Simulator for iOS/Android

Is there a iOS and an Android Simulator I can use to load up a IPA and a APK file? I'd like to test the apps but won't have access to the source code. Any software that lets me do that (preferably not on the cloud)
An IPA that wasn’t specifically built for the iOS simulator will have the wrong instruction set and won’t run therein. If you’re in a testing environment and can get whoever’s actually building the code to make a simulator version for you, though, the instructions in this answer may help.
You can install an android apk through adb on the simulator comes with the Android SDK
see Google Adb usage
You could try using bluestacks to install apk files

Quick android & phonegap bundler

I am looking for a utility that would quickly bundle up a phonegap app for android from an html directory. Perhaps something that would read some config.json file in that directory to automatically take care of all the configurations.
Basically I am looking to avoid doing all the setup of eclipse just to wrap my html5 app which already works fine on android through the browser.
Anyone have any good tricks or tools that can shortcut the whole process to something close to what I am dreaming about? I would love something where in 10 minutes I can have everything ready to deploy to the marketplace.
One option is AppLaud Cloud. Note, that it is still in alpha.
With AppLaud Cloud, you could create a Base App and then replace the contents of the assets/www directory with your html5 app.
You can emulate the app with the built-in Emulator, debug the app on device with Weinre, and build for deployment to the market.
Caveat: I'm the creator of AppLaudCloud.
Dreamweaver 5.5 has a function like the one you are looking for. I played with it briefly and is ok. More info here: http://blogs.nitobi.com/andre/index.php/2011/04/12/adobe-dreamweaver-5-5-supports-phonegap/
The plus: works with ios also(if you're on mac)
The minus: quite expensive stuff...
I would try using the new (undocumented) command line tools in the PhoneGap Android source. There is a command for creating a new app (https://github.com/callback/callback-android/tree/master/bin) and in the new app folder there is a command for debugging the app (on emulator or device).
You could also check out https://github.com/brianleroux/cordova which is a prototype for the command line tools that are now in the platform specific PhoneGap repos on github.
Going forward there will be more work done on Cordova but probably as an official PhoneGap repo / binary distribution.

Categories

Resources