Created
September 12, 2013 06:46
-
-
Save xalexchen/6533747 to your computer and use it in GitHub Desktop.
copy android so library into apk on android stuido
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
task nativeLibsToJar( | |
type: Zip, | |
description: 'create a jar archive of the native libs') { | |
destinationDir file("$buildDir/native-libs") | |
baseName 'native-libs' | |
extension 'jar' | |
from fileTree(dir: 'libs', include: '**/*.so') | |
into 'lib/' | |
} | |
tasks.withType(Compile) { | |
compileTask -> compileTask.dependsOn(nativeLibsToJar) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment