a couple android ui tweaks

This commit is contained in:
Danny Coates 2018-11-14 21:13:38 -08:00
parent 3dc0ca933b
commit c72e26c192
No known key found for this signature in database
GPG Key ID: 4C442633C62E00CB
3 changed files with 24 additions and 12 deletions

View File

@ -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<WebView>(R.id.webview) as AdvancedWebView
mWebView!!.setListener(this, this)
mWebView!!.setWebChromeClient(LoggingWebChromeClient())

View File

@ -31,13 +31,17 @@ class AndroidIndexPlugin {
<html lang="en-US">
<head>
<title>Firefox Send</title>
<link href="${files['app.css']}" rel="stylesheet">
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1"
/>
<link href="${files['app.css']}" rel="stylesheet" />
<script src="${files['vendor.js']}"></script>
<script src="${assets['public/locales/en-US/send.ftl']}"></script>
<script src="${files['android.js']}"></script>
</head>
<body>
</body>
<body></body>
</html>
`
.toString()

View File

@ -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,