Native libraries publishing artifacts, closes #43
This commit is contained in:
@@ -4,9 +4,7 @@ apply plugin: 'com.github.dcendents.android-maven'
|
||||
dependencies {
|
||||
compile project(':vtm-gdx')
|
||||
compile project(':vtm-themes')
|
||||
compile files("${rootDir}/vtm-android/vtm-natives-android.jar")
|
||||
compile "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion"
|
||||
compile files('gdx-natives-android.jar')
|
||||
compile 'com.noveogroup.android:android-logger:1.3.6'
|
||||
}
|
||||
|
||||
@@ -34,6 +32,7 @@ android {
|
||||
renderscript.srcDirs = ['src', 'assets']
|
||||
res.srcDirs = ['res']
|
||||
assets.srcDirs = ['assets']
|
||||
jniLibs.srcDirs = ['natives/lib', "${rootDir}/vtm-android/natives/lib"]
|
||||
}
|
||||
debug.setRoot('build-types/debug')
|
||||
release.setRoot('build-types/release')
|
||||
@@ -54,6 +53,18 @@ android.applicationVariants.all { variant ->
|
||||
artifacts.add('archives', task);
|
||||
}
|
||||
|
||||
android.applicationVariants.all { variant ->
|
||||
def name = variant.buildType.name
|
||||
if (name.equals("debug")) {
|
||||
print "Skipping debug jar"
|
||||
return; // Skip debug builds.
|
||||
}
|
||||
def task = project.tasks.create "nativesJar${name.capitalize()}", Jar
|
||||
task.classifier = 'natives'
|
||||
task.from('natives')
|
||||
artifacts.add('archives', task);
|
||||
}
|
||||
|
||||
task run(dependsOn: 'installDebug') {
|
||||
doFirst {
|
||||
println(">> adb run...")
|
||||
|
||||
Binary file not shown.
BIN
vtm-android-gdx/natives/lib/armeabi-v7a/libgdx.so
Normal file
BIN
vtm-android-gdx/natives/lib/armeabi-v7a/libgdx.so
Normal file
Binary file not shown.
BIN
vtm-android-gdx/natives/lib/armeabi/libgdx.so
Normal file
BIN
vtm-android-gdx/natives/lib/armeabi/libgdx.so
Normal file
Binary file not shown.
BIN
vtm-android-gdx/natives/lib/x86/libgdx.so
Normal file
BIN
vtm-android-gdx/natives/lib/x86/libgdx.so
Normal file
Binary file not shown.
Reference in New Issue
Block a user