Mobile/GeckoView: Difference between revisions

Line 31: Line 31:
== Example App ==
== Example App ==


The example app is a bare bones Android app that uses GeckoView. Clone the [https://github.com/mfinkle/geckobrowser GeckoBrowser] repository and follow the instructions above to add the GeckoView library to the app. Alternatively, you can use [https://github.com/fred-wang/geckobrowser this fork], which allows to download the dependencies and build the GeckoBrowser app "à la make".
Firefox Focus has a build variant that uses Gecko. To build, check out the Focus code from <code>https://github.com/mozilla-mobile/focus-android</code> and follow the [https://github.com/mozilla-mobile/focus-android/blob/master/README.md instructions]. The only difference is you need to select one of the Gecko build variants from the Android Studio 'Build' menu.


When running, it looks as such:
The Gecko-related code for Focus lives in [https://github.com/mozilla-mobile/focus-android/blob/90bf62d89919d5ae2d8bd95954491264dcbe1bba/app/src/gecko/java/org/mozilla/focus/web/WebViewProvider.java WebViewProvider.java]
 
[[File:Geckoview_example.png|400px]]


== Known Issues ==
== Known Issues ==
Confirmed users
414

edits