-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need a Kotlin #55
Comments
Maybe in the future. |
Because I'm developing app in kotlin and my clients requirement is that app
should be in pure kotlin no java code. So that's why I'm asking for kotlin
class
…On Wed, 14 Oct 2020, 10:46 am kcochibili, ***@***.***> wrote:
Maybe in the future.
But why do you want it in Kotlin?
Java and Kotlin are interoperable, that means you can easily call java
functions from Kotlin. In this case, you can use TinyDB in your Kotlin code
without issues.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#55 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOWSW73VJYEG6WZSA2KUOU3SKU3L5ANCNFSM4SMWGV6Q>
.
|
When making calls to java class from Kotlin, the code used is the Kotlin equivalents not java. no changes need to be made to a library like this, for your code to be 100 percent Kotlin. here's an example of tinydb being used from Kotlin:
notice all the code is in Kotlin? |
Here it is 👍 /*
/*
import java.io.File //import com.google.gson.Gson; import android.content.Context class TinyDB(appContext: Context?) {
} |
@Dilawar-maavan , 100% in kotlin, yes you can do it. i hope your Code Editor is not VIM or Nano. Because Android Studio already give us that functionality only for a few mouse click. or Shortcut keys (Ctrl + Alt + Shift + K) on Windows. |
Can you guys please provide this class in kotlin?
The text was updated successfully, but these errors were encountered: