vn.teko.hestia:terra-hestia:1.0.0

New features#

  • Support different authType between host app - mini app

    • none no auth exchange
    • idTokenExchange exchange idToken. Where AppLauncherData.authResult is IdTokenExchangeAuthResult
  • Support displayInfo in mini-app data. Which store name, iconUrl and order

  • Support different config fields for payment (use internally)

Changes#

For host-app#

  • New way to use startApp:
TerraHestia.getInstance().startApp(
appCode = "<mini_app_code>",
appType = AppType.NativeAndroid, // pass the type of this mini-app here
extraConfig = mapfOf<String, String>(), // optional
callback = object : HestiaCallback { // optional
override fun onSuccess() {
// handle success
}
override fun onError(error: HestiaError) {
// handle error
}
}
)

For mini-app#

  • Remove interface vn.teko.hestia.android.AndroidAppLauncher. Please use interface vn.teko.hestia.android.nativelib.AndroidNativeAppLauncher from package vn.teko.hestia:hestia-android-native instead. For detail please check hesta-android-native 1.0.0

  • Change vn.teko.hestia.android.model.AppLauncherData: remove field idToken. Now get the idToken as follow

val idToken = (appLauncherData.authResult as? IdTokenExchangeAuthResult)?.idToken

Bug fixes#

No bug fixes