xujiaao / AARLinkSources

Attach sources for .aar dependencies in AndroidStudio.
140 stars 9 forks source link

It is not work for ext type of "aar" #5

Closed pcqpcq closed 9 years ago

pcqpcq commented 9 years ago

with this, it's ok:

dependencies {
    compile 'com.a.b:abc:1.0.0@jar'  // notice here
    aarLinkSources 'com.a.b:abc:1.0.0:sources@jar'
}

and with this, it's NOT ok:

dependencies {
    compile 'com.a.b:abc:1.0.0@aar'  // notice here
    aarLinkSources 'com.a.b:abc:1.0.0:sources@jar'
}

but without the ext type aar, I will lost resource inside aar package

pcqpcq commented 9 years ago

it is cause by the proguard.

    buildTypes {
        release {
            // disable proguard will work
            minifyEnabled false
        }
    }