File tree Expand file tree Collapse file tree 5 files changed +7
-52
lines changed Expand file tree Collapse file tree 5 files changed +7
-52
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ apply plugin: 'com.android.application'
2
2
3
3
android {
4
4
compileSdkVersion COMPILE_SDK_VERSION as int
5
- buildToolsVersion BUILD_TOOLS_VERSION
6
5
7
6
defaultConfig {
8
7
applicationId " cn.hzw.graffitidemo"
Original file line number Diff line number Diff line change 1
- // Top-level build file where you can add configuration options common to all sub-projects/modules.
2
-
3
-
4
- def getLocalProperty (String key ) {
5
- if (! localPropertiesFile(). exists()) {
6
- return null
7
- }
8
-
9
- Properties properties = new Properties ()
10
- properties. load(localPropertiesFile(). newDataInputStream())
11
- return properties. getProperty(key)
12
- }
13
-
14
- def localPropertiesFile () {
15
- return project. rootProject. file(' local.properties' );
16
- }
17
-
18
- def isForUpload2Maven () {
19
- return getLocalProperty(" for.upload" ) == " true"
20
- }
21
-
22
1
buildscript {
23
2
repositories {
3
+ google()
24
4
jcenter()
25
5
}
26
6
dependencies {
27
- classpath ' com.android.tools.build:gradle:2.2.3'
28
-
29
- // NOTE: Do not place your application dependencies here; they belong
30
- // in the individual module build.gradle files
31
-
32
- File file = project. rootProject. file(' local.properties' )
33
- if (file. exists()) {
34
- Properties properties = new Properties ()
35
- properties. load(file. newDataInputStream())
36
- boolean upload2maven = properties. getProperty(" for.upload" ) == " true"
37
- if (upload2maven) {
38
- println ' upload2maven:true'
39
- // 用于上传Maven生成的文件到Bintray
40
- classpath ' com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6'
41
- // 用于打包Maven所需文件
42
- classpath ' com.github.dcendents:android-maven-gradle-plugin:1.4.1'
43
- } else {
44
- println ' upload2maven:false'
45
- }
46
- }
7
+ classpath ' com.android.tools.build:gradle:3.1.3'
47
8
}
48
9
}
49
10
50
11
allprojects {
51
12
repositories {
52
13
jcenter()
14
+ google()
53
15
}
54
16
}
55
17
Original file line number Diff line number Diff line change 1
1
MIN_SDK_VERSION =14
2
- TARGET_SDK_VERSION =22
2
+ TARGET_SDK_VERSION =27
3
3
4
4
VERSION_NAME =v5.0
5
5
VERSION_CODE =20
6
- BUILD_TOOLS_VERSION =23.0.2
7
- COMPILE_SDK_VERSION =23
6
+ COMPILE_SDK_VERSION =27
Original file line number Diff line number Diff line change 1
- # Mon Dec 28 10:00:20 PST 2015
1
+ # Thu Jul 19 11:57:35 CST 2018
2
2
distributionBase =GRADLE_USER_HOME
3
3
distributionPath =wrapper/dists
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
6
- distributionUrl =https\://services.gradle.org/distributions/gradle-2.14.1 -all.zip
6
+ distributionUrl =https\://services.gradle.org/distributions/gradle-4.4 -all.zip
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ apply plugin: 'com.android.library'
2
2
3
3
android {
4
4
compileSdkVersion COMPILE_SDK_VERSION as int
5
- buildToolsVersion BUILD_TOOLS_VERSION
6
5
7
6
defaultConfig {
8
7
minSdkVersion MIN_SDK_VERSION as int
@@ -21,8 +20,4 @@ android {
21
20
dependencies {
22
21
// https://github.com/1993hzw/Androids
23
22
compile ' com.forward.androids:androids:1.2.1'
24
- }
25
-
26
- if (isForUpload2Maven()) {
27
- apply from : " https://raw.githubusercontent.com/1993hzw/common/master/bintrayUpload.gradle"
28
23
}
You can’t perform that action at this time.
0 commit comments