Giter VIP home page Giter VIP logo

firebase-kmp's Introduction

This repo host a Swift Package with the implementation of the abstract KMP module located at: https://github.com/pablichjenkov/macao-marketplace/blob/dev/auth-firebase/src/iosMain/kotlin/com/macaosoftware/plugin/account/FirebaseAuthKmpWrapper.kt
This package is a wrapper of the Firebase Authorization swift API defined in above link.

Kotlin can't talk to swift directly but can consume a Kotlin interface which implementation is made with swift. This project is a proof of concept on how to host an SPM package in a different repo than composeApp. To consume this package from a KMP project, there are some requirements to be met:

  1. The KMP project umbrella module has to be named composeApp.

    As of now, by convention, KMP can only export 1 framework to the iOS integration App, so we agree on the swift module to import composeApp as the provider of the KMP interfaces.

  2. The KMP abstraction module has to be included in gradle as api(...) and not as implementation(...).

    This is because we have to export that module and only dependencies consumed as api(...) can be exported to the umbrella module.

That is all you need.

firebase-kmp's People

Contributors

pablichjenkov avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.