Граф коммитов

56 Коммитов

Автор SHA1 Сообщение Дата
Aaditya Dhingra 4ca584e36d Bug 1894704 - Check if the gradle extension mozconfig property is set and only apply mozconfig.gradle when it is not available. r=gl,geckoview-reviewers,android-reviewers,ohall
Differential Revision: https://phabricator.services.mozilla.com/D217170
2024-08-19 15:24:50 +00:00
Lina Butler 3a17ce396e Bug 1895781 - Move the App Services and Glean auto-publish logic to its own settings file. r=nalexander
This commit factors out the logic into its own settings file, adds
docs, and only imports the settings file into applications that
consume App Services and Glean via Maven (i.e., not GeckoView).

Differential Revision: https://phabricator.services.mozilla.com/D209897
2024-05-10 06:21:28 +00:00
Cristian Tuns b636f63a07 Backed out 3 changesets (bug 1895781) for causing gradle-dependencies failures CLOSED TREE
Backed out changeset eccc129ad554 (bug 1895781)
Backed out changeset 2ffa0d4d2326 (bug 1895781)
Backed out changeset 278306033d92 (bug 1895781)
2024-05-09 19:26:48 -04:00
Lina Butler 29399ad0cc Bug 1895781 - Move the App Services and Glean auto-publish logic to its own settings file. r=nalexander
This commit factors out the logic into its own settings file, adds
docs, and only imports the settings file into applications that
consume App Services and Glean via Maven (i.e., not GeckoView).

Differential Revision: https://phabricator.services.mozilla.com/D209897
2024-05-09 22:48:18 +00:00
Gabriel Luong 10bf459698 Bug 1876335 - use GRADLE_MAVEN_REPOSITORIES in more places. r=owlish,geckoview-reviewers,nalexander,tthibaud,android-reviewers
To ensure that we can build offline, we need to prevent gradle from
going through remote maven repos directly.

That means also overriding the default plugin repository
(plugins.gradle.org) in the `pluginManagement` section.

