GithubHelp home page GithubHelp logo

ark's Introduction

Ark

This is a central GitHub powered maven repo for android .aar and .jar files for use as dependencies in Android projects with the new Gradle Build Tool.

Why jump through hoops for Maven Central when you can publish right on GitHub?

This is currently my personal collection of common libraries that I forked and published myself. If you like it or want to add to it please contribue!

Usage

To use, add this github repo as a repository:

repositories {
    maven {
        url 'https://raw.github.com/ark/ark/master/releases/'
    }
}

Then add the libraries you want as dependencies:

dependencies {
    compile 'com.actionbarsherlock:actionbarsherlock:4.4.0'
}

Adding your own library to Ark

By Updating your library and filing an issue:

  • Add something like this to your build.gradle (currently only works with android plugin 0.5.4):
    apply plugin: 'maven-publish'
    
    group = 'com.example`
    version = '1.0.0'
    
    android.libraryVariants
    publishing {
        publications {
            maven(MavenPublication) {
               artifact bundleRelease
            }
        }
        repositories {
            maven {
                url "file://$buildDir/../../ark/releases"
            }
        }
    }
    Make sure the maven repo url points to the ark/releases folder inside the ark repository, not inside the project being built. So add/remove ../ or change the url as necessary.
  • File an issue, I'll get to it, or tell you you're doing it wrong.

By Pull Request:

  • Fork this repo
  • Publish your library into your forked repo (see example build.gradle section from above)
  • Open a pull request

Currently available packages:

Releases:

  • com.actionbarsherlock:actionbarsherlock:4.3.1
  • com.actionbarsherlock:actionbarsherlock:4.4.0
  • com.viewpagerindicator:library:2.4.1
  • com.loopj.android.http:android-async-http:1.4.3
  • de.keyboardsurfer.android.widget:crouton:1.8.1
  • com.makeramen:roundedimageview:1.0.0
  • com.astuetz:pagerslidingtabstrip:1.0.0
  • com.origamilabs.library:staggeredgridview:1.0

Snapshots

  • com.actionbarsherlock:actionbarsherlock:4.3.2-SNAPSHOT
  • com.loopj.android.http:android-async-http:1.4.4-SNAPSHOT
  • de.keyboardsurfer.android.widget:crouton:1.8.2-SNAPSHOT
  • com.android.frameworks:volley:master-SNAPSHOT
  • com.romainguy:viewserver:1.0-SNAPSHOT
  • com.astuetz:pagerslidingtabstrip:1.0.0-SNAPSHOT
  • 'com.6wunderkinder.slidinglayerlibrary:Library:1.1-SNAPSHOT'

Open an issue or contact me if you want any packages added to this repo!

Bitdeli Badge

ark's People

Contributors

astuetz avatar bitdeli-chef avatar briangriffey avatar gautamk avatar johnjohndoe avatar vinc3m1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ark's Issues

Weird behavior when generating Jar

When using and publishing a jar task like this:

// ... usual android build above

task jar(type: Jar) {
    from android.sourceSets.main.java
}

publishing {
    publications {
        maven(MavenPublication) {
           artifact jar
        }
    }
    repositories {
        maven {
            url "file://$buildDir/../../ark/snapshots"
        }
    }
}

Weird issue is that it builds fine in projects using it via command line gradle, but Android Studio fails to recognize the classes in the jar, so all the syntax highlighting is broken and the IDE thinks your code won't compile (even though it does compile because studio falls back to gradle to do the compilation).

Also, it doesn't add a <packaging> node into the published pom.xml, but even when I add it manually, it doesn't seem to fix the bug.

For the time being I've changed everything to aar packaging in the repo, but I would prefer jars so Maven users can use them too.

Gradle building and uploading to maven repository fails.

Hi.

Gradle building fails if instructions are followed exactly.

This is how my gradle file of Library project looks like.

apply plugin: 'maven-publish'

group = 'com.phtrivedi.opensource'
version = '1.0-SNAPSHOT'


android.libraryVariants
publishing {
    publications {
        maven(MavenPublication) {
            artifact bundleRelease
        }
    }
    repositories {
        maven {
            url "https://raw.github.com/PrashamTrivedi/ark/master/releases/"
        }
    }
}

When I try to compile that library project. I am given following error.

 Cannot create a Publication named 'bundleRelease' because this container does not support creating elements by name alone. Please specify which subtype of Publication to create. Known subtypes are: MavenPublication

I have my library project being compiled as aar.

Publishing with most recent android plugin (0.7.3)

I've tried several ways of implementing the publishing script in my gradle file but it does not work with the latest version of the android plugin (0.7.3) or the latest version of gradle (1.9 or 1.10). Any updates on how to do this with the latest versions?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.