I have an android library distributed in aar format. It weight 300kb. I want to create another library and also in aar format, where first library in dependencies. But result library weight is 30kb, so obviously it does not not include first library.
I tried to add first library using flatDir
:
repositories {
flatDir {
dirs 'libs'
}
}
dependencies {
compile(name:'mylib-1.0', ext:'aar')
}
And publish to mavenLocal using maven-publish
:
repositories {
mavenLocal()
}
dependencies {
compile 'com.mylib:mylib:1.0.0@aar'
}
but still it does not include to result aar.
How to include my first aar to result aar?