This repository has been archived by the owner on Jun 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c38b414
commit a3a0d4c
Showing
14 changed files
with
107 additions
and
136 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,36 @@ | ||
# Mach 7 for Android | ||
# Firestore SDK for Kotlin Multiplatform | ||
|
||
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. | ||
|
||
This was originally for a client and now is being used as an example library for a talk on KMP libraries. We'll probably | ||
archive this pretty soon because it'll be a lot of support. | ||
|
||
## 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
firebase-test/src/commonMain/kotlin/sample/ExampleTests.kt
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters