From fbe22f889d3aa005579cd7b76879b69bb5d8db1f Mon Sep 17 00:00:00 2001 From: Daniel LaCosse <3759828+daniellacosse@users.noreply.github.com> Date: Mon, 16 Oct 2023 14:07:57 -0400 Subject: [PATCH] fix --- .../getoutline/sdk/example/connectivity/MobileBackendPlugin.kt | 2 +- .../app_mobile/ios/App/App/MobileBackend.swift | 2 +- .../shared_frontend/pages/connectivity_test/index.ts | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/x/examples/outline-connectivity-app/app_mobile/android/app/src/main/java/org/getoutline/sdk/example/connectivity/MobileBackendPlugin.kt b/x/examples/outline-connectivity-app/app_mobile/android/app/src/main/java/org/getoutline/sdk/example/connectivity/MobileBackendPlugin.kt index f49416a8..495030ea 100644 --- a/x/examples/outline-connectivity-app/app_mobile/android/app/src/main/java/org/getoutline/sdk/example/connectivity/MobileBackendPlugin.kt +++ b/x/examples/outline-connectivity-app/app_mobile/android/app/src/main/java/org/getoutline/sdk/example/connectivity/MobileBackendPlugin.kt @@ -24,7 +24,7 @@ class MobileBackendPlugin: Plugin() { val rawInputMessage = Json.encodeToString( FrontendRequest( call.getString("resourceName")!!, - call.getString("parameters")!! + call.getString("parameters") ?: "{}" ) ) diff --git a/x/examples/outline-connectivity-app/app_mobile/ios/App/App/MobileBackend.swift b/x/examples/outline-connectivity-app/app_mobile/ios/App/App/MobileBackend.swift index 899b50c9..67496df6 100644 --- a/x/examples/outline-connectivity-app/app_mobile/ios/App/App/MobileBackend.swift +++ b/x/examples/outline-connectivity-app/app_mobile/ios/App/App/MobileBackend.swift @@ -38,7 +38,7 @@ public class MobileBackendPlugin: CAPPlugin { let rawRequest = try encoder.encode( FrontendRequest( resourceName: call.getString("resourceName")!, - parameters: call.getString("parameters")! + parameters: call.getString("parameters") ?? "{}" ) ) diff --git a/x/examples/outline-connectivity-app/shared_frontend/pages/connectivity_test/index.ts b/x/examples/outline-connectivity-app/shared_frontend/pages/connectivity_test/index.ts index 48f3a3ad..4cb6095a 100644 --- a/x/examples/outline-connectivity-app/shared_frontend/pages/connectivity_test/index.ts +++ b/x/examples/outline-connectivity-app/shared_frontend/pages/connectivity_test/index.ts @@ -597,7 +597,6 @@ export class ConnectivityTestPage extends LitElement { render() { // TODO: move language definitions to a centralized place return html`
- ${this.renderPlatformStyles()}

${msg("Outline Connectivity Test")}