Android Archiveをちょっと手軽にGitHub上に配備するスケルトン
Volleyを例に使う
- Repository name: Volley-aar
$ wget -O - http://dalvik.in/aar/clone.sh | bash
$ mv aar-skeleton volleyaar
$ cd volleyaar
$ git submodule add https://android.googlesource.com/platform/frameworks/volley
android {
compileSdkVersion 19
buildToolsVersion '19.0.0'
sourceSets {
main {
manifest.srcFile 'volley/AndroidManifest.xml'
java.srcDirs = ['volley/src']
res.srcDirs = ['volley/res']
}
}
}
group = 'jp.co.misyobun.lib.volley'
version = '0.0.1'
def artifactId = 'library'
$ git add .
$ git commit -m "init commit"
$ git remote add origin https://github.com/misyobun/volley-aar.git
$ git push origin master
$ /build-gh-pages.sh
repositories {
maven { url 'http://misyobun.github.io/volley-aar/' }
}
dependencies {
compile 'jp.co.misyobun.lib.volley:library:0.0.1'
}