Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/touchlab/firestorekmp
Firestore KMP Library
https://github.com/touchlab/firestorekmp
kotlin-multiplatform kotlin-native
Last synced: 3 months ago
JSON representation
Firestore KMP Library
- Host: GitHub
- URL: https://github.com/touchlab/firestorekmp
- Owner: touchlab-lab
- Archived: true
- Created: 2019-07-21T15:30:38.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-06T20:02:47.000Z (over 4 years ago)
- Last Synced: 2024-05-21T15:19:41.194Z (6 months ago)
- Topics: kotlin-multiplatform, kotlin-native
- Language: Objective-C
- Homepage: https://touchlab.co
- Size: 452 KB
- Stars: 46
- Watchers: 3
- Forks: 8
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-kotlin-multiplatform - FirestoreKMP - Firestore KMP Library (Libraries / Utility)
README
# Firestore SDK for Kotlin Multiplatform
## Not Supported!
This library was produced for a client project, but open sourced in support of a talk on [Kotlin Multiplatform library development](https://vimeo.com/371460823). We don't plan for ongoing support, unless there is renewed client interest.
## Overview
Library wrapping the Firestore SDK for Kotlin Multiplatform with clients for Android and iOS. Shared common code can
run methods that get delegated to the platform specific SDKs.## Usage
Use Koltin 1.3.50.
Dependency config
```groovy
sourceSets {
commonMain {
dependencies {
implementation 'co.touchlab:firestore:0.2.5'
}
}
}
```You'll need to config both Android and iOS as you normally would for Firestore, but then you should be able to get the
Firestore instance like this.```kotlin
getFirebaseInstance()
```Then you can do Firestore things.
## Droidcon
[See live example here](https://github.com/touchlab/DroidconKotlin/blob/master/sessionize/lib/src/commonMain/kotlin/co/touchlab/sessionize/SponsorModel.kt#L25)