From 5796566137995c8d244720f87ba85bce0e0d2f00 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Sat, 3 Jun 2017 00:22:10 -0700 Subject: css updates and beginning login migration --- app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt (limited to 'app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt') diff --git a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt new file mode 100644 index 00000000..8be4e278 --- /dev/null +++ b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt @@ -0,0 +1,13 @@ +package com.pitchedapps.frost.web + +import android.webkit.JavascriptInterface +import com.pitchedapps.frost.events.WebLaunchEvent +import org.greenrobot.eventbus.EventBus + +/** + * Created by Allan Wang on 2017-06-01. + */ +class FrostJSI { + @JavascriptInterface + fun loadUrl(url: String) = EventBus.getDefault().post(WebLaunchEvent(url)) +} \ No newline at end of file -- cgit v1.2.3