Gradle Configuration With Multi-module Android Library
Back history I have this android library aar that devs can use normally with compile 'com.companyname.sdk:android-sdk:2.x' and now we're doing a re-write of the library from scrat
Solution 1:
You should do something like this:
root:
|- test_app (apk just for testing, not deployed anywhere)
|- core
|- extra_1
|- extra_2
|- extra_ ... etc
|- android-sdk
In core/build.gradle
:
apply plugin: 'com.android.library'
//...
In extra1/build.gradle
:
apply plugin: 'com.android.library'//...
dependencies {
compile project(':core')
}
In android-sdk/build.gradle
:
apply plugin: 'com.android.library'//...
dependencies {
compile project(':core')
compile project(':extra')
}
Post a Comment for "Gradle Configuration With Multi-module Android Library"