Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/florent37/Multiplatform-Bus

Kotlin event-bus compatible with Android & native iOS
https://github.com/florent37/Multiplatform-Bus

android bus center event eventbus ios java kotlin lambda message native notification otto

Last synced: about 20 hours ago
JSON representation

Kotlin event-bus compatible with Android & native iOS

Awesome Lists containing this project

README

        

# Multiplatform Bus

Kotlin event-bus compatible with Android & iOS

```
val bus = Bus.getDefault()

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

}

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

# Download

Add the repository
```groovy
repositories {
maven { url "https://dl.bintray.com/florent37/maven" }
}
```

## common

[ ![Download](https://api.bintray.com/packages/florent37/maven/multiplatform-bus/images/download.svg) ](https://bintray.com/florent37/maven/multiplatform-bus/_latestVersion)

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

## ios

[ ![Download](https://api.bintray.com/packages/florent37/maven/multiplatform-bus/images/download.svg) ](https://bintray.com/florent37/maven/multiplatform-bus/_latestVersion)

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

## android

[ ![Download](https://api.bintray.com/packages/florent37/maven/multiplatform-bus/images/download.svg) ](https://bintray.com/florent37/maven/multiplatform-bus/_latestVersion)

```groovy
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.