Skip to content

Commit c21b87e

Browse files
committed
Tidy up the gradle scripts
1 parent 746348e commit c21b87e

File tree

4 files changed

+23
-23
lines changed

4 files changed

+23
-23
lines changed

app/build.gradle

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
apply plugin: 'com.android.application'
2-
apply plugin: 'kotlin-android'
3-
apply plugin: 'kotlin-android-extensions'
4-
apply plugin: 'kotlin-kapt'
1+
apply plugin: "com.android.application"
2+
apply plugin: "kotlin-android"
3+
apply plugin: "kotlin-android-extensions"
4+
apply plugin: "kotlin-kapt"
55

66
android {
77
compileSdkVersion COMPILE_SDK_VERSION.toInteger()
@@ -15,7 +15,7 @@ android {
1515

1616
def SCHEME = "gank"
1717

18-
buildConfigField "String", "SCHEME", "\"$SCHEME\""
18+
buildConfigField "String", "SCHEME", "\"${SCHEME}\""
1919

2020
manifestPlaceholders = [
2121
APPLICATION_ID: applicationId,
@@ -25,14 +25,14 @@ android {
2525
buildTypes {
2626
release {
2727
minifyEnabled false
28-
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
28+
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
2929
}
3030
}
3131
}
3232

3333
dependencies {
34-
implementation fileTree(dir: 'libs', include: ['*.jar'])
35-
implementation project(':backend')
34+
implementation fileTree(dir: "libs", include: ["*.jar"])
35+
implementation project(":backend")
3636

3737
// Kotlin
3838
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${KOTLIN_VERSION}"
@@ -41,7 +41,7 @@ dependencies {
4141
implementation "com.android.support:appcompat-v7:${SUPPORT_LIBS_VERSION}"
4242
implementation "com.android.support:recyclerview-v7:${SUPPORT_LIBS_VERSION}"
4343
implementation "com.android.support:support-annotations:${SUPPORT_LIBS_VERSION}"
44-
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
44+
implementation "com.android.support.constraint:constraint-layout:1.1.2"
4545

4646
// ReactiveX
4747
implementation "io.reactivex.rxjava2:rxjava:2.1.8"
@@ -52,9 +52,9 @@ dependencies {
5252
implementation "com.uber.autodispose:autodispose-android-archcomponents:${AUTO_DISPOSE_VERSION}"
5353

5454
// Others
55-
implementation 'com.squareup.picasso:picasso:2.5.2'
55+
implementation "com.squareup.picasso:picasso:2.5.2"
5656
implementation "com.github.nekocode:Meepo:0.3"
57-
def STATE_VERSION = '1.3.1'
57+
def STATE_VERSION = "1.3.1"
5858
implementation "com.evernote:android-state:${STATE_VERSION}"
5959
kapt "com.evernote:android-state-processor:${STATE_VERSION}"
6060
}

backend/build.gradle

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
apply plugin: 'com.android.library'
2-
apply plugin: 'kotlin-android'
1+
apply plugin: "com.android.library"
2+
apply plugin: "kotlin-android"
33

44
android {
55
compileSdkVersion COMPILE_SDK_VERSION.toInteger()
66

77
defaultConfig {
88
minSdkVersion 16
99
targetSdkVersion 27
10-
consumerProguardFiles'proguard-rules.pro'
10+
consumerProguardFiles "proguard-rules.pro"
1111
}
1212
}
1313

1414
dependencies {
15-
implementation fileTree(dir: 'libs', include: ['*.jar'])
16-
testImplementation 'junit:junit:4.12'
15+
implementation fileTree(dir: "libs", include: ["*.jar"])
16+
testImplementation "junit:junit:4.12"
1717

1818
// Kotlin
1919
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${KOTLIN_VERSION}"
2020

2121
// Network
22-
api 'com.squareup.okhttp3:okhttp:3.10.0'
23-
api 'com.google.code.gson:gson:2.8.4'
24-
def RETROFIT_VERSION = '2.4.0'
22+
api "com.squareup.okhttp3:okhttp:3.10.0"
23+
api "com.google.code.gson:gson:2.8.4"
24+
def RETROFIT_VERSION = "2.4.0"
2525
implementation "com.squareup.retrofit2:retrofit:${RETROFIT_VERSION}"
2626
implementation "com.squareup.retrofit2:converter-gson:${RETROFIT_VERSION}"
2727
implementation "com.squareup.retrofit2:adapter-rxjava2:${RETROFIT_VERSION}"

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ buildscript {
44
google()
55
}
66
dependencies {
7-
classpath 'com.android.tools.build:gradle:3.1.3'
8-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$KOTLIN_VERSION"
7+
classpath "com.android.tools.build:gradle:3.1.3"
8+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${KOTLIN_VERSION}"
99
}
1010
}
1111

1212
allprojects {
1313
repositories {
1414
jcenter()
1515
google()
16-
maven { url 'https://jitpack.io' }
16+
maven { url "https://jitpack.io" }
1717
}
1818
}
1919

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
include ':app', ':backend'
1+
include ":app", ":backend"

0 commit comments

Comments
 (0)