I care too, but I've solved it quite easily. I've a jarfile in my local 
maven repository where the content is structured like this:
lib/armeabi/libtest.so
lib/x86/libtest.so

And then in my gradle script:
dependencies {
    releaseApk  group: "org.test", name: "test",         version: "1.2.3", 
classifier: 'native-android'
    debugApk    group: "org.test", name: "test",         version: "1.2.3", 
classifier: 'native-android-debug'
}

This magically puts the correct so files in the resulting apks. And you can 
even specify a different so file for release and debug apk (or any flavor 
for that matter).

Tom

Op vrijdag 5 december 2014 16:47:24 UTC+1 schreef Vyacheslav Blinov:
>
> I tried your plugin and unfortunately it breaks apart gradle integration 
> with Android Studio :)
>
> I'd love to see such thing in gradle itself, but it looks like nobody care 
> on dependency management with native artifacts (which is strange).
>
> воскресенье, 1 июня 2014 г., 21:33:22 UTC+3 пользователь Nabil Hachicha 
> написал:
>>
>> I know this thread is old but a lot of Google searches end up here: 
>> BTW this plugin could be useful:
>>
>> https://github.com/nhachicha/android-native-dependencies
>>
>> it allows you to write something like this:
>>
>> native_dependencies {
>>     artifact 'foo:bar:1.0:armeabi'
>>     artifact 'foo:bar:1.0:x86'
>> }
>>
>> Cheers,
>>
>> On Thursday, 6 December 2012 15:55:52 UTC, 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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to