A mobile application development project built using the Flutter framework for plant tracking.
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 -dDownload SDK Platform Tools from here and unzip it to the desired location.
Add the unzipped folder to system path for quick access.
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 devicesMake 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 devicesYou might have to confirm connection on your Android Device.
It should now be listed on your device list alongside the USB connection.
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:5555Now you should be able to build and install application:
docker-compose exec dev flutter runTo 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 cleanIn 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.shIf it's missing, for development you can generate debug.keystore in /root/.android location inside container with these instructions.

