deploying android ndk dependencies to maven repositories -


i have android project depends on third party, binary-only jni library. using ant, can drop .so in libs/ , headers in jni/ , done.

however, rest of android projects use maven, , able integrate library existing maven-based projects other library (i.e. <dependency /> entry, library automatically downloaded company server).

i have tried manually uploading .so files using mvn deploy:deploy-file -dpackaging=so , -dclassifier=armeabi, , uploaded headers in zip , deployed using -dpackaging=har. ndk still fails detect library , headers.

my android.mk is

local_path := $(call my-dir) include $(clear_vars) local_module := test local_ldlibs := -llog local_shared_libraries := my-dependency local_src_files := test.cpp include $(build_shared_library) 

and dependency in pom

<dependency>     <groupid>com.thirdparty.my-dependency</groupid>     <artifactid>my-dependency</artifactid>     <version>1.0</version>     <classifier>armeabi</classifier>     <type>so</type> </dependency> 

what best way deploy third party library in maven android?

after tinkering samples, managed compile.

the deployment fine, turns out need add

local_shared_libraries := $(android_maven_plugin_local_shared_libraries) include $(build_shared_library) include $(android_maven_plugin_makefile) 

to app's android.mk


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -