Skip to content

Commit 2e02de9

Browse files
committed
上传 jcenter
1 parent 983064c commit 2e02de9

File tree

6 files changed

+98
-22
lines changed

6 files changed

+98
-22
lines changed

app/app.iml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@
7171
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dependency-cache" />
7272
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dex" />
7373
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dex-cache" />
74+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/appcompat-v7/22.0.0/jars" />
75+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/support-v4/22.0.0/jars" />
7476
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental" />
7577
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/jacoco" />
7678
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/javaResources" />

build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@ buildscript {
55
jcenter()
66
}
77
dependencies {
8-
classpath 'com.android.tools.build:gradle:1.1.0'
8+
classpath 'com.android.tools.build:gradle:1.2.3'
99

1010
// NOTE: Do not place your application dependencies here; they belong
1111
// in the individual module build.gradle files
12+
13+
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0'
14+
classpath 'com.github.dcendents:android-maven-plugin:1.2'
1215
}
1316
}
1417

shapeloading/build.gradle

Lines changed: 86 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
apply plugin: 'com.android.library'
2+
apply plugin: 'com.github.dcendents.android-maven'
3+
apply plugin: 'com.jfrog.bintray'
4+
version = "1.0.3"
25

36
android {
47
compileSdkVersion 21
@@ -8,7 +11,7 @@ android {
811
minSdkVersion 9
912
targetSdkVersion 21
1013
versionCode 1
11-
versionName "1.0.1"
14+
versionName "1.0.3"
1215
}
1316
buildTypes {
1417
release {
@@ -18,24 +21,91 @@ android {
1821
}
1922
}
2023

21-
buildscript {
22-
repositories {
23-
jcenter()
24-
}
25-
dependencies {
26-
classpath 'com.novoda:bintray-release:0.2.10'
27-
}
28-
}
29-
apply plugin: 'bintray-release'
24+
3025
dependencies {
3126
compile fileTree(dir: 'libs', include: ['*.jar'])
3227
compile 'com.nineoldandroids:library:2.4.0'
3328
}
3429

35-
publish {
36-
groupId = 'com.mingle.zzz40500'
37-
artifactId = 'shapeLoadingView'
38-
publishVersion = '1.0.1'
39-
description='Loading view with pretty animation.'
40-
website = 'https://github.com/zzz40500/android-shapeLoadingView'
30+
//publish {
31+
// groupId = 'com.mingle.zzz40500'
32+
// artifactId = 'shapeLoadingView'
33+
// publishVersion = '1.0.3'
34+
// description='Loading view with pretty animation.'
35+
// website = 'https://github.com/zzz40500/android-shapeLoadingView'
36+
//}
37+
38+
def siteUrl = 'https://github.com/zzz40500/android-shapeLoadingView'
39+
def gitUrl = 'https://github.com/zzz40500/android-shapeLoadingView.git'
40+
41+
group = "com.mingle.zzz40500"
42+
43+
install {
44+
repositories.mavenInstaller {
45+
// This generates POM.xml with proper parameters
46+
pom {
47+
project {
48+
packaging 'aar'
49+
name 'ShapeLoadingView'
50+
url siteUrl
51+
licenses {
52+
license {
53+
name 'The Apache Software License, Version 2.0'
54+
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
55+
}
56+
}
57+
developers {
58+
developer {
59+
id 'zzz40500'
60+
name 'qingwei'
61+
62+
}
63+
}
64+
scm {
65+
connection gitUrl
66+
developerConnection gitUrl
67+
url siteUrl
68+
}
69+
}
70+
}
71+
}
72+
}
73+
74+
75+
76+
task sourcesJar(type: Jar) {
77+
from android.sourceSets.main.java.srcDirs
78+
classifier = 'sources'
79+
}
80+
81+
task javadoc(type: Javadoc) {
82+
source = android.sourceSets.main.java.srcDirs
83+
classpath += project.files( android.getBootClasspath().join(File.pathSeparator))
84+
}
85+
86+
task javadocJar(type: Jar, dependsOn: javadoc) {
87+
classifier = 'javadoc'
88+
from javadoc.destinationDir
89+
}
90+
91+
artifacts {
92+
archives javadocJar
93+
archives sourcesJar
94+
}
95+
96+
Properties properties = new Properties()
97+
properties.load(project.rootProject.file('local.properties').newDataInputStream())
98+
bintray {
99+
user = properties.getProperty("bintray.user")
100+
key = properties.getProperty("bintray.apikey")
101+
configurations = ['archives']
102+
pkg {
103+
repo = "maven"
104+
name = "ShapeLoadingView"
105+
// #CONFIG# project name in jcenter
106+
websiteUrl = siteUrl
107+
vcsUrl = gitUrl
108+
licenses = ["Apache-2.0"]
109+
publish = true
110+
}
41111
}

shapeloading/shapeloading.iml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<module external.linked.project.id=":shapeloading" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="android-shapeLoadingView" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
2+
<module external.linked.project.id=":shapeloading" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="com.mingle.zzz40500" external.system.module.version="1.0.3" type="JAVA_MODULE" version="4">
33
<component name="FacetManager">
44
<facet type="android-gradle" name="Android-Gradle">
55
<configuration>
@@ -65,6 +65,7 @@
6565
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/java" isTestSource="true" />
6666
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/jni" isTestSource="true" />
6767
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/rs" isTestSource="true" />
68+
<excludeFolder url="file://$MODULE_DIR$/build/docs" />
6869
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/assets" />
6970
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/bundles" />
7071
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/classes" />
@@ -84,7 +85,9 @@
8485
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/res" />
8586
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/rs" />
8687
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/symbols" />
88+
<excludeFolder url="file://$MODULE_DIR$/build/libs" />
8789
<excludeFolder url="file://$MODULE_DIR$/build/outputs" />
90+
<excludeFolder url="file://$MODULE_DIR$/build/poms" />
8891
<excludeFolder url="file://$MODULE_DIR$/build/tmp" />
8992
</content>
9093
<orderEntry type="jdk" jdkName="Android API 21 Platform" jdkType="Android SDK" />
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
22
package="com.mingle.shapeloading">
33

4-
<application android:allowBackup="true" android:label="@string/app_name">
54

6-
</application>
75

86
</manifest>

shapeloading/src/main/res/layout/layout_dialog.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
33
android:orientation="vertical"
44
android:background="@drawable/aa_dialog_bg"
5-
android:paddingLeft="64dp"
6-
android:paddingRight="64dp"
5+
android:paddingLeft="72dp"
6+
android:paddingRight="72dp"
77
android:paddingTop="36dp"
88
android:paddingBottom="36dp"
99
android:layout_width="match_parent"

0 commit comments

Comments
 (0)