--
You received this message because you are subscribed to the Google Groups "adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adt-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
task copyNativeLibs(type: Copy) {from(new File(project(':CBLite').getProjectDir(), 'native-libs')) { include '**/*.so' }into new File(buildDir, 'native-libs')}tasks.withType(Compile) { compileTask -> compileTask.dependsOn copyNativeLibs }
clean.dependsOn 'cleanCopyNativeLibs'tasks.withType(com.android.build.gradle.tasks.PackageApplication) { pkgTask ->pkgTask.jniDir new File(buildDir, 'native-libs')}
We have the same issue.... except we depend on both armeabi AND x86 native libraries (we use sqlcipher and want to support both ARM and Intel processors). Unfortunately this big issue for us, as we cannot ship unless our database is encrypted. Currently, we are using Maven and we uploaded the .so files to our Nexus Maven Repository and have the following dependencies in our pom.xml (note the <classifier/>):<dependency><groupId>net.sqlcipher</groupId><artifactId>sqlcipher</artifactId><version>2.1.1</version></dependency><dependency><groupId>net.sqlcipher</groupId><artifactId>libdatabase_sqlcipher</artifactId><version>2.1.1</version><type>so</type><classifier>armeabi</classifier></dependency><dependency><groupId>net.sqlcipher</groupId><artifactId>libstlport_shared</artifactId><version>2.1.1</version><type>so</type><classifier>armeabi</classifier></dependency><dependency><groupId>net.sqlcipher</groupId><artifactId>libsqlcipher_android</artifactId><version>2.1.1</version><type>so</type><classifier>armeabi</classifier></dependency><dependency><groupId>net.sqlcipher</groupId><artifactId>libdatabase_sqlcipher</artifactId><version>2.1.1</version><type>so</type><classifier>x86</classifier></dependency><dependency><groupId>net.sqlcipher</groupId><artifactId>libstlport_shared</artifactId><version>2.1.1</version><type>so</type><classifier>x86</classifier></dependency><dependency><groupId>net.sqlcipher</groupId><artifactId>libsqlcipher_android</artifactId><version>2.1.1</version><type>so</type><classifier>x86</classifier></dependency>It would be nice to have the same type of support in the Gradle project (use a Maven dependency) like the following:dependencies {compile 'net.sqlcipher:sqlcipher:2.1.1'compile 'net.sqlcipher:libdatabase_sqlcipher:2.1.1:so:armeabi'compile 'net.sqlcipher:libstlport_shared:2.1.1:so:armeabi'compile 'net.sqlcipher:libsqlcipher_android:2.1.1:so:armeabi'compile 'net.sqlcipher:libdatabase_sqlcipher:2.1.1:so:x86'compile 'net.sqlcipher:libstlport_shared:2.1.1:so:x86'compile 'net.sqlcipher:libsqlcipher_android:2.1.1:so:x86'}
On Thursday, December 6, 2012 8:55:52 AM UTC-7, Martin Liersch wrote:Hey everyone,I'm currently trying to get an app converted to the Gradle based build system.The app includes native (*.so) libraries from a third party SDK.When i build the app with eclipse / ant / maven, the resulting APK file contains the *.so files in the "libs" folder. However, when i build with Gradle, those libraries are not contained in the APK file.How do I configure that?Goddchen
--
You received this message because you are subscribed to the Google Groups "adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adt-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the Google Groups "adt-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adt-dev/SOs6mxZGjMM/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to adt-dev+u...@googlegroups.com.
--