Currently, the LVN Client Jetpack library relies on Core Jetpack and it's working fine on Android devices.
However, to run unit tests (particularly the Screen Shot tests)of the LVN Client Jetpack, it's necessary to have a version of the Core Jetpack compiled to host architectures like Windows, Linux, and Mac OS.
At the moment, what I did was:
- added the "darwin-aarch64" target (because I'm using a M1 Macbook);
- ran the command
./gradlew assembleRelease to generated the *.dylib file;
- copied the binary to the
liveview-android/src/test/jniLibs directory in the LVN Client Jetpack project.
The ideal solution would be to release a dependency just for unit tests and declare it in the dependencies section like:
testImplementation "com.github.liveview-native:liveview-native-core-jetpack-host:<version>"
Currently, the LVN Client Jetpack library relies on Core Jetpack and it's working fine on Android devices.
However, to run unit tests (particularly the Screen Shot tests)of the LVN Client Jetpack, it's necessary to have a version of the Core Jetpack compiled to host architectures like Windows, Linux, and Mac OS.
At the moment, what I did was:
./gradlew assembleReleaseto generated the*.dylibfile;liveview-android/src/test/jniLibsdirectory in the LVN Client Jetpack project.The ideal solution would be to release a dependency just for unit tests and declare it in the
dependenciessection like: