FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

florent37/Multiplatform-Bus: Kotlin event-bus compatible with Android & native iOS · GitHub

This repository was archived by the owner on Feb 8, 2022. It is now read-only.

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

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

ios

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

android

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.

About

Kotlin event-bus compatible with Android & native iOS

Topics

Resources

Stars

47 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages


Back | FazBrowse Home | New Git URL