Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

Kotlin event-bus compatible with Android & native iOS

License

Notifications You must be signed in to change notification settings

florent37/Multiplatform-Bus

Repository files navigation

Multiplatform Bus

Kotlin event-bus compatible with Android & iOS

val bus = Bus.getDefault()

//register to a message
bus.addObserver<Boolean>(this, "my_message_key") { value ->
      
}

//send a message
bus.post("my_message_key", true)

Download

Add the repository

repositories {
    maven { url  "https://dl.bintray.com/florent37/maven" }
}

common

Download

implementation "com.github.florent37:multiplatform-bus:0.0.2"

ios

Download

implementation "com.gitub.florent37:multiplatform-bus-ios:0.0.2"

android

Download

implementation "com.gitub.florent37:multiplatform-bus-android:0.0.2"

License

Copyright 2018 Florent37

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.