Best android open-source packages and libraries.

Mobile

A mobile application development project built using the Flutter framework for plant tracking.
Updated 1 day ago

plant-tracker-mobile

A mobile application development project built using the Flutter framework for plant tracking.

Image 1 Image 2

Development

This application uses Docker for development.

Run these commands in a root folder of the cloned repository to create containers:

docker-compose build
docker-compose up -d

Connecting to the Android device on Windows

1. Install SDK Platform Tools

Download SDK Platform Tools from here and unzip it to the desired location.

Add the unzipped folder to system path for quick access.

2. Initialize the connection

First, enable Developer Options on your Android Device. You need to enable Debug Mode.

Connect the device to the system through USB.

Verify that the host machine detects your device:

adb devices

Make sure your Android Device is connected to the same network as the host machine.

Get IP address of your mobile device in WiFi Settings -> Advanced.

Connect to the device wirelessly:

adb tcpip 5555
adb connect your_android_phone_ip:5555
adb devices

You might have to confirm connection on your Android Device.

It should now be listed on your device list alongside the USB connection.

3. Connect device to the container

Detach the device from USB and see if adb devices returns only wireless connection.

Connect to the device from within container:

docker-compose exec dev adb connect your_android_phone_ip:5555

4. Build and install

Now you should be able to build and install application:

docker-compose exec dev flutter run

To properly authorize on your Android device, please ensure that you grant the necessary permissions for any pop-up windows or modal prompts that may appear.

If you get INSTALL_FAILED_USER_RESTRICTED, you might have to enable additional settings like Install via USB and Wireless debugging.

If application fails in any other way, like missing dependencies, you might want to consider cleaning the build info:

docker-compose exec dev flutter clean

Get SHA1 or SHA-256 fingerprint

In order for Google Auth Provider to work, you need to get an application fingerprint and add it to Firebase application.

You can get it through a shortcut script:

./signingReport.sh

If it's missing, for development you can generate debug.keystore in /root/.android location inside container with these instructions.

Tags docker