Merge pull request #158 from TouchInstinct/fix/gradle_for_new_modules
fix gradle scripts for new modules
This commit is contained in:
commit
111dd83823
|
|
@ -1,18 +0,0 @@
|
|||
plugins {
|
||||
`kotlin-dsl`
|
||||
`kotlin-dsl-precompiled-script-plugins`
|
||||
}
|
||||
|
||||
repositories {
|
||||
jcenter()
|
||||
google()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation("com.android.tools.build:gradle:4.0.0")
|
||||
|
||||
implementation("com.android.tools.build:gradle-api:4.0.0")
|
||||
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.61")
|
||||
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.61")
|
||||
|
||||
}
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
plugins {
|
||||
id("com.android.application") apply false
|
||||
id("kotlin-android")
|
||||
id("kotlin-android-extensions")
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdkVersion(29)
|
||||
|
||||
defaultConfig {
|
||||
minSdkVersion(21)
|
||||
targetSdkVersion(29)
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
}
|
||||
|
||||
kotlinOptions {
|
||||
jvmTarget = JavaVersion.VERSION_1_8.toString()
|
||||
}
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
implementation-class=plugins.AndroidAppPlugin
|
||||
|
|
@ -0,0 +1,86 @@
|
|||
apply from: "../android-configs/lib-config.gradle"
|
||||
|
||||
dependencies {
|
||||
implementation project(":navigation-base")
|
||||
implementation project(":lifecycle")
|
||||
implementation project(":kotlin-extensions")
|
||||
|
||||
implementation("androidx.core:core-ktx")
|
||||
implementation("androidx.appcompat:appcompat")
|
||||
|
||||
implementation("androidx.fragment:fragment")
|
||||
implementation("androidx.fragment:fragment-ktx")
|
||||
|
||||
implementation("androidx.lifecycle:lifecycle-extensions")
|
||||
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx")
|
||||
implementation("androidx.lifecycle:lifecycle-livedata-ktx")
|
||||
|
||||
implementation("com.google.dagger:dagger")
|
||||
implementation("com.github.valeryponomarenko.componentsmanager:androidx")
|
||||
|
||||
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core")
|
||||
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android")
|
||||
|
||||
def fragmentVersion = "1.2.1"
|
||||
def lifecycleVersion = "2.2.0"
|
||||
def coroutinesVersion = "1.3.7"
|
||||
|
||||
constraints {
|
||||
implementation("androidx.core:core-ktx") {
|
||||
version {
|
||||
require("1.2.0")
|
||||
}
|
||||
}
|
||||
implementation("androidx.appcompat:appcompat") {
|
||||
version {
|
||||
require("1.0.2")
|
||||
}
|
||||
}
|
||||
implementation("androidx.fragment:fragment") {
|
||||
version {
|
||||
require(fragmentVersion)
|
||||
}
|
||||
}
|
||||
implementation("androidx.fragment:fragment-ktx") {
|
||||
version {
|
||||
require(fragmentVersion)
|
||||
}
|
||||
}
|
||||
implementation("androidx.lifecycle:lifecycle-extensions") {
|
||||
version {
|
||||
require(lifecycleVersion)
|
||||
}
|
||||
}
|
||||
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx") {
|
||||
version {
|
||||
require(lifecycleVersion)
|
||||
}
|
||||
}
|
||||
implementation("androidx.lifecycle:lifecycle-livedata-ktx") {
|
||||
version {
|
||||
require(lifecycleVersion)
|
||||
}
|
||||
}
|
||||
implementation("com.google.dagger:dagger") {
|
||||
version {
|
||||
require("2.27")
|
||||
}
|
||||
}
|
||||
implementation("com.github.valeryponomarenko.componentsmanager:androidx") {
|
||||
version {
|
||||
require("2.1.0")
|
||||
}
|
||||
}
|
||||
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core") {
|
||||
version {
|
||||
require(coroutinesVersion)
|
||||
}
|
||||
}
|
||||
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android") {
|
||||
version {
|
||||
require(coroutinesVersion)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
plugins {
|
||||
id(Plugins.ANDROID_LIB_PLUGIN_WITH_DEFAULT_CONFIG)
|
||||
}
|
||||
|
||||
dependencies {
|
||||
androidX()
|
||||
fragment()
|
||||
lifecycle()
|
||||
|
||||
dagger()
|
||||
|
||||
coroutines()
|
||||
}
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
apply from: "../android-configs/lib-config.gradle"
|
||||
|
||||
dependencies {
|
||||
implementation project(":navigation-base")
|
||||
|
||||
implementation("ru.terrakok.cicerone:cicerone")
|
||||
implementation("androidx.fragment:fragment")
|
||||
implementation("com.google.dagger:dagger")
|
||||
|
||||
constraints {
|
||||
implementation("ru.terrakok.cicerone:cicerone") {
|
||||
version {
|
||||
require("5.1.0")
|
||||
}
|
||||
}
|
||||
implementation("androidx.fragment:fragment") {
|
||||
version {
|
||||
require("1.2.1")
|
||||
}
|
||||
}
|
||||
implementation("com.google.dagger:dagger") {
|
||||
version {
|
||||
require("2.27")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
plugins {
|
||||
id(Plugins.ANDROID_LIB_PLUGIN_WITH_DEFAULT_CONFIG)
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementationModule(Module.RoboSwag.NAVIGATION_BASE)
|
||||
implementation(Library.CICERONE)
|
||||
fragment()
|
||||
dagger(withAssistedInject = false)
|
||||
}
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
apply from: "../android-configs/lib-config.gradle"
|
||||
|
||||
dependencies {
|
||||
implementation project(":mvi-arch")
|
||||
implementation project(":recyclerview-adapters")
|
||||
implementation project(":utils")
|
||||
|
||||
implementation("com.google.android.material:material")
|
||||
implementation("androidx.swiperefreshlayout:swiperefreshlayout")
|
||||
implementation("androidx.recyclerview:recyclerview")
|
||||
|
||||
constraints {
|
||||
implementation("com.google.android.material:material") {
|
||||
version {
|
||||
require("1.2.0")
|
||||
}
|
||||
}
|
||||
implementation("androidx.swiperefreshlayout:swiperefreshlayout") {
|
||||
version {
|
||||
require("1.0.0")
|
||||
}
|
||||
}
|
||||
implementation("androidx.recyclerview:recyclerview") {
|
||||
version {
|
||||
require("1.1.0")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
plugins {
|
||||
id(Plugins.ANDROID_LIB_PLUGIN_WITH_DEFAULT_CONFIG)
|
||||
}
|
||||
|
||||
dependencies {
|
||||
mvi()
|
||||
materialDesign()
|
||||
recyclerView()
|
||||
implementationModule(Module.RoboSwag.KOTLIN_EXTENSIONS)
|
||||
implementationModule(Module.RoboSwag.VIEWS)
|
||||
implementationModule(Module.RoboSwag.UTILS)
|
||||
}
|
||||
Loading…
Reference in New Issue