generated from amosproj/amos202Xss0Y-projname
-
Notifications
You must be signed in to change notification settings - Fork 2
Build Documentation
simonsasse edited this page Jan 11, 2024
·
9 revisions
Welcome to the build documentation for the amos2023ws03-gui-frame-diff project — a tool designed for analyzing and presenting differences in various video files. This documentation outlines the process of building the different modules that form part of the project.
- Java (Working at least with JDK Coretto 17.0.9)
- Gradle (Working at least with version 7.4.2)
For detailed information please refer to the corresponding readme of the respective libraries.
The VideoGenerator consists of the library and an example project.
- build in VideoGenerator/library
./gradlew assemble
- Run the unit tests
./gradlew test
- build in VideoGenerator/example
./gradlew assemble
- download test assets
./gradlew downloadAndUnzipTestAssets
- to run unit tests
./gradlew test
- For the next steps we assume, that
emulator
andadb
are installed (usually at $ANDROID_HOME/{emulator,platform-tools}) and in the PATHemulator -list-avds
- start the emulator without loading a previous snapshot
emulator -avd Pixel_3a_API_34_extension_level_7_x86_64 -no-snapshot-load -wipe-data
- if the emulator says that it cant connect to adb, we need to restart the adb server
adb kill-server && adb start-server
- to run android tests
./gradlew connectedAndroidTest
- installing the debug apk into the emulator
adb install app/build/outputs/apk/debug/app-debug.apk
- To run the app, one needs to click the appropriate icon in the emulator or by running this adb shell command
adb shell am start -n de.guiframediff.videogeneratorexample/de.guiframediff.videogeneratorexample.MainActivity -a android.intent.action.MAIN -c android.intent.category.LAUNCHER --splashscreen-show-icon
- Build a jar file:
./gradlew assemble
- Download test assets:
./gradlew downloadAndUnzipTestAssets
- To run tests:
./gradlew test
- Build a jar file:
./gradlew assemble
- To run tests:
./gradlew :test
- The colon prevents tests from lib1 and lib2 to run as well.
- To build a native application for the current OS:
./gradlew createDistributable
- Run the app without creating an executable (call 1. before):
./gradlew :run
This documentation is written on the basis of Release 12. Changes beyond this release are not yet documented here.
The entire project operates under the MIT license, making it open and free for use.