Skip to content

Attach sources for .aar dependencies in AndroidStudio

Notifications You must be signed in to change notification settings

dmarjanovic/AARLinkSources

 
 

Repository files navigation

Android Arsenal

AARLinkSources Plugin

The AARLinkSources Plugin is designed to attach sources for .aar dependencies in AndroidStudio.

Setup

buildscript {
    repositories {
        maven { url 'https://raw.github.com/xujiaao/mvn-repository/master/releases' }
    }

    dependencies {
        classpath 'com.github.xujiaao:aarLinkSources:1.0.0'
    }
}

Usage

apply plugin: 'aar-link-sources'

dependencies {
    compile 'com.android.support:support-v4:21.0.3'
    aarLinkSources 'com.android.support:support-v4:21.0.3:sources@jar'
}

Tips

If you want to see the debug log, just add this line in your build script.

rootProject.aarLinkSources.debug = true

Output:

[AARLinkSources] [Info] Link sources: support-v4-21.0.3-sources.jar
[AARLinkSources] [Info] Link success: support_v4_21_0_3.xml

About

Attach sources for .aar dependencies in AndroidStudio

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Groovy 83.8%
  • Java 16.2%