sascsy / AARLinkSources

Attach sources for .aar dependencies in AndroidStudio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Groovy 83.8%Language:Java 16.2%