Compare commits
No commits in common. "afff6932318613783082bd5a2ff9967539b2dd06" and "adedfa45e1f41e8a035a2b3dabc582f1d48ecda8" have entirely different histories.
afff693231
...
adedfa45e1
@ -205,32 +205,30 @@ internal class MainActivity : ComponentActivity
|
|||||||
}
|
}
|
||||||
} catch (e: WebIdMobileAppSdkException) {
|
} catch (e: WebIdMobileAppSdkException) {
|
||||||
e.printStackTrace()
|
e.printStackTrace()
|
||||||
showResult(getString(R.string.start_failed) + e.message.toString())
|
showResult(e.message.toString())
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
val metaPluginVerifyError = result.errorResult
|
val metaPluginVerifyError = result.errorResult
|
||||||
showResult(getString(R.string.verification_failed) + metaPluginVerifyError.toString())
|
showResult(metaPluginVerifyError.toString())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun onPluginResultCallback(activityResult: ActivityResult) {
|
private fun onPluginResultCallback(activityResult: ActivityResult) {
|
||||||
val metaPluginActivityResult = activityResult
|
|
||||||
var result: String?
|
var result: String?
|
||||||
try {
|
try {
|
||||||
// Get data and handle potential null case
|
// Get data and handle potential null case
|
||||||
// If data is null, plugin was interrupted
|
// If data is null, plugin was interrupted
|
||||||
val data: Intent = metaPluginActivityResult.data ?: throw WebIdPluginInterruptedException()
|
val data: Intent = activityResult.data ?: throw WebIdPluginInterruptedException()
|
||||||
// Retrieve the plugin result and handle any errors
|
// Retrieve the plugin result and handle any errors
|
||||||
val pluginResult: ProductPluginResult<*> = getProductPluginResult<IEPluginError>(
|
val pluginResult: ProductPluginResult<*> = getProductPluginResult<IEPluginError>(
|
||||||
data, metaPluginActivityResult.resultCode
|
data, activityResult.resultCode
|
||||||
)
|
)
|
||||||
val resultInfo: String? = pluginResult.info
|
val resultInfo: String? = pluginResult.info
|
||||||
val failReason: ProductPluginErrorResult<*>? = pluginResult.error
|
val failReason: ProductPluginErrorResult<*>? = pluginResult.error
|
||||||
// Successful plugin execution
|
// Successful plugin execution
|
||||||
if (failReason == null) {
|
if (failReason == null) {
|
||||||
showResult(getString(R.string.product_journey_finished_successfully) + "\n")
|
result = "Success"
|
||||||
result = getString(R.string.success)
|
|
||||||
if (resultInfo != null) {
|
if (resultInfo != null) {
|
||||||
result += " $resultInfo"
|
result += " $resultInfo"
|
||||||
// your code to handle the successful plugin execution
|
// your code to handle the successful plugin execution
|
||||||
@ -238,7 +236,6 @@ internal class MainActivity : ComponentActivity
|
|||||||
showResult(result)
|
showResult(result)
|
||||||
} else {
|
} else {
|
||||||
// failure case
|
// failure case
|
||||||
showResult(getString(R.string.product_journey_finished_with_failure))
|
|
||||||
if (failReason.specificResult != null) {
|
if (failReason.specificResult != null) {
|
||||||
val specificResult: IEPluginError? =
|
val specificResult: IEPluginError? =
|
||||||
failReason.specificResult as IEPluginError?
|
failReason.specificResult as IEPluginError?
|
||||||
|
|||||||
@ -12,10 +12,4 @@
|
|||||||
<string name="choose_theming">Theme auswählen:</string>
|
<string name="choose_theming">Theme auswählen:</string>
|
||||||
<string name="choose_theming_compose">Theme mit Compose</string>
|
<string name="choose_theming_compose">Theme mit Compose</string>
|
||||||
<string name="choose_theming_xml">Theme mit XML</string>
|
<string name="choose_theming_xml">Theme mit XML</string>
|
||||||
<string name="verification_successful">Überprüfung erfolgreich</string>
|
|
||||||
<string name="verification_failed">Überprüfung fehlgeschlagen:</string>
|
|
||||||
<string name="start_failed">Start fehlgeschlagen:\n</string>
|
|
||||||
<string name="product_journey_finished_successfully">Die Product Journey wurde erfolgreich abgeschlossen</string>
|
|
||||||
<string name="product_journey_finished_with_failure">Die Product Journey endete mit Misserfolg:</string>
|
|
||||||
<string name="success">"Erfolg: "</string>
|
|
||||||
</resources>
|
</resources>
|
||||||
@ -12,10 +12,4 @@
|
|||||||
<string name="choose_theming">Elige un tema</string>
|
<string name="choose_theming">Elige un tema</string>
|
||||||
<string name="choose_theming_compose">Theming with Compose</string>
|
<string name="choose_theming_compose">Theming with Compose</string>
|
||||||
<string name="choose_theming_xml">Theming with XML</string>
|
<string name="choose_theming_xml">Theming with XML</string>
|
||||||
<string name="verification_successful">Verificación correcta</string>
|
|
||||||
<string name="verification_failed">Verificación fallida:</string>
|
|
||||||
<string name="start_failed">Inicio fallido:\n</string>
|
|
||||||
<string name="product_journey_finished_successfully">La Product Journey se ha completado correctamente</string>
|
|
||||||
<string name="product_journey_finished_with_failure">La Product Journey terminó con un error:</string>
|
|
||||||
<string name="success">"Éxito: "</string>
|
|
||||||
</resources>
|
</resources>
|
||||||
@ -12,10 +12,4 @@
|
|||||||
<string name="choose_theming">Choisir le thème</string>
|
<string name="choose_theming">Choisir le thème</string>
|
||||||
<string name="choose_theming_compose">Theming with Compose</string>
|
<string name="choose_theming_compose">Theming with Compose</string>
|
||||||
<string name="choose_theming_xml">Theming with XML</string>
|
<string name="choose_theming_xml">Theming with XML</string>
|
||||||
<string name="verification_successful">Vérification réussie</string>
|
|
||||||
<string name="verification_failed">Échec de la vérification :</string>
|
|
||||||
<string name="start_failed">Échec du démarrage :\n</string>
|
|
||||||
<string name="product_journey_finished_successfully">La Product Journey a été terminée avec succès</string>
|
|
||||||
<string name="product_journey_finished_with_failure">La Product Journey s’est terminée par une erreur :</string>
|
|
||||||
<string name="success">"Succès : "</string>
|
|
||||||
</resources>
|
</resources>
|
||||||
@ -12,10 +12,4 @@
|
|||||||
<string name="choose_theming">Scegli il tema</string>
|
<string name="choose_theming">Scegli il tema</string>
|
||||||
<string name="choose_theming_compose">Theming with Compose</string>
|
<string name="choose_theming_compose">Theming with Compose</string>
|
||||||
<string name="choose_theming_xml">Theming with XML</string>
|
<string name="choose_theming_xml">Theming with XML</string>
|
||||||
<string name="verification_successful">Verifica riuscita</string>
|
|
||||||
<string name="verification_failed">Verifica non riuscita:</string>
|
|
||||||
<string name="start_failed">Avvio non riuscito:\n</string>
|
|
||||||
<string name="product_journey_finished_successfully">La Product Journey è stata completata con successo</string>
|
|
||||||
<string name="product_journey_finished_with_failure">La Product Journey si è conclusa con un errore:</string>
|
|
||||||
<string name="success">"Successo: "</string>+
|
|
||||||
</resources>
|
</resources>
|
||||||
@ -12,11 +12,4 @@
|
|||||||
<string name="choose_theming">Thema kiezen</string>
|
<string name="choose_theming">Thema kiezen</string>
|
||||||
<string name="choose_theming_compose">Theming with Compose</string>
|
<string name="choose_theming_compose">Theming with Compose</string>
|
||||||
<string name="choose_theming_xml">Theming with XML</string>
|
<string name="choose_theming_xml">Theming with XML</string>
|
||||||
<string name="verification_successful">Verificatie geslaagd</string>
|
|
||||||
<string name="verification_failed">Verificatie mislukt:</string>
|
|
||||||
<string name="start_failed">Start mislukt:\n</string>
|
|
||||||
<string name="product_journey_finished_successfully">De Product Journey is met succes voltooid</string>
|
|
||||||
<string name="product_journey_finished_with_failure">De Product Journey is met een fout beëindigd:</string>
|
|
||||||
<string name="success">"Success: "</string>
|
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
@ -12,11 +12,4 @@
|
|||||||
<string name="choose_theming">Wybierz motyw</string>
|
<string name="choose_theming">Wybierz motyw</string>
|
||||||
<string name="choose_theming_compose">Theming with Compose</string>
|
<string name="choose_theming_compose">Theming with Compose</string>
|
||||||
<string name="choose_theming_xml">Theming with XML</string>
|
<string name="choose_theming_xml">Theming with XML</string>
|
||||||
<string name="verification_successful">Weryfikacja zakończona sukcesem</string>
|
|
||||||
<string name="verification_failed">Weryfikacja nie powiodła się:</string>
|
|
||||||
<string name="start_failed">Uruchomienie nie powiodło się:\n</string>
|
|
||||||
<string name="product_journey_finished_successfully">Product Journey została pomyślnie zakończona</string>
|
|
||||||
<string name="product_journey_finished_with_failure">Product Journey zakończyła się błędem:</string>
|
|
||||||
<string name="success">"Sukces: "</string>
|
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
@ -12,10 +12,4 @@
|
|||||||
<string name="choose_theming">Alege tema</string>
|
<string name="choose_theming">Alege tema</string>
|
||||||
<string name="choose_theming_compose">Theming with Compose</string>
|
<string name="choose_theming_compose">Theming with Compose</string>
|
||||||
<string name="choose_theming_xml">Theming with XML</string>
|
<string name="choose_theming_xml">Theming with XML</string>
|
||||||
<string name="verification_successful">Verificare reușită</string>
|
|
||||||
<string name="verification_failed">Verificarea a eșuat:</string>
|
|
||||||
<string name="start_failed">Start eșuat:\n</string>
|
|
||||||
<string name="product_journey_finished_successfully">Product Journey a fost finalizată cu succes</string>
|
|
||||||
<string name="product_journey_finished_with_failure">Product Journey s-a încheiat cu eroare:</string>
|
|
||||||
<string name="success">"Succes: "</string>
|
|
||||||
</resources>
|
</resources>
|
||||||
@ -12,11 +12,4 @@
|
|||||||
<string name="choose_theming">Tema seç</string>
|
<string name="choose_theming">Tema seç</string>
|
||||||
<string name="choose_theming_compose">Theming with Compose</string>
|
<string name="choose_theming_compose">Theming with Compose</string>
|
||||||
<string name="choose_theming_xml">Theming with XML</string>
|
<string name="choose_theming_xml">Theming with XML</string>
|
||||||
<string name="verification_successful">Doğrulama başarılı</string>
|
|
||||||
<string name="verification_failed">Doğrulama başarısız:</string>
|
|
||||||
<string name="start_failed">Başlatma Başarısız:\n</string>
|
|
||||||
<string name="product_journey_finished_successfully">Product Journey başarıyla tamamlandı</string>
|
|
||||||
<string name="product_journey_finished_with_failure">Product Journey bir hatayla sonuçlandı:</string>
|
|
||||||
<string name="success">"Success: "</string>
|
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
@ -11,10 +11,4 @@
|
|||||||
<string name="choose_theming">Choose A Theme:</string>
|
<string name="choose_theming">Choose A Theme:</string>
|
||||||
<string name="choose_theming_compose">Theming with Compose</string>
|
<string name="choose_theming_compose">Theming with Compose</string>
|
||||||
<string name="choose_theming_xml">Theming with XML</string>
|
<string name="choose_theming_xml">Theming with XML</string>
|
||||||
<string name="verification_successful">Verification successful</string>
|
|
||||||
<string name="verification_failed">Verification failed:</string>
|
|
||||||
<string name="start_failed">Start Failed:\n</string>
|
|
||||||
<string name="product_journey_finished_successfully">Product Journey finished successfully</string>
|
|
||||||
<string name="product_journey_finished_with_failure">Product journey finished with failure:</string>
|
|
||||||
<string name="success">"Success: "</string>
|
|
||||||
</resources>
|
</resources>
|
||||||
Loading…
x
Reference in New Issue
Block a user