Package native library

pull/14/head
Alex Baker 11 years ago
parent d2d91036ce
commit 6943699334

@ -7,7 +7,6 @@
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-sdk android:minSdkVersion="7" />
@ -17,11 +16,6 @@
<activity
android:label="@string/app_name"
android:name=".RecognizerApi$Main" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

@ -29,6 +29,18 @@ android {
proguardFile getDefaultProguardFile('proguard-android.txt')
}
}
task nativeLibsToJar(type: Zip) {
destinationDir file("libs")
baseName 'libaac-encoder'
extension 'jar'
from fileTree(dir: '../android-aac-enc/libs/armeabi', include: 'libaac-encoder.so')
into 'lib/armeabi'
}
tasks.withType(Compile) {
compileTask -> compileTask.dependsOn(nativeLibsToJar)
}
}
dependencies {
@ -36,7 +48,7 @@ dependencies {
compile project(":android-aac-enc")
compile project(":greendroid")
compile project(":api")
compile fileTree(dir: "../libs", includes: ["*.jar"])
compile fileTree(dir: "libs", includes: ["*.jar"])
compile group: 'com.google.guava', name: 'guava', version: '11.0.1', transitive: false
compile group: 'com.google.code.gson', name: 'gson', version: '1.7.1', transitive: false
@ -51,5 +63,4 @@ dependencies {
compile group: 'com.google.http-client', name: 'google-http-client-extensions-android3', version: '1.6.0-beta', transitive: false
compile group: 'com.google.oauth-client', name: 'google-oauth-client', version: '1.6.0-beta', transitive: false
compile group: 'com.google.oauth-client', name: 'google-oauth-client-extensions', version: '1.6.0-beta', transitive: false
}

Loading…
Cancel
Save