Skip to content

minakov/aar-quickstart

Repository files navigation

Android ARchive skeleton

Build any android library project with android gradle for usage with android gradle build system. Publish artifacts on GitHub Pages.

How to use

For example we use SlidingMenu library

Create a github repo

  • Repository name: SlidingMenu-aar
  • Description: SlidingMenu library built with gradle in aar format for usage with android gradle build system

Download sceleton

$ wget --no-check-certificate -O - https://raw.github.com/minakov/aar-quickstart/master/clone.sh | bash
$ mv aar-quickstart SlidingMenu-aar

Cloning library

$ cd SlidingMenu-aar
$ git submodule add https://github.com/jfeinstein10/SlidingMenu.git

Edit build.gradle

android {
    ...
    sourceSets {
        main {
            manifest.srcFile 'SlidingMenu/library/AndroidManifest.xml'
            java.srcDirs = ['SlidingMenu/library/src']
            res.srcDirs = ['SlidingMenu/library/res']
        }
    }
}

dependencies {
    compile 'com.android.support:support-v4:+'
}

group = 'com.jeremyfeinstein.slidingmenu'
version = '1.3'
def artifactId = 'library'

See groupId artifactId and version in pom.xml

Edit README.md

See groupId artifactId and version in pom.xml

Push your commit

$ git add .
$ git commit -m "init commit"
$ git remote add origin https://github.com/minakov/SlidingMenu-aar.git
$ git push origin master
$ cd ..
$ rm -rf SlidingMenu-aar

Build maven repository

$ git clone https://github.com/minakov/SlidingMenu-aar.git
$ cd SlidingMenu-aar
$ git submodule update --init
$ ./build-gh-pages.sh
$ cd ..
$ rm -rf SlidingMenu-aar

Credits

License

Copyright 2013 Vladimir Minakov

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

Android ARchive skeleton

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published