Differential Revision: https://phabricator.services.mozilla.com/D201497
2024-01-18 15:38:47 +01:00
Gabriel Luong d28cff8009 Bug 1822393 - Support Focus consuming GeckoView directly. r=owlish,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D201495
2023-12-19 14:00:04 -05:00
Gabriel Luong a4eecece6d Bug 1822393 - Support Fenix consuming GeckoView directly. r=owlish,nalexander,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D201493
2023-12-15 04:19:16 -05:00
Gabriel Luong fba485ef7e Bug 1870123 - Remove the GitHubPlugin and GithubDetailsTask. r=owlish,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D201490
2023-12-18 12:55:16 -05:00
Gabriel Luong 52bb5c21a8 Bug 1822393 - Support Android Components consuming GeckoView directly. r=nalexander,geckoview-reviewers,tthibaud,android-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D201483
2023-12-07 16:19:43 -05:00
Gabriel Luong 0e54430926 Bug 1867656 - Refactor loading the mozconfig to shared-settings.gradle. r=nalexander,owlish,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D201482
2023-12-07 16:19:37 -05:00
Kagami Sascha Rosylight ede511b1ea Bug 1846523 - Call `python mach` on Windows from settings.gradle r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D185047
2023-08-01 18:26:32 +00:00
Kagami Sascha Rosylight d2a61d9c63 Bug 1844838 - Use default python3 outside MozillaBuild on Windows r=m_kato,geckoview-reviewers
The current method fails when Mach is called outside MozillaBuild (https://firefox-source-docs.mozilla.org/mach/windows-usage-outside-mozillabuild.html), as `./mach environment` called inside gradle uses different Python and causes conflict in `~/.mozbuild`.

Differential Revision: https://phabricator.services.mozilla.com/D184255
2023-07-24 03:01:03 +00:00
Gabriel Luong 45e8c44ba3 Bug 1828719 - Remove omnijar Gradle project from srcdir r=geckoview-reviewers,nalexander,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D175790
2023-04-18 23:20:43 +00:00
Makoto Kato fa9e8b41cc Bug 1740799 - Add android-format lint test. r=nalexander,linter-reviewers,sylvestre
To run unit test for android-format lint, we have to add another simple Gradle
project. It is runs with specific parameter (`androidFormatLintTest`), so
`./mach build` etc doesn't run it.

Also `type:global`'s lint doesn't have any test framework, so I will add it.

Differential Revision: https://phabricator.services.mozilla.com/D162181
2022-11-18 00:55:03 +00:00
Makoto Kato 020bef252f Bug 1753914 - ./mach environment is failed in gradle task on Windows. r=nalexander
When driver letter is upper case, `commandLine.execute` seems to be failed.
So I would like to change MOZILLABUILD environment variable to lower case.

Differential Revision: https://phabricator.services.mozilla.com/D137976
2022-02-08 06:19:41 +00:00
Agi Sferro 53378a9401 Bug 1745246 - Move org/mozilla/thirdparty to it's own module. r=calu
This allows us to decouple GeckoView from exoplayer2, have it's own Java
settings and not pollute GeckoView's dependencies.

Differential Revision: https://phabricator.services.mozilla.com/D133792
2022-01-11 19:16:02 +00:00
Agi Sferro dccddb81bc Bug 1529082 - Move TestRunnerActivity to test_runner. r=ahal,owlish
The fact that the test runner app is defined inside the geckoview test package
has always felt like a hack to me. I've mistakenly thought that
TestRunnerActivity was used in GeckoView's junit tests many times (even though
that's not the case).

From what I can see, there's no way to generate an AAB package for androidTest,
so to be able to run Gecko tests as AAB we finally need to define the
TestRunner as an ordinary package instead.

Differential Revision: https://phabricator.services.mozilla.com/D127320
2021-11-02 18:56:26 +00:00
Makoto Kato 1fa2081068 Bug 1737195 - Allow GV artifact build on Windows workstation again. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D129233
2021-10-25 03:16:58 +00:00
Agi Sferro 1f930e4253 Bug 1557796 - Custom mozconfig for gradle build. r=nalexander,owlish
This patch introduces a new local.settings field: mozilla-central.mozconfig.

This field can be used to set a custom mozconfig file for the gradle build (and
for Android Studio).

The environment variable MOZCONFIG will take precedence over what is defined in
local.settings to allow Gecko engineers to use multiple mozconfig files.

Co-Authored-By: Nick Alexander <nalexander@mozilla.com>

Differential Revision: https://phabricator.services.mozilla.com/D124830
2021-09-29 17:54:57 +00:00
Agi Sferro a2ff77838c Bug 1727577 - Improve no-topobjdir experience in Android Studio. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D123649
2021-08-30 19:30:01 +00:00
Butkovits Atila e42d7aa018 Backed out 5 changesets (bug 1727438, bug 1727577) for causing Android bustage. CLOSED TREE
Backed out changeset 552d8919435c (bug 1727577)
Backed out changeset 59d1a463178b (bug 1727438)
Backed out changeset 8cba5f574196 (bug 1727438)
Backed out changeset 00d32a3af979 (bug 1727438)
Backed out changeset efda82445d85 (bug 1727438)
2021-08-26 03:33:58 +03:00
Agi Sferro d9a2884375 Bug 1727577 - Improve no-topobjdir experience in Android Studio. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D123649
2021-08-25 21:02:19 +00:00
Csoregi Natalia 5106918e11 Backed out changeset d0ff30e1d830 (bug 1650692) for toolchains failures on ImageDecoderTest.kt. CLOSED TREE 2020-07-15 07:42:37 +03:00
Tiger Oakes f543954b4b Bug 1650692 - ImageDecoder improvements, r=agi,geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D82308
2020-07-15 03:14:54 +00:00
Emily Toop 6364098a35 Bug 1598010 - Move examples into mozilla-central r=agi
Examples are currently in github. They should be kept alongside the documentation and code and built along with other projects in Android Studio.

Differential Revision: https://phabricator.services.mozilla.com/D53978

--HG--
extra : moz-landing-system : lando
2019-11-22 13:30:57 +00:00
Daniel Varga 5500ea37d1 Backed out changeset d1b72f3ac5f6 (bug 1598010) linting failure at messaging_example/app/src/main/assets/messaging/messaging.js:11:7. On a CLOSED TREE 2019-11-22 06:04:04 +02:00
Emily Toop 69138034df Bug 1598010 - Move examples into mozilla-central r=agi
Examples are currently in github. They should be kept alongside the documentation and code and built along with other projects in Android Studio.

Differential Revision: https://phabricator.services.mozilla.com/D53978

--HG--
extra : moz-landing-system : lando
2019-11-21 18:04:14 +00:00
Mihai Alexandru Michis 82b9b5ee82 Backed out 2 changesets (bug 1585661) for causing lint failures. CLOSED TREE
Backed out changeset 915910348bce (bug 1585661)
Backed out changeset 126b37477819 (bug 1585661)

--HG--
rename : mobile/android/docs/Gemfile => mobile/android/docs/geckoview/Gemfile
rename : mobile/android/docs/_config.yml => mobile/android/docs/geckoview/_config.yml
2019-11-14 17:50:28 +02:00
Emily Toop b6e7de4d10 Bug 1585661 - Add messaging examples to Android Studio. r=agi
Differential Revision: https://phabricator.services.mozilla.com/D48565

--HG--
extra : moz-landing-system : lando
2019-11-14 14:23:54 +00:00
Mihai Alexandru Michis 64a0fd0a54 Backed out 2 changesets (bug 1585661) for causing lint failures.
Backed out changeset c1e90bf96e14 (bug 1585661)
Backed out changeset 1f2c6dc5a14e (bug 1585661)

--HG--
rename : mobile/android/docs/Gemfile => mobile/android/docs/geckoview/Gemfile
rename : mobile/android/docs/_config.yml => mobile/android/docs/geckoview/_config.yml
extra : histedit_source : dbb04b7ddd7036853b5f714e4b61f542903698f5
2019-11-14 15:35:02 +02:00
Emily Toop 1b89d78c89 Bug 1585661 - Add messaging examples to Android Studio. r=agi
Differential Revision: https://phabricator.services.mozilla.com/D48565

--HG--
extra : moz-landing-system : lando
2019-11-14 12:21:42 +00:00
Nick Alexander c46ec74815 Bug 1580356 - Remove Fennec (Firefox for Android). r=snorp,mshal
This does many things:

1) stops producing (and consuming) `FennecJNI*` JNI wrappers
2) removes the :app and :thirdparty Gradle projects
3) removes relevant pieces of the Gradle target configuration
4) updates lints
5) purges old configurations

