From e5d81816a3237d8040da5d3ec263c89204264b26 Mon Sep 17 00:00:00 2001 From: Daniel Schaal Date: Thu, 15 Jul 2021 06:25:53 +0200 Subject: Use function syntax for dependencies --- app/build.gradle | 116 +++++++++++++++++++++++++++---------------------------- build.gradle | 12 +++--- 2 files changed, 64 insertions(+), 64 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index ce8e0818..73f6b782 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -19,12 +19,12 @@ */ plugins { - id 'com.android.application' - id 'kotlin-android' - id 'kotlin-parcelize' - id 'kotlin-kapt' - id 'realm-android' - id 'com.mikepenz.aboutlibraries.plugin' + id "com.android.application" + id "kotlin-android" + id "kotlin-parcelize" + id "kotlin-kapt" + id "realm-android" + id "com.mikepenz.aboutlibraries.plugin" } android { @@ -57,13 +57,13 @@ android { buildTypes { debug { minifyEnabled true - proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + proguardFiles getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro" applicationIdSuffix ".debug" } release { minifyEnabled true shrinkResources true - proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + proguardFiles getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro" } } @@ -81,76 +81,76 @@ android { ext { versions = [ - okhttp : '4.9.1', - retrofit : '2.9.0', - glide : '4.12.0', - lifecycle : '2.3.1', - moshi : '1.12.0', - core : '1.6.0', - annotation : '1.2.0', - junit_ext : '1.1.3', - espresso : '1.4.0' + okhttp : "4.9.1", + retrofit : "2.9.0", + glide : "4.12.0", + lifecycle : "2.3.1", + moshi : "1.12.0", + core : "1.6.0", + annotation : "1.2.0", + junit_ext : "1.1.3", + espresso : "1.4.0" ] } dependencies { - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" - implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.1' + implementation ("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version") + implementation ("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.1") - implementation "androidx.core:core-ktx:${versions.core}" - implementation "androidx.core:core-ktx:${versions.core}" + implementation ("androidx.core:core-ktx:${versions.core}") + implementation("androidx.core:core-ktx:${versions.core}") - implementation "androidx.appcompat:appcompat:1.3.0" + implementation("androidx.appcompat:appcompat:1.3.0") - implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:${versions.lifecycle}" - implementation "androidx.lifecycle:lifecycle-runtime-ktx:${versions.lifecycle}" - implementation "androidx.lifecycle:lifecycle-runtime-ktx:${versions.lifecycle}" - implementation "androidx.lifecycle:lifecycle-common-java8:${versions.lifecycle}" + implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:${versions.lifecycle}") + implementation("androidx.lifecycle:lifecycle-runtime-ktx:${versions.lifecycle}") + implementation("androidx.lifecycle:lifecycle-runtime-ktx:${versions.lifecycle}") + implementation("androidx.lifecycle:lifecycle-common-java8:${versions.lifecycle}") - implementation "androidx.work:work-runtime-ktx:2.5.0" - implementation "androidx.fragment:fragment-ktx:1.3.5" - implementation "androidx.activity:activity-ktx:1.2.3" + implementation("androidx.work:work-runtime-ktx:2.5.0") + implementation("androidx.fragment:fragment-ktx:1.3.5") + implementation("androidx.activity:activity-ktx:1.2.3") - implementation "androidx.recyclerview:recyclerview:1.2.1" - implementation "androidx.palette:palette-ktx:1.0.0" - implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0' - implementation "androidx.preference:preference-ktx:1.1.1" - implementation "androidx.viewpager2:viewpager2:1.1.0-alpha01" - implementation 'androidx.constraintlayout:constraintlayout:2.0.4' + implementation("androidx.recyclerview:recyclerview:1.2.1") + implementation("androidx.palette:palette-ktx:1.0.0") + implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.1.0") + implementation("androidx.preference:preference-ktx:1.1.1") + implementation("androidx.viewpager2:viewpager2:1.1.0-alpha01") + implementation("androidx.constraintlayout:constraintlayout:2.0.4") - implementation "androidx.annotation:annotation:${versions.annotation}" - kapt "androidx.annotation:annotation:${versions.annotation}" + implementation("androidx.annotation:annotation:${versions.annotation}") + kapt("androidx.annotation:annotation:${versions.annotation}") - implementation 'com.google.android.material:material:1.4.0' + implementation("com.google.android.material:material:1.4.0") - implementation "com.mikepenz:aboutlibraries:$about_libraries_version" + implementation("com.mikepenz:aboutlibraries:$about_libraries_version") - implementation 'org.jsoup:jsoup:1.13.1' + implementation("org.jsoup:jsoup:1.13.1") - implementation "com.squareup.okhttp3:okhttp:${versions.okhttp}" + implementation("com.squareup.okhttp3:okhttp:${versions.okhttp}") - implementation "com.squareup.retrofit2:retrofit:${versions.retrofit}" - implementation "com.squareup.retrofit2:converter-moshi:${versions.retrofit}" + implementation("com.squareup.retrofit2:retrofit:${versions.retrofit}") + implementation("com.squareup.retrofit2:converter-moshi:${versions.retrofit}") - implementation "com.squareup.moshi:moshi:${versions.moshi}" - kapt "com.squareup.moshi:moshi-kotlin-codegen:${versions.moshi}" + implementation("com.squareup.moshi:moshi:${versions.moshi}") + kapt("com.squareup.moshi:moshi-kotlin-codegen:${versions.moshi}") - implementation "com.github.bumptech.glide:glide:${versions.glide}" - kapt "com.github.bumptech.glide:compiler:${versions.glide}" + implementation("com.github.bumptech.glide:glide:${versions.glide}") + kapt("com.github.bumptech.glide:compiler:${versions.glide}") - implementation "com.github.bumptech.glide:okhttp3-integration:${versions.glide}" - implementation "com.github.bumptech.glide:recyclerview-integration:${versions.glide}" + implementation("com.github.bumptech.glide:okhttp3-integration:${versions.glide}") + implementation("com.github.bumptech.glide:recyclerview-integration:${versions.glide}") - implementation 'com.github.zafarkhaja:java-semver:0.9.0' + implementation("com.github.zafarkhaja:java-semver:0.9.0") - androidTestImplementation "androidx.test.ext:junit:${versions.junit_ext}" - androidTestImplementation "androidx.test.espresso:espresso-core:${versions.espresso}" - androidTestImplementation "androidx.test.espresso:espresso-intents:${versions.espresso}" + androidTestImplementation("androidx.test.ext:junit:${versions.junit_ext}") + androidTestImplementation("androidx.test.espresso:espresso-core:${versions.espresso}") + androidTestImplementation("androidx.test.espresso:espresso-intents:${versions.espresso}") - androidTestImplementation "com.squareup.okhttp3:mockwebserver:${versions.okhttp}" + androidTestImplementation("com.squareup.okhttp3:mockwebserver:${versions.okhttp}") - testImplementation 'androidx.test:core:1.4.0' - testImplementation "androidx.test.ext:junit:${versions.junit_ext}" - testImplementation 'org.robolectric:robolectric:4.5.1' - testImplementation 'junit:junit:4.13.2' + testImplementation("androidx.test:core:1.4.0") + testImplementation("androidx.test.ext:junit:${versions.junit_ext}") + testImplementation("org.robolectric:robolectric:4.5.1") + testImplementation("junit:junit:4.13.2") } diff --git a/build.gradle b/build.gradle index ba185a0f..0841fc1a 100644 --- a/build.gradle +++ b/build.gradle @@ -19,22 +19,22 @@ */ buildscript { - ext.kotlin_version = '1.5.21' - ext.about_libraries_version = '8.9.0' + ext.kotlin_version = "1.5.21" + ext.about_libraries_version = "8.9.0" repositories { mavenCentral() google() } dependencies { - classpath 'com.android.tools.build:gradle:4.2.2' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - classpath 'io.realm:realm-gradle-plugin:10.6.1' + classpath("com.android.tools.build:gradle:4.2.2") + classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version") + classpath("io.realm:realm-gradle-plugin:10.6.1") } } plugins { - id 'com.mikepenz.aboutlibraries.plugin' version "${about_libraries_version}" apply false + id("com.mikepenz.aboutlibraries.plugin") version "${about_libraries_version}" apply false } allprojects { -- cgit v1.2.3