mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-18 06:47:02 +05:30
gradle: reformat all build files with 2SI
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
7c4e4aea26
commit
cec0e1bbcb
5 changed files with 168 additions and 168 deletions
150
build.gradle
150
build.gradle
|
@ -1,97 +1,97 @@
|
|||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||
buildscript {
|
||||
ext {
|
||||
accompanist_version = "0.3.2"
|
||||
activity_version = "1.2.0-beta01"
|
||||
agp_version = "4.2.0-alpha15"
|
||||
appcompat_version = "1.3.0-alpha02"
|
||||
browser_version = "1.3.0-beta01"
|
||||
compose_version = "1.0.0-alpha06"
|
||||
core_version = "1.5.0-alpha04"
|
||||
coroutines_version = "1.4.0"
|
||||
customtabs_version = "3.0.2"
|
||||
dagger_version = "2.29.1"
|
||||
desugar_version = "1.0.10"
|
||||
hilt_androidx_version = "1.0.0-alpha02"
|
||||
hilt_dagger_version = "2.29.1-alpha"
|
||||
junit_version = "4.13.1"
|
||||
kotlin_version = "1.4.10"
|
||||
lifecycle_version = "2.3.0-beta01"
|
||||
material_version = "1.3.0-alpha03"
|
||||
moshi_version = "1.11.0"
|
||||
nav_compose_version = "1.0.0-alpha01"
|
||||
okhttp_version = "4.10.0-RC1"
|
||||
retrofit_version = "2.9.0"
|
||||
room_version = "2.3.0-alpha03"
|
||||
}
|
||||
repositories {
|
||||
google()
|
||||
jcenter()
|
||||
}
|
||||
dependencies {
|
||||
classpath "com.android.tools.build:gradle:$agp_version"
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||
classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_dagger_version"
|
||||
}
|
||||
ext {
|
||||
accompanist_version = "0.3.2"
|
||||
activity_version = "1.2.0-beta01"
|
||||
agp_version = "4.2.0-alpha15"
|
||||
appcompat_version = "1.3.0-alpha02"
|
||||
browser_version = "1.3.0-beta01"
|
||||
compose_version = "1.0.0-alpha06"
|
||||
core_version = "1.5.0-alpha04"
|
||||
coroutines_version = "1.4.0"
|
||||
customtabs_version = "3.0.2"
|
||||
dagger_version = "2.29.1"
|
||||
desugar_version = "1.0.10"
|
||||
hilt_androidx_version = "1.0.0-alpha02"
|
||||
hilt_dagger_version = "2.29.1-alpha"
|
||||
junit_version = "4.13.1"
|
||||
kotlin_version = "1.4.10"
|
||||
lifecycle_version = "2.3.0-beta01"
|
||||
material_version = "1.3.0-alpha03"
|
||||
moshi_version = "1.11.0"
|
||||
nav_compose_version = "1.0.0-alpha01"
|
||||
okhttp_version = "4.10.0-RC1"
|
||||
retrofit_version = "2.9.0"
|
||||
room_version = "2.3.0-alpha03"
|
||||
}
|
||||
repositories {
|
||||
google()
|
||||
jcenter()
|
||||
}
|
||||
dependencies {
|
||||
classpath "com.android.tools.build:gradle:$agp_version"
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||
classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_dagger_version"
|
||||
}
|
||||
}
|
||||
|
||||
plugins {
|
||||
id("com.github.ben-manes.versions") version "0.33.0"
|
||||
id("com.github.ben-manes.versions") version "0.33.0"
|
||||
}
|
||||
|
||||
allprojects {
|
||||
repositories {
|
||||
google()
|
||||
jcenter()
|
||||
}
|
||||
repositories {
|
||||
google()
|
||||
jcenter()
|
||||
}
|
||||
}
|
||||
|
||||
subprojects {
|
||||
repositories {
|
||||
google()
|
||||
jcenter()
|
||||
}
|
||||
if (name == "app") {
|
||||
apply plugin: "com.android.application"
|
||||
} else {
|
||||
apply plugin: "com.android.library"
|
||||
}
|
||||
apply plugin: "kotlin-android"
|
||||
android {
|
||||
compileSdkVersion 30
|
||||
repositories {
|
||||
google()
|
||||
jcenter()
|
||||
}
|
||||
if (name == "app") {
|
||||
apply plugin: "com.android.application"
|
||||
} else {
|
||||
apply plugin: "com.android.library"
|
||||
}
|
||||
apply plugin: "kotlin-android"
|
||||
android {
|
||||
compileSdkVersion 30
|
||||
|
||||
defaultConfig {
|
||||
minSdkVersion 23
|
||||
targetSdkVersion 30
|
||||
versionCode 1
|
||||
versionName "1.0"
|
||||
}
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_1_8
|
||||
targetCompatibility JavaVersion.VERSION_1_8
|
||||
}
|
||||
defaultConfig {
|
||||
minSdkVersion 23
|
||||
targetSdkVersion 30
|
||||
versionCode 1
|
||||
versionName "1.0"
|
||||
}
|
||||
configurations.all {
|
||||
resolutionStrategy {
|
||||
force "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
||||
force "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
|
||||
force "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version"
|
||||
}
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_1_8
|
||||
targetCompatibility JavaVersion.VERSION_1_8
|
||||
}
|
||||
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
|
||||
kotlinOptions {
|
||||
jvmTarget = JavaVersion.VERSION_1_8
|
||||
}
|
||||
}
|
||||
configurations.all {
|
||||
resolutionStrategy {
|
||||
force "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
||||
force "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
|
||||
force "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version"
|
||||
}
|
||||
}
|
||||
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
|
||||
kotlinOptions {
|
||||
jvmTarget = JavaVersion.VERSION_1_8
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
task clean(type: Delete) {
|
||||
delete rootProject.buildDir
|
||||
delete rootProject.buildDir
|
||||
}
|
||||
|
||||
tasks {
|
||||
wrapper {
|
||||
gradleVersion = "6.7"
|
||||
distributionType = Wrapper.DistributionType.ALL
|
||||
}
|
||||
wrapper {
|
||||
gradleVersion = "6.7"
|
||||
distributionType = Wrapper.DistributionType.ALL
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue