Skip to content

Instantly share code, notes, and snippets.

@omorandi
Last active February 23, 2018 10:29
Show Gist options
  • Save omorandi/6241406 to your computer and use it in GitHub Desktop.
Save omorandi/6241406 to your computer and use it in GitHub Desktop.
Add third party jni library to Android Titanium Module
From: http://developer.appcelerator.com/question/121573/how-do-i-use-so-library-in-module
Place .so files in mymodule/lib/armeabi
Add this to build.xml:
<target name="post.jar">
<copy todir="${libs}">
<fileset dir="lib">
<include name="**/*.so"/>
</fileset>
</copy>
</target>
Run jar tf dist/com.example.mymodule-android-0.1.zip to verify that the desired library files have been added to the module.
@AppWerft
Copy link

AppWerft commented Feb 23, 2018

Currently I'm working in this theme and I ask me: why post.jar?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment