Commit Graph

12 Commits

Author SHA1 Message Date
Donovan Preston 74ecb598d2 Fix #1283 Prevent loading any pages other than our file:/// url resources and accounts.firefox.com in the webview
Also, remove debug logs.
2019-04-05 12:18:22 -04:00
Christoph Kührer 48b5d85904 Cleanup Android project (Minor refactorings, etc.) (#1244)
* (Android) Get rid of double bangs by using Kotlin view binding

Instead of holding a nullable reference to the WebView, we are now
accessing the WebView using the view binding utility of Kotlin's
Android Extensions.

Further reading:
https://kotlinlang.org/docs/tutorials/android-plugin.html

* (Android) Enable WebView debugging in debug builds

This enables debugging the app's WebView using Chrome's DevTools.
https://developers.google.com/web/tools/chrome-devtools/remote-debugging/webviews

* (Android) Make MainActivity.kt adhere to common Kotlin conventions

* (Android) Update dependencies and improve formatting of Gradle files

This updates the Kotlin plugin to 1.3.21 and the Gradle plugin to 3.3.2

* (Android) Remove unnecessary ConstraintLayout container

Layout files should generally have as few nested layers as possible,
because every layer affects the performance.

* (Android) Use JSONObject class to construct a JSON string

It is way safer to construct a JSON string using classes that are
meant for doing that, instead of concatenating raw strings.

* (Android) Suppress JavaScript lint warning

* (Android) Use Kotlin string templates instead of concatenating strings

* (Android) Add missing SuppressLint import
2019-04-04 15:25:25 -04:00
Donovan Preston 8c59e54677 Switch the package name, for signing with a new key; switch the server to send.firefox.com 2019-03-12 12:35:45 -04:00
Donovan Preston a30ea6cddc Another slight speed boost (#1176) 2019-02-28 08:29:10 -08:00
Donovan Preston 5b03c64e8d Fix slow upload by turning on hardware accelleration on the webview (#1173) 2019-02-27 16:04:57 -08:00
Donovan Preston a42cec97f3 Fix #1145 Fix the back button after logging in. (#1158)
To do so, we clear the webview history once the login process is complete so that the intermediate redirect urls used by the login process are not in the history.

Also, update the versions of some of the libraries we use.
2019-02-19 09:35:37 -08:00
Danny Coates 36225e4f92 android: exclude self from share intent (#1132) 2019-01-30 15:46:43 -05:00
Donovan Preston d1ea261dea Fixes #1037: Fix back button crasher
Java has nulls, and any object reference in Java can be null, but in Kotlin parameters default to not null unless the type is specified as `Type?`; our override of onActivityResult was specifying the type of the intent parameter as `Intent` instead of `Intent?`, causing an exception before our code was called. Figuring out how to turn on "break on all exceptions" in Android Studio (which is non-trivial for some reason) finally showed me the stack trace.
2019-01-23 10:28:57 -05:00
Danny Coates e954a6cb62
typo. fixes #1100 2019-01-16 14:19:33 -08:00
Donovan Preston af61434b72 Fix #888 Implement share card. 2019-01-16 12:05:39 -05:00
Donovan Preston e55aa7cb86 Use the production fxa server and app id 2018-11-27 18:17:23 -05:00
Donovan Preston d1212540a8 Rename package to org.mozilla.sendandroid per Rename package to org.mozilla.sendandroid per https://bugzilla.mozilla.org/show_bug.cgi?id=1494393#c10 2018-11-27 09:34:51 -05:00