Skip to content
This repository has been archived by the owner on Mar 6, 2019. It is now read-only.

What is the difference between this solution and interfaces solution? #48

Open
amorenew opened this issue Jun 26, 2018 · 5 comments
Open
Labels
question Further information is requested

Comments

@amorenew
Copy link

Hello,
what would be the difference between this approach and using an interface for SQLite commands then you can use a different SQLite library but through the same interface?
I hope my question is clear ..English is not my native language.
1_6w0p-kijnc-ezqjxpaz7ha

@kpgalligan kpgalligan added the question Further information is requested label Jun 26, 2018
@kpgalligan
Copy link
Contributor

That's kind of what it is. The "Kotlin Multi" layer doesn't implement much, and eventually I'd like to be able to swap it out with SQLCipher (or something similar). It is very "Android-like", but delegates to the underlying implementation. That layer, though, is on the list to review. It was done pretty quickly after the iOS implementation to support initial release.

Is that what you're asking?

@amorenew
Copy link
Author

What I mean like React Native cross libraries
For example, a pop dialog is working in android and ios native then react native interface just make a code that matches for both platforms and you can use it same
like these libraries
https://github.com/jacklam718/react-native-popup-dialog
https://github.com/andpor/react-native-sqlite-storage

@amorenew
Copy link
Author

amorenew commented Jun 26, 2018

interface NetworkHelper {
    override fun get(url: String?): String
    override fun post(url: String?, params :String?): String
}

41905364-fe6873b2-794b-11e8-9689-c8a5f32874fe

@kpgalligan
Copy link
Contributor

kpgalligan commented Jun 26, 2018 via email

@amorenew
Copy link
Author

amorenew commented Jun 26, 2018

exactly it uses native code for every platform

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants