Skip to content

Generate library for host machines #107

@nelson-glauber

Description

@nelson-glauber

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>"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions