Gradle for submodules
This commit is contained in:
parent
4e81ba9c9a
commit
1d6d6d06be
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ android {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
api project(":navigation")
|
||||
api project(":components-navigation")
|
||||
|
||||
compileOnly "javax.inject:javax.inject:1"
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
package ru.touchin.livedata.event
|
||||
package ru.touchin.templates.livedata.event
|
||||
|
||||
/**
|
||||
* Event class that emits from [io.reactivex.Completable].
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package ru.touchin.livedata.event
|
||||
package ru.touchin.templates.livedata.event
|
||||
|
||||
/**
|
||||
* Event class that emits from [io.reactivex.Maybe].
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package ru.touchin.livedata.event
|
||||
package ru.touchin.templates.livedata.event
|
||||
|
||||
/**
|
||||
* Event class that emits from [io.reactivex.Observable].
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package ru.touchin.livedata.event
|
||||
package ru.touchin.templates.livedata.event
|
||||
|
||||
/**
|
||||
* Event class that emits from [io.reactivex.Single].
|
||||
|
|
@ -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')
|
||||
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1,3 @@
|
|||
include ':sample', ':utils', ':logging', ':navigation', ':storable', ':api-logansquare', ':lifecycle-common', ':lifecycle-rx', ':views'
|
||||
apply from: 'modules.gradle'
|
||||
|
||||
include 'sample'
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue