Gradle for submodules

This commit is contained in:
Denis Karmyshakov 2018-08-21 15:16:24 +03:00 committed by Denis Karmyshakov
parent 4e81ba9c9a
commit 1d6d6d06be
14 changed files with 49 additions and 23 deletions

View File

@ -18,7 +18,7 @@ repositories {
}
dependencies {
api project(":storable")
api project(":components-storable")
api 'net.danlew:android.joda:2.9.9.4'
implementation "com.android.support:support-annotations:$versions.supportLibrary"

View File

@ -15,7 +15,7 @@ android {
}
dependencies {
api project(":navigation")
api project(":components-navigation")
compileOnly "javax.inject:javax.inject:1"

View File

@ -10,8 +10,8 @@ android {
}
dependencies {
api project(":utils")
api project(":logging")
api project(":components-utils")
api project(":components-logging")
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

View File

@ -9,10 +9,10 @@ import io.reactivex.Single
import io.reactivex.disposables.Disposable
import ru.touchin.livedata.destroyable.BaseDestroyable
import ru.touchin.livedata.destroyable.Destroyable
import ru.touchin.livedata.event.CompletableEvent
import ru.touchin.livedata.event.MaybeEvent
import ru.touchin.livedata.event.ObservableEvent
import ru.touchin.livedata.event.SingleEvent
import ru.touchin.templates.livedata.event.CompletableEvent
import ru.touchin.templates.livedata.event.MaybeEvent
import ru.touchin.templates.livedata.event.ObservableEvent
import ru.touchin.templates.livedata.event.SingleEvent
class BaseLiveDataDispatcher(private val destroyable: BaseDestroyable = BaseDestroyable()) : LiveDataDispatcher, Destroyable by destroyable {

View File

@ -7,10 +7,10 @@ import io.reactivex.Maybe
import io.reactivex.Observable
import io.reactivex.Single
import io.reactivex.disposables.Disposable
import ru.touchin.livedata.event.CompletableEvent
import ru.touchin.livedata.event.MaybeEvent
import ru.touchin.livedata.event.ObservableEvent
import ru.touchin.livedata.event.SingleEvent
import ru.touchin.templates.livedata.event.CompletableEvent
import ru.touchin.templates.livedata.event.MaybeEvent
import ru.touchin.templates.livedata.event.ObservableEvent
import ru.touchin.templates.livedata.event.SingleEvent
interface LiveDataDispatcher {

View File

@ -1,4 +1,4 @@
package ru.touchin.livedata.event
package ru.touchin.templates.livedata.event
/**
* Event class that emits from [io.reactivex.Completable].

View File

@ -1,4 +1,4 @@
package ru.touchin.livedata.event
package ru.touchin.templates.livedata.event
/**
* Event class that emits from [io.reactivex.Maybe].

View File

@ -1,4 +1,4 @@
package ru.touchin.livedata.event
package ru.touchin.templates.livedata.event
/**
* Event class that emits from [io.reactivex.Observable].

View File

@ -1,4 +1,4 @@
package ru.touchin.livedata.event
package ru.touchin.templates.livedata.event
/**
* Event class that emits from [io.reactivex.Single].

24
modules.gradle Normal file
View File

@ -0,0 +1,24 @@
final String rootDir
if (gradle.ext.has('componentsRoot')) {
rootDir = gradle.ext['componentsRoot']
} else {
rootDir = settingsDir
}
include ':components-logging'
include ':components-utils'
include ':components-navigation'
include ':components-storable'
include ':components-api-logansquare'
include ':components-lifecycle-common'
include ':components-lifecycle-rx'
include ':components-views'
project(':components-utils').projectDir = new File(rootDir, 'utils')
project(':components-logging').projectDir = new File(rootDir, 'logging')
project(':components-navigation').projectDir = new File(rootDir, 'navigation')
project(':components-storable').projectDir = new File(rootDir, 'storable')
project(':components-api-logansquare').projectDir = new File(rootDir, 'api-logansquare')
project(':components-lifecycle-common').projectDir = new File(rootDir, 'lifecycle-common')
project(':components-lifecycle-rx').projectDir = new File(rootDir, 'lifecycle-rx')
project(':components-views').projectDir = new File(rootDir, 'views')

View File

@ -15,8 +15,8 @@ android {
}
dependencies {
api project(":utils")
api project(":logging")
api project(":components-utils")
api project(":components-logging")
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

View File

@ -1 +1,3 @@
include ':sample', ':utils', ':logging', ':navigation', ':storable', ':api-logansquare', ':lifecycle-common', ':lifecycle-rx', ':views'
apply from: 'modules.gradle'
include 'sample'

View File

@ -14,8 +14,8 @@ android {
}
dependencies {
api project(":utils")
api project(":logging")
api project(":components-utils")
api project(":components-logging")
implementation "com.android.support:support-annotations:$versions.supportLibrary"

View File

@ -14,8 +14,8 @@ android {
}
dependencies {
api project(":utils")
api project(":logging")
api project(":components-utils")
api project(":components-logging")
implementation "com.android.support:design:$versions.supportLibrary"
}