After this commit, the `mobile/android` project/application builds
only GeckoView.

Differential Revision: https://phabricator.services.mozilla.com/D46536

--HG--
extra : moz-landing-system : lando
2019-10-04 20:55:11 +00:00
Andrew Halberstadt 3ccc9e7376 Bug 1580280 - [gradle] Stop redirecting stderr into stdout when calling 'mach environment', r=nalexander
Print debugging a task that runs gradle has been really annoying as gradle
reads the output of 'mach environment' and fails as soon as a debug line shows
up.

What's worse, is it redirects stderr into stdout so even printing to
'sys.stderr' fails. This fixes that so writing to stderr will at least work.

Differential Revision: https://phabricator.services.mozilla.com/D47608

--HG--
extra : moz-landing-system : lando
2019-09-30 19:42:11 +00:00
Nick Alexander e68b7c0a8f Bug 1543982 - Part 1: Avoid re-configuring from within Gradle. r=emilio
The inline comment explains what is happening here.  The issue is that
client.mk is setting MOZ_OBJDIR (and autoconf.mk is setting CC/CXX and
others) as part of `mach build`, which means that recursively invoking
`mach build` sees a different environment, and that triggers
reconfigure.

In some situations we can avoid this by recognizing that the
environment has changed and setting it back to what it was at the time
of `mach build` before client.mk adjusts it.

Differential Revision: https://phabricator.services.mozilla.com/D30425

--HG--
extra : moz-landing-system : lando
2019-05-09 20:38:48 +00:00
Makoto Kato 4efd6396b0 Bug 1527796 - Part 5. Add python.exe path of mozilla-build to call mach command from gradle. r=nalexander
Since gradle doesn't run on sh.exe, it requires python path to run mach command.
But gradle doesn't have a way to detect python.exe.

When using MozillaBuild, it sets MOZILLABUILD environment value, so we can
detect python path in MozillaBuild using it if available.

Differential Revision: https://phabricator.services.mozilla.com/D20454

--HG--
extra : rebase_source : bba5ae6b8b53c408e8f80db3202458e177eecca4
2019-03-29 18:11:09 +09:00
Nick Alexander 520b63c85e Bug 1444546 - Part 2: Build annotationProcessors with Gradle. r=jchen
We want annotationProcessors to be compiled and archived into a JAR at
build time, ready to generate JNI wrappers.  (That is, until we turn
the whole thing into a real annotation processor.)  But even if we do
use a real annotation processor, we still need to generate SDK
bindings, which is less clearly expressed as an annotation processor.
(It's more of a build step.)

Gradle provides a huge number of ways to organize build logic to
achieve this: see
https://docs.gradle.org/current/userguide/organizing_build_logic.html.
Unfortunately, the best such way -- putting the code into
$topsrcdir/buildSrc -- has key disadvantages:

1) it pollutes the top-level $topsrcdir, and there's no way to change the
location of buildSrc (https://github.com/gradle/gradle/issues/2472);

2) it's complicated to have a dependent project
(mobile/android/annotations) expose its code via a buildSrc project;

