You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use substitute-local-geckoview.gradle from Bug 1533465 for local Ge… (Igalia#1579)
* Use `substitute-local-geckoview.gradle` from Bug 1533465 for local GeckoView substitutions. (Igalia#987)
See discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1533465.
* Handle dependencies substitution in a more standard way
Move geckoViewLocalTopobjdir and geckoViewLocalTopsrcdir to local.properties and handle user.properties the same way.
* Fix servo variable name
Make certain to set the build flavor to `wavevrDebug` in Android Studio before building the project.
102
102
103
-
## Using a custom GeckoView
103
+
## Local Development
104
104
105
-
Create a file called `user.properties` in the top-level project directory. Add a variable called `geckoViewLocalArm` and `geckoViewLocalX86` and set it to the location of your locally built AAR:
105
+
### Dependency substitutions
106
+
107
+
You might be interested in building this project against local versions of some of the dependencies.
108
+
This could be done either by using a [local maven repository](https://mozilla-mobile.github.io/android-components/contributing/testing-components-inside-app) (quite cumbersome), or via Gradle's [dependency substitutions](https://docs.gradle.org/current/userguide/customizing_dependency_resolution_behavior.html) (not at all cumbersome!).
109
+
110
+
Currently, the substitution flow is streamlined for some of the core dependencies via configuration flags in `local.properties`. You can build against a local checkout of the following dependencies by specifying their local paths:
111
+
-[GeckoView](https://hg.mozilla.org/mozilla-central), specifying its path via `dependencySubstitutions.geckoviewTopsrcdir=/path/to/mozilla-central` (and, optionally, `dependencySubstitutions.geckoviewTopobjdir=/path/to/topobjdir`). See [Bug 1533465](https://bugzilla.mozilla.org/show_bug.cgi?id=1533465).
112
+
- This assumes that you have built, packaged, and published your local GeckoView -- but don't worry, the dependency substitution script has the latest instructions for doing that.
113
+
114
+
Do not forget to run a Gradle sync in Android Studio after changing `local.properties`. If you specified any substitutions, they will be reflected in the modules list, and you'll be able to modify them from a single Android Studio window.
0 commit comments