Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/florent37/Multiplatform-Bus
- Owner: florent37
- License: apache-2.0
- Archived: true
- Created: 2018-11-12T12:34:01.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-18T14:41:20.000Z (over 4 years ago)
- Last Synced: 2024-08-02T09:26:48.733Z (3 months ago)
- Topics: android, bus, center, event, eventbus, ios, java, kotlin, lambda, message, native, notification, otto
- Language: Kotlin
- Homepage:
- Size: 184 KB
- Stars: 44
- Watchers: 5
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: ReadMe.md
- License: LICENSE
Awesome Lists containing this project
- awesome-kotlin-multiplatform - Multiplatform-Bus - Kotlin event-bus compatible with Android & native iOS. (Libraries / Utility)
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.