Skip to content

Instantly share code, notes, and snippets.

@denschub
Created September 8, 2020 17:02
Show Gist options
  • Save denschub/0cd8c10bd161bc0d12bc7506758bc02d to your computer and use it in GitHub Desktop.
Save denschub/0cd8c10bd161bc0d12bc7506758bc02d to your computer and use it in GitHub Desktop.

Testing a local android-component inside Fenix

  1. Make code changes inside android-components
  2. Patch android-components and increase the version number, see 1_patch_ac.patch.
  3. Build android-components and push your components to your local maven repo, ./gradlew publishToMavenLocal.
  4. Patch Fenix to include your local maven repo (careful, there are two places!) and increase the a-c version number, see 2_patch_fenix.patch
  5. Build and run Fenix.
diff --git a/.buildconfig.yml b/.buildconfig.yml
index 8c2abc6bd..eb2397e27 100644
--- a/.buildconfig.yml
+++ b/.buildconfig.yml
@@ -1,4 +1,4 @@
-componentsVersion: 58.0.0
+componentsVersion: 99.0.0-SNAPSHOT
projects:
concept-awesomebar:
path: components/concept/awesomebar
diff --git a/build.gradle b/build.gradle
index 2a04c2b0b..6309e11c8 100644
--- a/build.gradle
+++ b/build.gradle
@@ -5,6 +5,8 @@ import org.mozilla.fenix.gradle.tasks.GithubDetailsTask
buildscript {
// This logic is duplicated in the allprojects block: I don't know how to fix that.
repositories {
+ mavenLocal()
+
maven {
name "Mozilla Nightly"
url "https://nightly.maven.mozilla.org/maven2"
@@ -78,6 +80,8 @@ plugins {
allprojects {
// This logic is duplicated in the buildscript block: I don't know how to fix that.
repositories {
+ mavenLocal()
+
maven {
name "Mozilla Nightly"
url "https://nightly.maven.mozilla.org/maven2"
diff --git a/buildSrc/src/main/java/AndroidComponents.kt b/buildSrc/src/main/java/AndroidComponents.kt
index 851bb5d31..ba1f57c59 100644
--- a/buildSrc/src/main/java/AndroidComponents.kt
+++ b/buildSrc/src/main/java/AndroidComponents.kt
@@ -3,5 +3,5 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
object AndroidComponents {
- const val VERSION = "58.0.20200906130403"
+ const val VERSION = "99.0.0-SNAPSHOT"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment