File tree 3 files changed +33
-16
lines changed
3 files changed +33
-16
lines changed Original file line number Diff line number Diff line change 1
1
apply plugin : ' com.android.application'
2
2
3
3
android {
4
- compileSdkVersion 23
5
- buildToolsVersion " 23.0.3 "
4
+ compileSdkVersion configs . compileSdkVersion
5
+ buildToolsVersion configs . buildToolsVersion
6
6
7
7
defaultConfig {
8
8
applicationId " com.loopeer.test.cardstackview"
9
- minSdkVersion 15
10
- targetSdkVersion 23
11
- versionCode 1
12
- versionName " 1.0 "
9
+ minSdkVersion configs . minSdkVersion
10
+ targetSdkVersion configs . targetSdkVersion
11
+ versionCode configs . versionCode
12
+ versionName configs . versionName
13
13
}
14
14
15
15
signingConfigs {
@@ -39,7 +39,6 @@ android {
39
39
dependencies {
40
40
compile fileTree(dir : ' libs' , include : [' *.jar' ])
41
41
testCompile ' junit:junit:4.12'
42
- compile ' com.android.support:appcompat-v7:23.4.0'
43
- // compile 'com.loopeer.library:cardstack:1.0.1'
42
+ compile deps. appcompatV7
44
43
compile project(' :cardstack' )
45
44
}
Original file line number Diff line number Diff line change @@ -25,3 +25,21 @@ allprojects {
25
25
task clean (type : Delete ) {
26
26
delete rootProject. buildDir
27
27
}
28
+
29
+ ext {
30
+ configs = [
31
+ compileSdkVersion : 24 ,
32
+ buildToolsVersion : ' 24.0.2' ,
33
+ minSdkVersion : 14 ,
34
+ targetSdkVersion : 24 ,
35
+ versionCode : 1 ,
36
+ versionName : ' 1.0' ,
37
+ cardstackversionName : ' 1.0.2'
38
+ ]
39
+
40
+ def supportLibraryVersion = ' 24.2.1'
41
+
42
+ deps = [
43
+ appcompatV7 : " com.android.support:appcompat-v7:$supportLibraryVersion " ,
44
+ ]
45
+ }
Original file line number Diff line number Diff line change @@ -2,17 +2,17 @@ apply plugin: 'com.android.library'
2
2
apply plugin : ' com.github.dcendents.android-maven'
3
3
apply plugin : ' com.jfrog.bintray'
4
4
5
- version = ' 1.0.1 '
5
+ version = configs . cardstackversionName
6
6
7
7
android {
8
- compileSdkVersion 23
9
- buildToolsVersion " 23.0.3 "
8
+ compileSdkVersion configs . compileSdkVersion
9
+ buildToolsVersion configs . buildToolsVersion
10
10
11
11
defaultConfig {
12
- minSdkVersion 15
13
- targetSdkVersion 23
14
- versionCode 1
15
- versionName " 1.0 "
12
+ minSdkVersion configs . minSdkVersion
13
+ targetSdkVersion configs . targetSdkVersion
14
+ versionCode configs . versionCode
15
+ versionName configs . versionName
16
16
}
17
17
buildTypes {
18
18
release {
@@ -26,7 +26,7 @@ android {
26
26
dependencies {
27
27
compile fileTree(dir : ' libs' , include : [' *.jar' ])
28
28
testCompile ' junit:junit:4.12'
29
- compile ' com.android.support:appcompat-v7:23.4.0 '
29
+ compile deps . appcompatV7
30
30
}
31
31
32
32
def siteUrl = ' https://github.com/loopeer/CardStackView' // 项目的主页
You can’t perform that action at this time.
0 commit comments