3) using buildSrc at all appears to conflict with the Android-Gradle
plugin version that we are using.

Therefore, this commit does something much simpler: it adds a
Java-only project and uses the resulting Gradle "Jar" task and archive
output as input to the existing Gradle "generate JNI wrappers" task.

MozReview-Commit-ID: 2OyYLPneE1M

--HG--
extra : rebase_source : d99b74a0a1e0bb3e8f4d4540978328388e5c2e42
2018-02-22 16:11:14 -08:00
maliu a2f6cf439f Bug 1360587 - Part 2. Remove bouncer apk build config; source; docs, r=nalexander
MozReview-Commit-ID: C1QJcr65yWu

--HG--
extra : rebase_source : 867d143416321adc4820d488991fb4575c767cf0
2017-10-25 22:51:44 +08:00
Wes Kocher 26f08e883b Backed out 2 changesets (bug 1355625) for causing bustage a=backout
Backed out changeset 0b7af9b62aff (bug 1355625)
Backed out changeset b44a1a078e64 (bug 1355625)

MozReview-Commit-ID: JRmf8nbLFPP
2017-06-22 12:05:56 -07:00
Nick Alexander 2f879ff1af Bug 1355625 - Part 2: Tweak the Gradle build to agree more with moz.build. r=nalexander
MozReview-Commit-ID: DMoxPnla3Ij

--HG--
extra : rebase_source : 6496fba8609b58b68038439ef9188bf6cc4c54e1
2017-06-20 11:19:32 -07:00
Nick Alexander b4c52f8bca Bug 1291363 - Add geckoview and geckoview_example Gradle projects. r=jchen,sebastian
We need to bump the Gradle Deps task, which fetches dependencies, to
include new test dependencies; and use freshly uploaded tooltool
archives (manually uploaded) containing the new test dependencies.

MozReview-Commit-ID: 8bNOVQPHlk6

--HG--
extra : rebase_source : 0c80117fb58e43f9c857027941f0a14f03b97f13
2016-10-05 20:23:38 -07:00
Nick Alexander c4c73eceaa Bug 1233882 - Fold base Gradle project into app Gradle project. r=sebastian,mcomella
DONTBUILD NPOTB

Using the real Android manifest tripped up Robolectric, so I've taken
the easy way out and added a dummy TestGeckoApplication; see comment
in the code.

MozReview-Commit-ID: 4fCY504UgPu

--HG--
rename : mobile/android/app/base/lint.xml => mobile/android/app/lint.xml
rename : mobile/android/tests/background/junit4/resources/robolectric.properties => mobile/android/app/src/main/resources/robolectric.properties
extra : rebase_source : 689e879dd4ec4402d5e7f948fa5f8be256284a88
extra : intermediate-source : 746468f5d9798ff404a80cd957664e2b69a0e97c
extra : source : a7f63b3721cd3ba105990bbb37a87044383d26d9
extra : histedit_source : 6bdcfa36ddb45bbfd518c5459e4940e29a30f1c2%2C4bfef3b752a85174f1aa1f2226a286ac30bae25a
2016-02-17 19:25:54 -08:00
Nick Alexander c387030feb Backed out changeset 746468f5d979 (bug 1233882).
--HG--
extra : commitid : HtySXbh21EG
extra : rebase_source : 380db13c459c88d21b7f14d0d6830e7ab1094cc1
2016-02-05 21:19:13 -08:00
Nick Alexander dfb9b5b160 Bug 1234629 - Post: Add Gradle support for bouncer. r=me
--HG--
extra : commitid : 6jL7OTORPHp
extra : rebase_source : 19cc23344c425082888863cf7dbd00049ab1e3a1
extra : source : 54a3d0851bc60d26fb4744c605787031070052c8
extra : histedit_source : 842b7f6fafd9ee4ba00805b83d088cd9bf97e5cf
2016-01-26 11:54:00 -08:00
Nick Alexander 2f5eb6ac5e Bug 1233882 - Fold base Gradle project into app Gradle project. r=sebastian,mcomella
DONTBUILD NPOTB

