From c72e26c19281479cc55e7b2aca7741d08e4a478b Mon Sep 17 00:00:00 2001 From: Danny Coates Date: Wed, 14 Nov 2018 21:13:38 -0800 Subject: [PATCH] a couple android ui tweaks --- .../mozilla/send/sendandroid/MainActivity.kt | 3 +++ build/android_index_plugin.js | 26 +++++++++++-------- postcss.config.js | 7 ++++- 3 files changed, 24 insertions(+), 12 deletions(-) diff --git a/android/app/src/main/java/com/mozilla/send/sendandroid/MainActivity.kt b/android/app/src/main/java/com/mozilla/send/sendandroid/MainActivity.kt index da7d6758..368bfbe7 100644 --- a/android/app/src/main/java/com/mozilla/send/sendandroid/MainActivity.kt +++ b/android/app/src/main/java/com/mozilla/send/sendandroid/MainActivity.kt @@ -47,6 +47,9 @@ class MainActivity : AppCompatActivity(), AdvancedWebView.Listener { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) + // https://developers.google.com/web/tools/chrome-devtools/remote-debugging/webviews + WebView.setWebContentsDebuggingEnabled(true); // TODO only dev builds + mWebView = findViewById(R.id.webview) as AdvancedWebView mWebView!!.setListener(this, this) mWebView!!.setWebChromeClient(LoggingWebChromeClient()) diff --git a/build/android_index_plugin.js b/build/android_index_plugin.js index b1e310e8..d2164ceb 100644 --- a/build/android_index_plugin.js +++ b/build/android_index_plugin.js @@ -28,17 +28,21 @@ class AndroidIndexPlugin { compiler.hooks.emit.tap(NAME, compilation => { const files = chunkFileNames(compilation); const page = html` - - - Firefox Send - - - - - - - - + + + Firefox Send + + + + + + + + + ` .toString() .replace(/\n\s{6}/g, '\n'); diff --git a/postcss.config.js b/postcss.config.js index 822bdd9c..2cd81fe6 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -16,7 +16,12 @@ if (process.env.NODE_ENV === 'development') { } else { options.plugins.push( require('@fullhuman/postcss-purgecss')({ - content: ['./app/*.js', './app/ui/*.js'], + content: [ + './app/*.js', + './app/ui/*.js', + './android/*.js', + './android/pages/*.js' + ], extractors: [ { extractor: TailwindExtractor,