Skip to content

Commit

Permalink
降级了gradle,防止打包失败
Browse files Browse the repository at this point in the history
  • Loading branch information
Kale committed Apr 10, 2018
1 parent 4cd2656 commit 78a5454
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 19 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ repositories {

2.添加依赖

> compile 'com.github.tianzhijiexian:Shatter:[Latest release](https://github.com/tianzhijiexian/Shatter/releases)(<-click)'
> implementation 'com.github.tianzhijiexian:Shatter:[Latest release](https://github.com/tianzhijiexian/Shatter/releases)(<-click)'

## 配置方式
Expand Down
13 changes: 6 additions & 7 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ apply plugin: 'com.android.application'
apply plugin: 'me.leolin.gradle-android-aspectj'

android {
compileSdkVersion 26
compileSdkVersion 27
buildToolsVersion '27.0.3'

defaultConfig {
applicationId "kale.ui"
minSdkVersion 14
targetSdkVersion 26
targetSdkVersion 27
versionCode 1
versionName "1.0"
}
Expand All @@ -21,9 +21,8 @@ android {
}

dependencies {
compile 'com.android.support:appcompat-v7:26.1.0'
debugCompile 'com.squareup.leakcanary:leakcanary-android:1.3'
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.3'
compile 'com.jakewharton.scalpel:scalpel:1.1.2'
compile project(':lib')
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.squareup.leakcanary:leakcanary-android:1.3'
implementation 'com.jakewharton.scalpel:scalpel:1.1.2'
implementation project(':lib')
}
12 changes: 6 additions & 6 deletions aspect-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ apply plugin: 'groovy'
apply plugin: 'maven'

dependencies {
compile gradleApi()
compile localGroovy()
compile 'com.android.tools.build:gradle:1.3.1'
compile 'org.aspectj:aspectjtools:1.8.6'
compile 'org.aspectj:aspectjrt:1.8.6'
compile files('libs/proguard.jar')
implementation gradleApi()
implementation localGroovy()
implementation 'com.android.tools.build:gradle:1.3.1'
implementation 'org.aspectj:aspectjtools:1.8.6'
implementation 'org.aspectj:aspectjrt:1.8.6'
implementation files('libs/proguard.jar')
}

version = '1.0.0'
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.0'
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'me.tatarka:gradle-retrolambda:3.2.0'//lambda
classpath 'me.leolin:android-aspectj-plugin:1.0.7' // https://github.com/leolin310148/GradleAndroidAspectJPlugin
}
Expand Down
8 changes: 4 additions & 4 deletions lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ apply plugin: 'me.tatarka.retrolambda'
apply plugin: 'me.leolin.gradle-android-aspectj'

android {
compileSdkVersion 26
buildToolsVersion '26.0.2'
compileSdkVersion 27
buildToolsVersion '27.0.3'

defaultConfig {
minSdkVersion 14
targetSdkVersion 26
targetSdkVersion 27
}

buildTypes {
Expand All @@ -26,7 +26,7 @@ android {
}

dependencies {
provided 'com.android.support:appcompat-v7:26.1.0'
provided 'com.android.support:appcompat-v7:27.1.1'
}

// build a jar with source files
Expand Down

0 comments on commit 78a5454

Please sign in to comment.