Skip to content

Commit 99e2128

Browse files
committed
refactor code
1 parent 92fd5d1 commit 99e2128

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+39
-19
lines changed

application/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ android {
99

1010
dependencies {
1111
compile fileTree(dir: 'libs', include: ['*.jar'])
12-
compile project(":chooser")
12+
compile project(':image-selector')
1313
}

build.gradle

+13
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,25 @@ buildscript {
66
}
77
dependencies {
88
classpath 'com.android.tools.build:gradle:2.0.0'
9+
classpath 'com.novoda:bintray-release:0.3.4'
910

1011
// NOTE: Do not place your application dependencies here; they belong
1112
// in the individual module build.gradle files
1213
}
1314
}
1415

16+
def libVersion = "1.0.0"
17+
18+
ext {
19+
userOrg = "iknow" //bintray.com用户名
20+
groupId = "com.github.iknow4" //jcenter上的路径
21+
publishVersion = libVersion //版本号
22+
desc = "It is a android image select lib"//类库的描述
23+
website = "https://github.com/iknow4/AndroidImageSelect"//该库在github上对应的链接
24+
uploadName = "AndroidImageSelector" //上传在bintray的文件夹
25+
licences = ["Apache-2.0"]
26+
}
27+
1528
allprojects {
1629
repositories {
1730
jcenter()

chooser/build.gradle

-12
This file was deleted.
File renamed without changes.

image-selector/build.gradle

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
apply plugin: 'com.android.library'
2+
apply from: rootDir.path + '/shared.gradle'
3+
apply plugin: 'com.novoda.bintray-release'
4+
5+
6+
publish {
7+
artifactId = 'image-selector'//模块名称
8+
userOrg = rootProject.userOrg
9+
groupId = rootProject.groupId
10+
uploadName = rootProject.uploadName //模块上传后所在的文件夹名称
11+
publishVersion = rootProject.publishVersion//模块版本号
12+
desc = rootProject.description//模块的描述
13+
website = rootProject.website //模块的网站
14+
licences = rootProject.licences //模块的licences
15+
}
16+
17+
dependencies {
18+
compile fileTree(dir: 'libs', include: ['*.jar'])
19+
compile 'com.android.support:appcompat-v7:23.3.0'
20+
compile 'com.android.support:recyclerview-v7:23.3.0'
21+
compile 'com.android.support:cardview-v7:23.3.0'
22+
compile 'com.facebook.fresco:fresco:0.10.0'
23+
compile 'com.github.chrisbanes:PhotoView:1.2.6'
24+
}
File renamed without changes.

settings.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
include ':chooser', ':application'
1+
include ':image-selector', ':application'

upload.gradle

-5
This file was deleted.

0 commit comments

Comments
 (0)