Skip to content

Instantly share code, notes, and snippets.

@qamarelsafadi
Created June 16, 2023 12:12
Show Gist options
  • Save qamarelsafadi/582c5e73f613212215df5289eb65403f to your computer and use it in GitHub Desktop.
Save qamarelsafadi/582c5e73f613212215df5289eb65403f to your computer and use it in GitHub Desktop.
init {
System.loadLibrary("native-lib")
}
external fun secureText(): String
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContent {
MyApplicationTheme {
// A surface container using the 'background' color from the theme
Surface(
modifier = Modifier.fillMaxSize(),
color = MaterialTheme.colorScheme.background
) {
Greeting(secureText())
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment