Skip to content

Commit 158fc43

Browse files
committed
update version
1 parent c164284 commit 158fc43

File tree

3 files changed

+33
-16
lines changed

3 files changed

+33
-16
lines changed

app/build.gradle

+7-8
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 23
5-
buildToolsVersion "23.0.3"
4+
compileSdkVersion configs.compileSdkVersion
5+
buildToolsVersion configs.buildToolsVersion
66

77
defaultConfig {
88
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
1313
}
1414

1515
signingConfigs {
@@ -39,7 +39,6 @@ android {
3939
dependencies {
4040
compile fileTree(dir: 'libs', include: ['*.jar'])
4141
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
4443
compile project(':cardstack')
4544
}

build.gradle

+18
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,21 @@ allprojects {
2525
task clean(type: Delete) {
2626
delete rootProject.buildDir
2727
}
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+
}

cardstack/build.gradle

+8-8
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@ apply plugin: 'com.android.library'
22
apply plugin: 'com.github.dcendents.android-maven'
33
apply plugin: 'com.jfrog.bintray'
44

5-
version = '1.0.1'
5+
version = configs.cardstackversionName
66

77
android {
8-
compileSdkVersion 23
9-
buildToolsVersion "23.0.3"
8+
compileSdkVersion configs.compileSdkVersion
9+
buildToolsVersion configs.buildToolsVersion
1010

1111
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
1616
}
1717
buildTypes {
1818
release {
@@ -26,7 +26,7 @@ android {
2626
dependencies {
2727
compile fileTree(dir: 'libs', include: ['*.jar'])
2828
testCompile 'junit:junit:4.12'
29-
compile 'com.android.support:appcompat-v7:23.4.0'
29+
compile deps.appcompatV7
3030
}
3131

3232
def siteUrl = 'https://github.com/loopeer/CardStackView' // 项目的主页

0 commit comments

Comments
 (0)