Fix the instructions to test Glean in Fenix

This commit is contained in:
Alessio Placitelli 2020-02-12 15:31:11 +01:00
Родитель 41f583603f
Коммит c89f0e90da
1 изменённых файлов: 14 добавлений и 2 удалений

Просмотреть файл

@ -47,10 +47,20 @@ git clone https://github.com/mozilla-mobile/fenix/
3. Inside [`build.gradle`][android-components-build-gradle], add 3. Inside [`build.gradle`][android-components-build-gradle], add
`mavenLocal()` inside `allprojects { repositories { <here> } }`. `mavenLocal()` inside `allprojects { repositories { <here> } }`.
4. Inside the android-component's `local.properties` file, ensure 4. Add the following block in the [`settings.gradle`](https://github.com/mozilla-mobile/android-components/blob/d67f83af679a2e847e5bd284ea4a30b412403241/settings.gradle#L7) file, in order to have the Glean Gradle plugin loaded from the local Maven repository.
```
pluginManagement {
repositories {
mavenLocal()
gradlePluginPortal()
}
}
```
5. Inside the android-component's `local.properties` file, ensure
`substitutions.glean.dir` is *NOT* set. `substitutions.glean.dir` is *NOT* set.
5. Run `./gradlew publishToMavenLocal`. 6. Run `./gradlew publishToMavenLocal`.
3. Inside the `fenix` repository root: 3. Inside the `fenix` repository root:
1. Inside [`build.gradle`][fenix-build-gradle-1], add 1. Inside [`build.gradle`][fenix-build-gradle-1], add
@ -65,6 +75,8 @@ git clone https://github.com/mozilla-mobile/fenix/
Example: `const val mozilla_glean = "22.0.0-TESTING1"` Example: `const val mozilla_glean = "22.0.0-TESTING1"`
3. Change the `Versions.mozilla_android_components.endsWith('-SNAPSHOT')` line in [`app/build.gradle`](https://github.com/mozilla-mobile/fenix/blob/1f250a730d4f1bbd42bc15079eb98d1b01a34cf0/app/build.gradle#L628) to `Versions.mozilla_android_components.endsWith('-TESTING$N')` where `$N` is the number to reference the version you published in part 2.
You should now be able to build and run Fenix (assuming you could before all this). You should now be able to build and run Fenix (assuming you could before all this).
## Caveats ## Caveats