Hi Eric, 

My current settings.gradle file just contains the first line of the content 
you suggested.
Although I like the idea of this, it does not really match my goal on how 
to use Android Studio.
Because we allready have a complete buildchain ready using pure NDK and 
scripting, we want to use AS to fill the gap that we currently have: 
debugging. 
If I set-up the SDK as a seperate Gradle project, I do not get to profit 
from the capabilities to debug the C++ part of the SDK, which is exactly 
the point that I'm trying to achieve.

In my opinion, it should be possible to define the SDK as a Module, which 
is then used by the App Module.
It nearly works, it just does not copy the AAR file from the SDK module to 
the app, and extracts it to the exploded-aar directory.

Also, Android Studio does not seem to recognize the C++ part in the SDK 
module, and does not add the 'app-native' Launch configuration on its own.

Anyway, thanks for thinking along, and pointing me to a feature which I 
didn't know it existed. It might be useful one day.
Kind regards,

Maurice

Op dinsdag 10 november 2015 18:29:31 UTC+1 schreef Eric Hall:
>
> Hi Maurice,
> We've actually got a pretty similar setup for our SDK/APP, though while 
> our SDK is at 3.0-alpha7m the app is still sitting back at Gradle 1.3 which 
> makes things fun.
>
> One thing I didn't see in your posted gradle files was a settings.gradle 
> file for the project which declares the sdk project and includes it in your 
> app project.
>
> something like the following
>
> include ':app', ':sdk', ':sdk-testing'
>
> project(':sdk').projectDir = new File(settingsDir, '<path to sdk project>')
>
> project(':sdk-testing').projectDir = new File(settingsDir, '<path to 
> sdk-testing project>')
>
> Back when we had all our projects sitting at 1.3 this allowed us to 
> rebuild the sdk automatically when building the app.
>
> Hope this helps,
> Eric
>
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to