Commit cc7e74ca authored by topjohnwu's avatar topjohnwu

Cleanup build.gradle

parent e8a44646
Subproject commit 0c782edf2114621056093406d808d03bdfed1a9f Subproject commit 52d478df1a687070680f057308f3d66bff9f1623
...@@ -19,9 +19,16 @@ allprojects { ...@@ -19,9 +19,16 @@ allprojects {
repositories { repositories {
google() google()
jcenter() jcenter()
maven { url "https://jitpack.io" }
} }
} }
ext {
compileSdkVersion = 27
buildToolsVersion = "27.0.3"
supportLibVersion = "27.1.0"
}
task clean(type: Delete) { task clean(type: Delete) {
delete rootProject.buildDir delete rootProject.buildDir
} }
apply plugin: 'com.android.library' apply plugin: 'com.android.library'
android { android {
compileSdkVersion 27 compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
externalNativeBuild { externalNativeBuild {
ndkBuild { ndkBuild {
......
apply plugin: 'com.android.application' apply plugin: 'com.android.application'
android { android {
compileSdkVersion 27 compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion "27.0.3" buildToolsVersion rootProject.ext.buildToolsVersion
defaultConfig { defaultConfig {
applicationId "com.topjohnwu.snet" applicationId "com.topjohnwu.snet"
minSdkVersion 21 minSdkVersion 21
targetSdkVersion 27 targetSdkVersion rootProject.ext.compileSdkVersion
versionCode 1 versionCode 1
versionName "1.0" versionName "1.0"
} }
...@@ -20,10 +20,6 @@ android { ...@@ -20,10 +20,6 @@ android {
} }
} }
repositories {
google()
}
dependencies { dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar']) implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.google.android.gms:play-services-safetynet:7.0.0' /* The oldest version */ implementation 'com.google.android.gms:play-services-safetynet:7.0.0' /* The oldest version */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment