Skip to content

Commit

Permalink
⚙️ :: set up kotlin DSL
Browse files Browse the repository at this point in the history
  • Loading branch information
shw0471 committed Mar 23, 2022
1 parent 3351154 commit 4f89270
Show file tree
Hide file tree
Showing 19 changed files with 245 additions and 260 deletions.
14 changes: 0 additions & 14 deletions build.gradle

This file was deleted.

24 changes: 24 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
buildscript {
repositories {
google()
mavenCentral()
}

dependencies {
classpath(Dependency.GradlePlugin.android)
classpath(Dependency.GradlePlugin.kotlin)
classpath(Dependency.GradlePlugin.hilt)
classpath(Dependency.GradlePlugin.service)
}
}

allprojects {
repositories {
google()
mavenCentral()
}
}

task("clean", Delete::class) {
delete(rootProject.buildDir)
}
40 changes: 0 additions & 40 deletions data/build.gradle

This file was deleted.

38 changes: 38 additions & 0 deletions data/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
plugins {
id("com.android.library")
kotlin("android")
}

android {
compileSdk = Project.compileSdk

defaultConfig {
minSdk = Project.minSdk
targetSdk = Project.targetSdk
consumerProguardFiles("consumer-rules.pro")
}

buildTypes {
getByName("release") {
isMinifyEnabled = false
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
}
compileOptions {
sourceCompatibility = Project.javaVersion
targetCompatibility = Project.javaVersion
}
kotlinOptions {
jvmTarget = "1.8"
}
}

dependencies {
testImplementation(Dependency.Test.junit)
testImplementation(Dependency.Test.mockito)
androidTestImplementation(Dependency.Test.androidJunit)
testImplementation(Dependency.Test.mockitoKotlin)
testImplementation(Dependency.Test.mockitoInline)

implementation(Dependency.Coroutine.core)
}
2 changes: 1 addition & 1 deletion data/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
# proguardFiles setting in build.gradle.kts.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
Expand Down
40 changes: 0 additions & 40 deletions di/build.gradle

This file was deleted.

38 changes: 38 additions & 0 deletions di/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
plugins {
id("com.android.library")
kotlin("android")
}

android {
compileSdk = Project.compileSdk

defaultConfig {
minSdk = Project.minSdk
targetSdk = Project.targetSdk
consumerProguardFiles("consumer-rules.pro")
}

buildTypes {
getByName("release") {
isMinifyEnabled = false
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
}
compileOptions {
sourceCompatibility = Project.javaVersion
targetCompatibility = Project.javaVersion
}
kotlinOptions {
jvmTarget = "1.8"
}
}

dependencies {
testImplementation(Dependency.Test.junit)
testImplementation(Dependency.Test.mockito)
androidTestImplementation(Dependency.Test.androidJunit)
testImplementation(Dependency.Test.mockitoKotlin)
testImplementation(Dependency.Test.mockitoInline)

implementation(Dependency.Coroutine.core)
}
2 changes: 1 addition & 1 deletion di/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
# proguardFiles setting in build.gradle.kts.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
Expand Down
40 changes: 0 additions & 40 deletions domain/build.gradle

This file was deleted.

38 changes: 38 additions & 0 deletions domain/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
plugins {
id("com.android.library")
kotlin("android")
}

android {
compileSdk = Project.compileSdk

defaultConfig {
minSdk = Project.minSdk
targetSdk = Project.targetSdk
consumerProguardFiles("consumer-rules.pro")
}

buildTypes {
getByName("release") {
isMinifyEnabled = false
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
}
compileOptions {
sourceCompatibility = Project.javaVersion
targetCompatibility = Project.javaVersion
}
kotlinOptions {
jvmTarget = "1.8"
}
}

dependencies {
testImplementation(Dependency.Test.junit)
testImplementation(Dependency.Test.mockito)
androidTestImplementation(Dependency.Test.androidJunit)
testImplementation(Dependency.Test.mockitoKotlin)
testImplementation(Dependency.Test.mockitoInline)

implementation(Dependency.Coroutine.core)
}
2 changes: 1 addition & 1 deletion domain/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
# proguardFiles setting in build.gradle.kts.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
Expand Down
20 changes: 0 additions & 20 deletions settings.gradle

This file was deleted.

2 changes: 2 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
rootProject.name = "shakeit"
include(":ui", ":domain", ":data", ":webrtc", ":di")
61 changes: 0 additions & 61 deletions ui/build.gradle

This file was deleted.

Loading

0 comments on commit 4f89270

Please sign in to comment.