Skip to content

Commit 5b6ef7e

Browse files
committed
update gradle files to the Android Studio 3 way
1 parent 1697fe2 commit 5b6ef7e

File tree

2 files changed

+11
-19
lines changed

2 files changed

+11
-19
lines changed

app/build.gradle

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -46,26 +46,13 @@ ext {
4646
}
4747

4848
dependencies {
49-
compile 'com.simplemobiletools:commons:2.39.10'
50-
compile 'com.bignerdranch.android:recyclerview-multiselect:0.2'
51-
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
49+
implementation 'com.simplemobiletools:commons:2.39.10'
50+
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
5251

53-
compile files('../libs/RootTools.jar')
52+
implementation files('../libs/RootTools.jar')
5453

55-
debugCompile "com.squareup.leakcanary:leakcanary-android:$leakCanaryVersion"
56-
releaseCompile "com.squareup.leakcanary:leakcanary-android-no-op:$leakCanaryVersion"
57-
}
58-
59-
buildscript {
60-
ext.kotlin_version = '1.1.60'
61-
repositories {
62-
mavenCentral()
63-
}
64-
65-
dependencies {
66-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
67-
classpath "org.jetbrains.kotlin:kotlin-android-extensions:$kotlin_version"
68-
}
54+
debugImplementation "com.squareup.leakcanary:leakcanary-android:$leakCanaryVersion"
55+
releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:$leakCanaryVersion"
6956
}
7057

7158
def Properties props = new Properties()

build.gradle

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

33
buildscript {
4+
ext.kotlin_version = '1.1.60'
5+
46
repositories {
57
jcenter()
8+
google()
69
}
10+
711
dependencies {
812
classpath 'com.android.tools.build:gradle:3.0.0'
13+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
914

1015
// NOTE: Do not place your application dependencies here; they belong
1116
// in the individual module build.gradle files
@@ -15,8 +20,8 @@ buildscript {
1520
allprojects {
1621
repositories {
1722
jcenter()
23+
google()
1824
maven { url "https://jitpack.io" }
19-
maven { url "https://maven.google.com" }
2025
}
2126
}
2227

0 commit comments

Comments
 (0)