Skip to content

Commit 39b74ee

Browse files
author
uis
committed
环境配置升级
1 parent 4028ce1 commit 39b74ee

4 files changed

Lines changed: 15 additions & 13 deletions

File tree

build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22

33
buildscript {
4+
45
repositories {
56
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
67
jcenter()
78
google()
89
}
10+
911
dependencies {
1012
classpath 'com.android.tools.build:gradle:3.2.1'
1113
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
@@ -27,4 +29,7 @@ task clean(type: Delete) {
2729

2830
ext{
2931
androidx = '1.0.0'
32+
compileVer = 28
33+
minVer = 15
34+
buildVer = '28.0.3'
3035
}

demo/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 28
5-
buildToolsVersion "28.0.3"
4+
compileSdkVersion compileVer
5+
buildToolsVersion buildVer
66
defaultConfig {
77
applicationId "com.uis.stackview.demo"
8-
minSdkVersion 14
9-
targetSdkVersion 28
8+
minSdkVersion minVer
9+
targetSdkVersion compileVer
1010
versionCode 1
1111
versionName "1.0"
1212
manifestPlaceholders = [

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.0-all.zip

stacklayout/build.gradle

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
apply plugin: 'com.android.library'
22

33
android {
4-
compileSdkVersion 28
5-
buildToolsVersion "28.0.3"
4+
compileSdkVersion compileVer
5+
buildToolsVersion buildVer
66

77
defaultConfig {
8-
minSdkVersion 14
9-
targetSdkVersion 28
8+
minSdkVersion minVer
9+
targetSdkVersion compileVer
1010
versionCode 1
1111
versionName "1.0"
1212
consumerProguardFiles 'proguard-rules.pro'
1313
}
14+
1415
buildTypes {
1516
release {
1617
minifyEnabled false
@@ -19,8 +20,4 @@ android {
1920
}
2021
}
2122

22-
dependencies {
23-
implementation fileTree(dir: 'libs', include: ['*.jar'])
24-
}
25-
2623
//apply from: '../../bintray.gradle'

0 commit comments

Comments
 (0)