diff --git a/README.md b/README.md index 48de273..5184dc1 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ ## Recycler ELE ------------------------------------------- - -[ ![Download](https://api.bintray.com/packages/the-cybersapien/android-RecyclerELE/recycler-ele/images/download.svg) ](https://bintray.com/the-cybersapien/android-RecyclerELE/recycler-ele/_latestVersion) +[ ![Release](https://jitpack.io/v/the-cybersapien/RecyclerELE.svg) ](https://jitpack.io/#the-cybersapien/RecyclerELE)[ ![Download](https://api.bintray.com/packages/the-cybersapien/android-RecyclerELE/recycler-ele/images/download.svg) ](https://bintray.com/the-cybersapien/android-RecyclerELE/recycler-ele/_latestVersion) ![Logo image](pics/Recycler-ELE2.png) @@ -39,11 +38,28 @@ Add Snippet: com.github.the-cybersapien recyclerELE - v1.0 + v1.1 pom ``` +#### Jitpack Gradle +In your project's `build.gradle` at the end of the repositories, add: + +``` +allprojects { + repositories { + ... + maven { url 'https://jitpack.io' } + } +} +``` + +In your app module's `build.gradle` add dependency: +``` + compile 'com.github.the-cybersapien:recyclerELE:(latest release)' +``` + ### Usage ------------------------------------ diff --git a/recyclerELE sample/build.gradle b/recyclerELE sample/build.gradle index 6f19e4a..19c8085 100644 --- a/recyclerELE sample/build.gradle +++ b/recyclerELE sample/build.gradle @@ -29,6 +29,5 @@ dependencies { }) compile 'com.android.support:appcompat-v7:25.2.0' testCompile 'junit:junit:4.12' - compile 'com.android.support.constraint:constraint-layout:1.0.1' compile 'com.github.the-cybersapien:recyclerELE:v1.1' } diff --git a/recyclerELE sample/recyclerELE sample.iml b/recyclerELE sample/recyclerELE sample.iml index 450d1af..72638fc 100644 --- a/recyclerELE sample/recyclerELE sample.iml +++ b/recyclerELE sample/recyclerELE sample.iml @@ -76,26 +76,14 @@ - - - - - - - - - - - - @@ -105,7 +93,6 @@ - @@ -121,7 +108,6 @@ - diff --git a/recyclerELE/build.gradle b/recyclerELE/build.gradle index 8e3c2f7..9d0ad9b 100644 --- a/recyclerELE/build.gradle +++ b/recyclerELE/build.gradle @@ -1,5 +1,4 @@ apply plugin: 'com.android.library' - ext { bintrayRepo = 'android-RecyclerELE' bintrayName = 'recycler-ele' @@ -24,6 +23,7 @@ ext { allLicenses = ["Apache-2.0"] } + android { compileSdkVersion 25 buildToolsVersion "25.0.2" @@ -55,6 +55,7 @@ dependencies { testCompile 'junit:junit:4.12' } + // Maven Installer apply plugin: 'com.github.dcendents.android-maven' @@ -97,64 +98,4 @@ install { } } } -} - -apply plugin: 'com.jfrog.bintray' - -version = libraryVersion - -if (project.hasProperty("android")) { // Android libraries - task sourcesJar(type: Jar) { - classifier = 'sources' - from android.sourceSets.main.java.srcDirs - } - - task javadoc(type: Javadoc) { - source = android.sourceSets.main.java.srcDirs - classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) - } -} else { // Java libraries - task sourcesJar(type: Jar, dependsOn: classes) { - classifier = 'sources' - from sourceSets.main.allSource - } -} - -task javadocJar(type: Jar, dependsOn: javadoc) { - classifier = 'javadoc' - from javadoc.destinationDir -} - -artifacts { - archives javadocJar - archives sourcesJar -} - -// Bintray -Properties properties = new Properties() -properties.load(project.rootProject.file('bintray.properties').newDataInputStream()) - -bintray { - user = properties.getProperty("bintray.user") - key = properties.getProperty("bintray.apikey") - - configurations = ['archives'] - pkg { - repo = bintrayRepo - name = bintrayName - desc = libraryDescription - websiteUrl = siteUrl - vcsUrl = gitUrl - licenses = allLicenses - publish = true - publicDownloadNumbers = true - version { - desc = libraryDescription - gpg { - sign = true //Determines whether to GPG sign the files. The default is false - passphrase = properties.getProperty("bintray.gpg.password") - //Optional. The passphrase for GPG signing' - } - } - } } \ No newline at end of file