diff --git a/ReactiveAndroid-UI/build.gradle b/ReactiveAndroid-UI/build.gradle index 4d358f3..deff328 100644 --- a/ReactiveAndroid-UI/build.gradle +++ b/ReactiveAndroid-UI/build.gradle @@ -1,6 +1,10 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' +apply plugin: 'com.github.dcendents.android-maven' + +group='com.github.kittinunf' + android { compileSdkVersion 23 buildToolsVersion "23.0.2" diff --git a/ReactiveAndroid-UI/src/test/kotlin/com/github/kittinunf/reactiveandroid/view/ViewEventTest.kt b/ReactiveAndroid-UI/src/test/kotlin/com/github/kittinunf/reactiveandroid/view/ViewEventTest.kt index 5e95e69..58b21d4 100644 --- a/ReactiveAndroid-UI/src/test/kotlin/com/github/kittinunf/reactiveandroid/view/ViewEventTest.kt +++ b/ReactiveAndroid-UI/src/test/kotlin/com/github/kittinunf/reactiveandroid/view/ViewEventTest.kt @@ -30,4 +30,5 @@ class ViewEventTest { assertThat(result, isEqualTo(true)) } + } diff --git a/ReactiveAndroid-UI/src/test/kotlin/com/github/kittinunf/reactiveandroid/view/ViewPropertyTest.kt b/ReactiveAndroid-UI/src/test/kotlin/com/github/kittinunf/reactiveandroid/view/ViewPropertyTest.kt index f4c375c..879b2b3 100644 --- a/ReactiveAndroid-UI/src/test/kotlin/com/github/kittinunf/reactiveandroid/view/ViewPropertyTest.kt +++ b/ReactiveAndroid-UI/src/test/kotlin/com/github/kittinunf/reactiveandroid/view/ViewPropertyTest.kt @@ -46,4 +46,9 @@ class ViewPropertyTest { assertThat(result, isEqualTo(0f)) } + @Test + fun background() { + + } + } \ No newline at end of file diff --git a/ReactiveAndroid/src/main/kotlin/com/github/kittinunf/reactiveandroid/Property.kt b/ReactiveAndroid/src/main/kotlin/com/github/kittinunf/reactiveandroid/Property.kt index 7b577bb..74afeba 100644 --- a/ReactiveAndroid/src/main/kotlin/com/github/kittinunf/reactiveandroid/Property.kt +++ b/ReactiveAndroid/src/main/kotlin/com/github/kittinunf/reactiveandroid/Property.kt @@ -78,6 +78,9 @@ class Property(private val init: T) : PropertyType { class MutableProperty(private val init: T) : MutablePropertyType { + override val observable: Observable + get() = sink + override var value: T = init get() = synchronized(this) { field } set(value) { @@ -87,9 +90,6 @@ class MutableProperty(private val init: T) : MutablePropertyType { } } - override val observable: Observable - get() = sink - private val sink = BehaviorSubject.create(init) private val subscriptions = CompositeSubscription() diff --git a/build.gradle b/build.gradle index 2f899d9..b9179ab 100644 --- a/build.gradle +++ b/build.gradle @@ -9,6 +9,8 @@ buildscript { classpath 'com.novoda:bintray-release:0.3.4' + classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3' + // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files }