build: update to Android Studio 3.1

This commit is contained in:
imkiva 2018-04-01 01:19:55 +08:00
parent 67d1040113
commit ce246c382e
4 changed files with 7 additions and 5 deletions

View File

@ -4,6 +4,7 @@ apply plugin: 'kotlin-android'
android { android {
compileSdkVersion rootProject.ext.android.COMPILE_SDK_VERSION compileSdkVersion rootProject.ext.android.COMPILE_SDK_VERSION
buildToolsVersion rootProject.ext.android.BUILD_TOOL_VERSION buildToolsVersion rootProject.ext.android.BUILD_TOOL_VERSION
defaultConfig { defaultConfig {
applicationId "io.neoterm" applicationId "io.neoterm"
minSdkVersion rootProject.ext.android.MIN_SDK_VERSION minSdkVersion rootProject.ext.android.MIN_SDK_VERSION

View File

@ -32,7 +32,7 @@ buildscript {
TARGET_SDK_VERSION : 27, TARGET_SDK_VERSION : 27,
BUILD_TOOL_VERSION : '27.0.2', BUILD_TOOL_VERSION : '27.0.3',
JUNIT_VERSION : "4.12" JUNIT_VERSION : "4.12"
] ]
@ -51,9 +51,10 @@ buildscript {
repositories { repositories {
maven { url 'https://dl.google.com/dl/android/maven2/' } maven { url 'https://dl.google.com/dl/android/maven2/' }
jcenter() jcenter()
google()
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:3.0.1' classpath 'com.android.tools.build:gradle:3.1.0'
classpath rootProject.ext.deps["kotlin-gradle-plugin"] classpath rootProject.ext.deps["kotlin-gradle-plugin"]
// NOTE: Do not place your application dependencies here; they belong // NOTE: Do not place your application dependencies here; they belong

View File

@ -22,7 +22,7 @@ android {
} }
dependencies { dependencies {
compile 'com.github.michael-rapp:android-util:1.15.0' implementation 'com.github.michael-rapp:android-util:1.15.0'
implementation rootProject.ext.deps["annotations"] implementation rootProject.ext.deps["annotations"]
implementation rootProject.ext.deps["appcompat-v7"] implementation rootProject.ext.deps["appcompat-v7"]
testImplementation rootProject.ext.deps["junit"] testImplementation rootProject.ext.deps["junit"]

View File

@ -1,6 +1,6 @@
#Sat Sep 16 12:05:30 CST 2017 #Sun Apr 01 00:43:41 CST 2018
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip