From 3208711d93a9e0e64ee8df8266553f46cae299ae Mon Sep 17 00:00:00 2001 From: Shahroz Khan Date: Sat, 26 Oct 2024 03:52:29 +0500 Subject: [PATCH] update version --- .../java/io/customer/messaginginapp/gist/GistEnvironment.kt | 4 ++-- .../messaginginapp/gist/presentation/engine/EngineWebView.kt | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/messaginginapp/src/main/java/io/customer/messaginginapp/gist/GistEnvironment.kt b/messaginginapp/src/main/java/io/customer/messaginginapp/gist/GistEnvironment.kt index 3ac131ff..79e6d413 100644 --- a/messaginginapp/src/main/java/io/customer/messaginginapp/gist/GistEnvironment.kt +++ b/messaginginapp/src/main/java/io/customer/messaginginapp/gist/GistEnvironment.kt @@ -10,7 +10,7 @@ enum class GistEnvironment : GistEnvironmentEndpoints { DEV { override fun getGistQueueApiUrl() = "https://gist-queue-consumer-api.cloud.dev.gist.build" override fun getEngineApiUrl() = "https://engine.api.dev.gist.build" - override fun getGistRendererUrl() = "https://renderer.gist.build/beta" + override fun getGistRendererUrl() = "https://renderer.gist.build/3.0" }, LOCAL { @@ -22,6 +22,6 @@ enum class GistEnvironment : GistEnvironmentEndpoints { PROD { override fun getGistQueueApiUrl() = "https://gist-queue-consumer-api.cloud.gist.build" override fun getEngineApiUrl() = "https://engine.api.gist.build" - override fun getGistRendererUrl() = "https://renderer.gist.build/2.0" + override fun getGistRendererUrl() = "https://renderer.gist.build/3.0" } } diff --git a/messaginginapp/src/main/java/io/customer/messaginginapp/gist/presentation/engine/EngineWebView.kt b/messaginginapp/src/main/java/io/customer/messaginginapp/gist/presentation/engine/EngineWebView.kt index 17338717..3da3185c 100644 --- a/messaginginapp/src/main/java/io/customer/messaginginapp/gist/presentation/engine/EngineWebView.kt +++ b/messaginginapp/src/main/java/io/customer/messaginginapp/gist/presentation/engine/EngineWebView.kt @@ -96,6 +96,7 @@ internal class EngineWebView @JvmOverloads constructor( it.webViewClient = object : WebViewClient() { override fun onPageFinished(view: WebView, url: String?) { + // post message to webview with the configuration data so that the message can be rendered val script = """ window.postMessage($jsonString, '*'); """.trim()