This will allow firmware updates of the line following robot. Will download the new firmware from a server and allow the user to upgrade.
There are 2 ways to build the Android application. Android studio or command line interface with Gradle.
- Download and install Android Studio from here.
- After installing, open Android Studio and open this project there.
- First time it will take some time until all the files are synced and indexed.
- To produce an APK file, click on the Terminal tab in the bottom menu.
- Write ./gradlew installFullRelease and press enter. That will build the project and create a release APK file that can be distributed.
- When the build is done, an APK should be located in /app/build/outputs/apk/full/release/.
If you want to quickly install and test the app , you can connect an Android device to your machine and in Android Studio click on Run>Run 'app' from the menu bar. Alternatively you can click on the green play button.
- Donwload and install Gradle from here.
- Open a command line tool and navigate to project root directory.
- Write ./gradlew installFullRelease and press enter. That will build the project and create a release APK file that can be distributed.
- When the build is done, an APK should be located in /app/build/outputs/apk/full/release/.
- Open the file /app/build.gradle.
- Locate the versionName String key.
- Change the value of versionName to newer version. At the time of writing this readme, the version was 1.5.
- Build the app according to [How to build the app].