Skip to content

Instantly share code, notes, and snippets.

@vivek1794
Last active December 23, 2018 04:48
Show Gist options
  • Save vivek1794/f7d619b8c9a9f3c45166fd3c771bebbc to your computer and use it in GitHub Desktop.
Save vivek1794/f7d619b8c9a9f3c45166fd3c771bebbc to your computer and use it in GitHub Desktop.
package xyz.vivekc.shared
//Mark the function dependent on platform implementation to be `expect`
expect fun getCurrentDate(): String
//This is the function which would be called by the Android or iOS app
fun getDate(): String {
return "Today's Date is ${getCurrentDate()}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment