Skip to content

Commit 0e1b579

Browse files
author
ike
committed
1. remove unused resources.
2. add jcenter support
1 parent faeb287 commit 0e1b579

File tree

8 files changed

+85
-12
lines changed

8 files changed

+85
-12
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ public class DemoActivity extends SwipeBackActivity implements View.OnClickListe
7272
...
7373
```
7474

75+
Download
76+
===
77+
Download via Jcenter:
78+
```
79+
compile 'me.imid.swipebacklayout.lib:library:1.0.0'
80+
```
7581

7682

7783
Pull Requests

build.gradle

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,16 @@
11
buildscript {
22
repositories {
3-
mavenCentral()
3+
jcenter()
44
}
55
dependencies {
6-
classpath 'com.android.tools.build:gradle:0.12.+'
6+
classpath 'com.android.tools.build:gradle:1.1.2'
7+
classpath 'com.github.dcendents:android-maven-plugin:1.2'
8+
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0'
79
}
810
}
911

1012
allprojects {
11-
group = 'me.imid.swipebacklayout'
12-
version = '1.0.0-SNAPSHOT'
13-
1413
repositories {
15-
mavenCentral()
16-
}
17-
18-
tasks.withType(Compile) {
19-
options.encoding = "UTF-8"
14+
jcenter()
2015
}
2116
}

library/build.gradle

Lines changed: 73 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
apply plugin: 'com.android.library'
2+
apply plugin: 'com.github.dcendents.android-maven'
3+
apply plugin: 'com.jfrog.bintray'
4+
5+
version = "1.0.0"
26

37
repositories {
48
mavenCentral()
59
}
610

711
dependencies {
8-
compile 'com.android.support:support-v4:19.0.+'
12+
compile 'com.android.support:support-v4:21.0.3'
913
}
1014

1115
android {
@@ -15,5 +19,73 @@ android {
1519
defaultConfig {
1620
minSdkVersion 7
1721
targetSdkVersion 19
22+
versionCode 1
23+
versionName version
24+
}
25+
}
26+
27+
def siteUrl = 'https://github.com/ikew0ng/SwipeBackLayout'
28+
def gitUrl = 'https://github.com/ikew0ng/SwipeBackLayout.git'
29+
group = "me.imid.swipebacklayout.lib"
30+
31+
install {
32+
repositories.mavenInstaller {
33+
pom {
34+
project {
35+
packaging 'aar'
36+
// Add your description here
37+
name 'An Android library that help you to build app with swipe back gesture.'
38+
url siteUrl
39+
licenses {
40+
license {
41+
name 'The Apache Software License, Version 2.0'
42+
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
43+
}
44+
}
45+
developers {
46+
developer {
47+
id 'ike'
48+
name 'ike'
49+
50+
}
51+
}
52+
scm {
53+
connection gitUrl
54+
developerConnection gitUrl
55+
url siteUrl
56+
}
57+
}
58+
}
1859
}
1960
}
61+
task sourcesJar(type: Jar) {
62+
from android.sourceSets.main.java.srcDirs
63+
classifier = 'sources'
64+
}
65+
task javadoc(type: Javadoc) {
66+
source = android.sourceSets.main.java.srcDirs
67+
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
68+
}
69+
task javadocJar(type: Jar, dependsOn: javadoc) {
70+
classifier = 'javadoc'
71+
from javadoc.destinationDir
72+
}
73+
artifacts {
74+
archives javadocJar
75+
archives sourcesJar
76+
}
77+
Properties properties = new Properties()
78+
properties.load(project.file('gradle.properties').newDataInputStream())
79+
bintray {
80+
user = properties.getProperty("bintray.user")
81+
key = properties.getProperty("bintray.apikey")
82+
configurations = ['archives']
83+
pkg {
84+
repo = "maven"
85+
name = "SwipeBackLayout"
86+
websiteUrl = siteUrl
87+
vcsUrl = gitUrl
88+
licenses = ["Apache-2.0"]
89+
publish = true
90+
}
91+
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

samples/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ repositories {
55
}
66

77
dependencies {
8-
compile 'com.android.support:support-v4:19.0.+'
8+
compile 'com.android.support:support-v4:21.0.3'
99
compile project(':library')
1010
}
1111

0 commit comments

Comments
 (0)