Using the real Android manifest tripped up Robolectric, so I've taken
the easy way out and added a dummy TestGeckoApplication; see comment
in the code.

--HG--
rename : mobile/android/app/base/lint.xml => mobile/android/app/lint.xml
rename : mobile/android/tests/background/junit4/resources/robolectric.properties => mobile/android/app/src/main/resources/robolectric.properties
extra : commitid : 2aEbQRv0D7m
extra : rebase_source : c0f014e3fba7008967f8f9782125f940fcc89fe6
extra : amend_source : 46bfdfb116c026da490750a23a9c9188ab4cdf9a
extra : source : a7f63b3721cd3ba105990bbb37a87044383d26d9
2016-01-17 21:52:46 -08:00
Nigel Babu ede1aa8b36 Backed out 10 changesets (bug 1234629, bug 1233882) for bustage on Android rc tests
Backed out changeset 9aa32d9a25df (bug 1234629)
Backed out changeset d73d36c9619b (bug 1234629)
Backed out changeset a7f63b3721cd (bug 1233882)
Backed out changeset c79f4a8c3e86 (bug 1234629)
Backed out changeset 400c030d3c01 (bug 1234629)
Backed out changeset 54a3d0851bc6 (bug 1234629)
Backed out changeset f80912ecfa87 (bug 1234629)
Backed out changeset 50bcadca2131 (bug 1234629)
Backed out changeset aaa420ed66d7 (bug 1234629)
Backed out changeset 7a62e97f07c2 (bug 1234629)

--HG--
rename : mobile/android/app/lint.xml => mobile/android/app/base/lint.xml
rename : mobile/android/app/src/main/resources/robolectric.properties => mobile/android/tests/background/junit4/resources/robolectric.properties
extra : commitid : KJVIqyGBEZg
2016-02-05 15:42:28 +05:30
Nick Alexander 1288f37eaf Bug 1233882 - Fold base Gradle project into app Gradle project. r=sebastian,mcomella
DONTBUILD NPOTB

Using the real Android manifest tripped up Robolectric, so I've taken
the easy way out and added a dummy TestGeckoApplication; see comment
in the code.

--HG--
rename : mobile/android/app/base/lint.xml => mobile/android/app/lint.xml
rename : mobile/android/tests/background/junit4/resources/robolectric.properties => mobile/android/app/src/main/resources/robolectric.properties
extra : commitid : BSiXkLh5kSh
extra : rebase_source : ee178b04cd727e11a65f0550d88f1cd951cc5b7a
extra : amend_source : 45f49104a4687cf4cb71391c3f3ac2def8ef716a
2016-01-17 21:52:46 -08:00
Nick Alexander 242ce6bb3e Bug 1234629 - Post: Add Gradle support for bouncer. r=me
--HG--
extra : commitid : 6jL7OTORPHp
extra : rebase_source : 8151fcd1768b7bfd0a4386dd68c8910894cae892
extra : histedit_source : 673771296f66c8ec5885fef25999e5e195a1767e
2016-01-26 11:54:00 -08:00
Nick Alexander 63de561f49 Bug 1231667 - Set Android SDK directory in topsrcdir Gradle configuration. r=me f=mcomella
--HG--
extra : commitid : JaIcJaQkY0L
extra : rebase_source : 874d2ee3c68058b5c96997437a78155ec789c6c5
extra : histedit_source : 7a1c2bc56259d10ccd6b02451016c83c52135351
2015-12-10 10:51:42 -05:00
Nick Alexander e171bf31ec Bug 1107811 - Part 3: Fix Gradle configurations. r=me
--HG--
extra : commitid : 6nPFZN21OLN
extra : rebase_source : 871c47b4c8d45794ad9e1704a3978099f4693923
extra : histedit_source : 0b73868c4baae9ec1d4ed0bbcf2629b7ebb579e6%2Cb36560dede8a0c4925e117b28494297ea25abfee
2015-12-05 17:33:55 -08:00
Nick Alexander 5ab3a4ac26 Bug 1228430 - Move build.gradle out of mobile/android/base. r=me
DONTBUILD NPOTB

--HG--
rename : mobile/android/base/build.gradle => mobile/android/app/base/build.gradle
extra : commitid : EhT7Osnyxex
2015-11-26 13:02:00 -08:00