Permalink
Browse files

1. remove unused resources.

2. add jcenter support
  • Loading branch information...
1 parent faeb287 commit 0e1b5791aecf6d2d3385c7ee00b8050fbb7dcdf7 ike committed Apr 7, 2015
View
@@ -72,6 +72,12 @@ public class DemoActivity extends SwipeBackActivity implements View.OnClickListe
...
```
+Download
+===
+Download via Jcenter:
+```
+compile 'me.imid.swipebacklayout.lib:library:1.0.0'
+```
Pull Requests
View
@@ -1,21 +1,16 @@
buildscript {
repositories {
- mavenCentral()
+ jcenter()
}
dependencies {
- classpath 'com.android.tools.build:gradle:0.12.+'
+ classpath 'com.android.tools.build:gradle:1.1.2'
+ classpath 'com.github.dcendents:android-maven-plugin:1.2'
+ classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0'
}
}
allprojects {
- group = 'me.imid.swipebacklayout'
- version = '1.0.0-SNAPSHOT'
-
repositories {
- mavenCentral()
- }
-
- tasks.withType(Compile) {
- options.encoding = "UTF-8"
+ jcenter()
}
}
View
@@ -1,11 +1,15 @@
apply plugin: 'com.android.library'
+apply plugin: 'com.github.dcendents.android-maven'
+apply plugin: 'com.jfrog.bintray'
+
+version = "1.0.0"
repositories {
mavenCentral()
}
dependencies {
- compile 'com.android.support:support-v4:19.0.+'
+ compile 'com.android.support:support-v4:21.0.3'
}
android {
@@ -15,5 +19,73 @@ android {
defaultConfig {
minSdkVersion 7
targetSdkVersion 19
+ versionCode 1
+ versionName version
+ }
+}
+
+def siteUrl = 'https://github.com/ikew0ng/SwipeBackLayout'
+def gitUrl = 'https://github.com/ikew0ng/SwipeBackLayout.git'
+group = "me.imid.swipebacklayout.lib"
+
+install {
+ repositories.mavenInstaller {
+ pom {
+ project {
+ packaging 'aar'
+ // Add your description here
+ name 'An Android library that help you to build app with swipe back gesture.'
+ url siteUrl
+ licenses {
+ license {
+ name 'The Apache Software License, Version 2.0'
+ url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
+ }
+ }
+ developers {
+ developer {
+ id 'ike'
+ name 'ike'
+ email 'ike@imid.me'
+ }
+ }
+ scm {
+ connection gitUrl
+ developerConnection gitUrl
+ url siteUrl
+ }
+ }
+ }
}
}
+task sourcesJar(type: Jar) {
+ from android.sourceSets.main.java.srcDirs
+ classifier = 'sources'
+}
+task javadoc(type: Javadoc) {
+ source = android.sourceSets.main.java.srcDirs
+ classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
+}
+task javadocJar(type: Jar, dependsOn: javadoc) {
+ classifier = 'javadoc'
+ from javadoc.destinationDir
+}
+artifacts {
+ archives javadocJar
+ archives sourcesJar
+}
+Properties properties = new Properties()
+properties.load(project.file('gradle.properties').newDataInputStream())
+bintray {
+ user = properties.getProperty("bintray.user")
+ key = properties.getProperty("bintray.apikey")
+ configurations = ['archives']
+ pkg {
+ repo = "maven"
+ name = "SwipeBackLayout"
+ websiteUrl = siteUrl
+ vcsUrl = gitUrl
+ licenses = ["Apache-2.0"]
+ publish = true
+ }
+}
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
@@ -5,7 +5,7 @@ repositories {
}
dependencies {
- compile 'com.android.support:support-v4:19.0.+'
+ compile 'com.android.support:support-v4:21.0.3'
compile project(':library')
}

0 comments on commit 0e1b579

Please sign in to comment.