Commit Graph

276 Commits

Author SHA1 Message Date
mcarare
26be180d50 Bug 1897176 - Allow unit tests to access and use app resources. r=tthibaud
Differential Revision: https://phabricator.services.mozilla.com/D223722
2024-10-01 06:57:53 +00:00
Jan-Erik Rediger
799ee86cc1 Bug 1921235 - Gradle: Enforce the Glean version at the top-level. r=RyanVM
This was done for Fenix (bug 1917825) and Focus (bug 1920953),
but Searchfox calls Gradle from the top-level, so apparently we need it
here too.

I would like if we can define it once and it's just used across the
whole tree, but I don't know how.

With this patch `mach android compile-all` at the top-level works.

Differential Revision: https://phabricator.services.mozilla.com/D223759
2024-09-26 16:57:06 +00:00
mcarare
3f4340ff6e Bug 1894766 - Reduce noise of downloadDependencies task errors. r=tthibaud
Differential Revision: https://phabricator.services.mozilla.com/D211756
2024-09-17 18:39:45 +00:00
Ryan VanderMeulen
31e22a5cb0 Bug 1918780 - Migrate Protobuf to the AC dependencies plugin. r=android-reviewers,mcarare
Differential Revision: https://phabricator.services.mozilla.com/D222171
2024-09-17 14:23:52 +00:00
Nicolas Guichard
12684486a9 Bug 1893181 - Enforce buildToolsVersion from toplevel Gradle project too. r=nalexander
The resolution of bug 1906365 was incomplete, the buildToolsVersion was
not enforced when building AC, Fenix or Focus from the toplevel Gradle
project.

Differential Revision: https://phabricator.services.mozilla.com/D221845
2024-09-11 16:35:55 +00:00
Ryan VanderMeulen
3ea7c0e807 Bug 1917498 - Migrate the remaining AndroidX libraries to the AC dependencies plugin and clean up the manifests. r=android-reviewers,mcarare
Differential Revision: https://phabricator.services.mozilla.com/D221415
2024-09-09 11:30:09 +00:00
Ryan VanderMeulen
62f69646a9 Bug 1913314 - Migrate the OSS Licenses Gradle Plugin to the AC dependencies plugin. r=android-reviewers,mcarare
Differential Revision: https://phabricator.services.mozilla.com/D220199
2024-08-27 12:40:46 +00:00
Ryan VanderMeulen
32f3b39fe6 Bug 1914260 - Update scip-java to version 0.10.3. r=geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D219802
2024-08-23 23:52:04 +00:00
Ryan VanderMeulen
b89ce31274 Bug 1914294 - Migrate AndroidX Benchmark to the AC dependencies plugin. r=android-reviewers,mcarare
Differential Revision: https://phabricator.services.mozilla.com/D219828
2024-08-22 13:08:38 +00:00
mcarare
bd142be578 Bug 1880792, 1880801, 1880805 - Compile Focus, Fenix, AC and GV with SDK 35. r=android-reviewers,geckoview-reviewers,ohall
Differential Revision: https://phabricator.services.mozilla.com/D217428
2024-08-08 08:02:32 +00:00
Noemi Erli
934126cb32 Backed out 9 changesets (bug 1880805, bug 1880792) for causing Android build bustages CLOSED TREE
Backed out changeset 31bdbc9aeaa4 (bug 1880805)
Backed out changeset 774f35ca40c6 (bug 1880805)
Backed out changeset 245c3192541e (bug 1880805)
Backed out changeset b6ebbf12ab50 (bug 1880805)
Backed out changeset 17995dc18511 (bug 1880805)
Backed out changeset 42b34af74a6b (bug 1880805)
Backed out changeset 2f77befbf593 (bug 1880805)
Backed out changeset 974b02a7b0c6 (bug 1880792)
Backed out changeset bb02a20ea5fd (bug 1880792)
2024-08-07 21:36:15 +03:00
mcarare
ea282ca424 Bug 1880792, 1880801, 1880805 - Compile Focus, Fenix, AC and GV with SDK 35. r=android-reviewers,geckoview-reviewers,ohall
Differential Revision: https://phabricator.services.mozilla.com/D217428
2024-08-07 14:20:46 +00:00
Norisz Fay
e57b75b143 Backed out 9 changesets (bug 1880805, bug 1880792) for causing WR bustages
Backed out changeset b4a34334966e (bug 1880805)
Backed out changeset 930b186197c7 (bug 1880805)
Backed out changeset a123725cb63e (bug 1880805)
Backed out changeset 361853f53ba9 (bug 1880805)
Backed out changeset b23f3321ac09 (bug 1880805)
Backed out changeset ed4650fa6bec (bug 1880805)
Backed out changeset 413d884fda78 (bug 1880805)
Backed out changeset e7fff6a1e708 (bug 1880792)
Backed out changeset 781599462673 (bug 1880792)
2024-08-07 14:55:34 +03:00
mcarare
48cb18b4f9 Bug 1880792, 1880801, 1880805 - Compile Focus, Fenix, AC and GV with SDK 35. r=android-reviewers,geckoview-reviewers,ohall
Differential Revision: https://phabricator.services.mozilla.com/D217428
2024-08-07 10:45:53 +00:00
Narcis Beleuzu
1f68e6ad0c Backed out 9 changesets (bug 1880805, bug 1880792) for gradle-dependencies TL bustages. CLOSED TREE
Backed out changeset f94e6acf0cd3 (bug 1880805)
Backed out changeset 22e14524bf1f (bug 1880805)
Backed out changeset 774b263652b5 (bug 1880805)
Backed out changeset 77fe8fb48620 (bug 1880805)
Backed out changeset 3ae77f91197e (bug 1880805)
Backed out changeset 1ffaa88f56da (bug 1880805)
Backed out changeset 1dee3246c6a2 (bug 1880805)
Backed out changeset 9abb09c562ef (bug 1880792)
Backed out changeset 24a1c7a574c4 (bug 1880792)
2024-08-06 22:41:06 +03:00
mcarare
fe507f0539 Bug 1880792, 1880801, 1880805 - Compile Focus, Fenix, AC and GV with SDK 35. r=android-reviewers,geckoview-reviewers,ohall
Differential Revision: https://phabricator.services.mozilla.com/D217428
2024-08-06 17:38:52 +00:00
Ryan VanderMeulen
1147ce0681 Bug 1884192 - Use jvmToolchain for setting the target JVM version. r=mcarare
Differential Revision: https://phabricator.services.mozilla.com/D217824
2024-07-26 15:10:51 +00:00
Nicolas Guichard
2b966c8412 Bug 1881001 - Use the same AGP version for AC and GeckoView. r=geckoview-reviewers,nalexander,owlish
Delaying the definition of the generateSDKBindings task's arguments
ensures the android.bootClasspath has been populated.

Updating AGP apparently changes the default location of apilint's
apilint-result.json and api.txt, this moves them to a less foreign
location. Unfortunately apilint only seems to use relative paths here.

Differential Revision: https://phabricator.services.mozilla.com/D215654
2024-07-22 14:12:27 +00:00
Ryan VanderMeulen
0acd449542 Bug 1904166 - Update scip-java to version 0.10.0. r=calu
Differential Revision: https://phabricator.services.mozilla.com/D214660
2024-06-29 14:28:56 +00:00
Makoto Kato
272385e12f Bug 1896020 - Upgrade apilint gradle plugin to 0.5.3. r=geckoview-reviewers,calu
apilint gradle plugin 0.5.3 supports Windows platform.

Differential Revision: https://phabricator.services.mozilla.com/D213051
2024-06-11 03:07:38 +00:00
Florian Quèze
9118178e3b Bug 1892641 - include timestamps in BUILDSTATUS lines from gradle, r=glandium.
Differential Revision: https://phabricator.services.mozilla.com/D208531
2024-04-30 08:17:13 +00:00
kycn
b0f26d11ff Bug 1892641 - Add profile markers for gradle project evaluations and task executions to capture execution times in the build profiles. r=florian,glandium
Differential Revision: https://phabricator.services.mozilla.com/D208094
2024-04-30 08:17:13 +00:00
Ryan VanderMeulen
d5a146aa56 Bug 1893237 - Update scip-java to version 0.9.10. r=android-reviewers,avirvara
Differential Revision: https://phabricator.services.mozilla.com/D208528
2024-04-29 15:18:40 +00:00
Ryan VanderMeulen
f86130bb60 Bug 1886433 - Use the AC dependencies plugin for GeckoView where possible. r=android-reviewers,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D205221
2024-03-20 21:40:21 +00:00
Gabriel Luong
20237dbc22 Bug 1822393 - Set the source and target compatibility compile options for non-GeckoView projects. r=owlish,nalexander,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D201853
2024-02-13 21:15:55 -05:00
Geoff Brown
e6bb6e9c73 Bug 1825116 - do not run spotless lint on firefox-android projects. r=owlish,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D201543
2024-01-31 13:43:13 -07:00
Zac McKenney
d3ac4afbe4 Bug 1822393 - enable Werror compiler args for geckoview dependencies. r=gl,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D201496
2023-12-19 14:12:01 -08: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
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
Jan-Erik Rediger
56cf6c0d03 Bug 1884881 - Update Glean to v58.1.0. r=perry.mcmanis,supply-chain-reviewers,mach-reviewers
Depends on D204347

Differential Revision: https://phabricator.services.mozilla.com/D204348
2024-03-12 21:02:40 +00:00
Makoto Kato
5cc73043ee Bug 1876740 - Update spotless/ktlin to 6.25.0/0.49.1. r=geckoview-reviewers,calu
ktlint version is matched with Fenix.

Differential Revision: https://phabricator.services.mozilla.com/D203247
2024-03-04 01:45:22 +00:00
Chris H-C
00548e1042 Bug 1882615 - Vendor Glean SDK to v58.0.0 r=perry.mcmanis,supply-chain-reviewers,mach-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D203187
2024-03-01 15:13:21 +00:00
Ryan VanderMeulen
8f3461b9eb Bug 1879852 - bump kotlin to 1.9.22 r=geckoview-reviewers,mcarare,owlish
Also update semanticdb-kotlinc plugin to 0.4.0, per
3ff9e970b9/README.md (kotlin-version-compatibility)

Differential Revision: https://phabricator.services.mozilla.com/D202799
2024-02-28 09:31:10 +00:00
Julien Cristau
a54c634fac Bug 1876067 - bump android-gradle-plugin to 8.0.2. r=geckoview-reviewers,mcarare,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D202155
2024-02-28 09:23:57 +00:00
Travis Long
05240e93a7 Bug 1879857 - Update Glean to v57.0.0. r=chutten,supply-chain-reviewers,mach-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D201621
2024-02-13 20:47:02 +00:00
Perry McManis
c314357a6d Bug 1874923 - Update Glean to 56.1.0 r=janerik,supply-chain-reviewers,mach-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D199093
2024-01-22 15:45:27 +00:00
Ben Dean-Kawamura
aff73c9027 Bug 1867639 - Vendor in new application-services / Glean / UniFFI. r=markh,janerik,supply-chain-reviewers,mach-reviewers,ahal
Updated uniffi-bindgen-gecko-js to work with UniFFI 0.25.2:
- Use `config.toml` to list UniFFI sources.  This makes it easier to
  associate data with them, for example the `crate_name` field that's
  now required to generate the sources.
- Enable the `extern-rustbuffer` feature on `uniffi_core`
- Updated the external types fixture to work around
  https://github.com/mozilla/uniffi-rs/issues/1872

Ran mach vendor and mach cargo vet to update the Rust crates.

Differential Revision: https://phabricator.services.mozilla.com/D195163
2023-12-12 14:13:44 +00:00
Gabriel Luong
259f5e9723 Bug 1868259 - Refactor buildscript {} to be at the top of build.gradle r=tthibaud,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D195517
2023-12-08 17:46:36 +00:00
Narcis Beleuzu
18393f328a Backed out 2 changesets (bug 1867639) for causing WR bustages
Backed out changeset b77038bd9fee (bug 1867639)
Backed out changeset cf885f915fdf (bug 1867639)
2023-12-05 22:35:09 +02:00
Ben Dean-Kawamura
a889812ec8 Bug 1867639 - Vendor in new application-services / Glean / UniFFI. r=markh,janerik,supply-chain-reviewers,mach-reviewers,ahal
Updated uniffi-bindgen-gecko-js to work with UniFFI 0.25.2:
- Use `config.toml` to list UniFFI sources.  This makes it easier to
  associate data with them, for example the `crate_name` field that's
  now required to generate the sources.
- Enable the `extern-rustbuffer` feature on `uniffi_core`
- Updated the external types fixture to work around
  https://github.com/mozilla/uniffi-rs/issues/1872

Ran mach vendor and mach cargo vet to update the Rust crates.

Differential Revision: https://phabricator.services.mozilla.com/D195163
2023-12-05 19:55:30 +00:00
Noemi Erli
a08fb1a2d8 Backed out 2 changesets (bug 1867639) for causing wrench bustages CLOSED TREE
Backed out changeset 014768de11ca (bug 1867639)
Backed out changeset 375a5bb63fa7 (bug 1867639)
2023-12-01 23:21:07 +02:00
Ben Dean-Kawamura
c34d9f3c2d Bug 1867639 - Vendor in new application-services / Glean / UniFFI. r=markh,janerik,supply-chain-reviewers,mach-reviewers,ahal
Updated uniffi-bindgen-gecko-js to work with UniFFI 0.25.2:
- Use `config.toml` to list UniFFI sources.  This makes it easier to
  associate data with them, for example the `crate_name` field that's
  now required to generate the sources.
- Enable the `extern-rustbuffer` feature on `uniffi_core`
- Updated the external types fixture to work around
  https://github.com/mozilla/uniffi-rs/issues/1872

Ran mach vendor and mach cargo vet to update the Rust crates.

Differential Revision: https://phabricator.services.mozilla.com/D195163
2023-12-01 14:26:03 +00:00
Nicolas Guichard
57827d524c Bug 1490144 - Add Java and Kotlin code indexing using semanticdb compiler plugins r=nalexander,asuth,emilio,geckoview-reviewers,owlish
When the Mozsearch plugin is enabled and when we compile the android
target, this uses the semanticdb-javac and semanticdb-kotlinc compiler
plugins to generate semanticdb files during the compilation process.

In order to index all files, all files need to be compiled at least
once, so this adds a `mach android compile-all` command to ensure that,
otherwise some examples and AndroidTests were not necessarily compiled.
Note that the AndroidTests do not have a release configuration so will
not be indexed when we build in release mode. The existing searchfox
mozconfigs are all set to debug so this should not be an issue.

To build the android-gradle-dependencies toolchain, all dependencies
must be accessible from the root build.gradle, so this also adds a flag
--download-all-gradle-dependencies to ignore conditional dependency
uses in gradle code.

Differential Revision: https://phabricator.services.mozilla.com/D192925
2023-11-16 16:27:24 +00:00
Jan-Erik Rediger
48117e62df Bug 1860506 - Update to Glean v55 and glean_parser v10. r=TravisLong,supply-chain-reviewers,mach-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D192960
2023-11-13 14:29:54 +00:00
Jan-Erik Rediger
8dd4f8a708 Bug 1852921 - Upgrade to Glean v54.0.0 r=chutten,supply-chain-reviewers,mach-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D188084
2023-09-19 08:18:12 +00:00
Sandor Molnar
1f5dbccdb3 Backed out changeset 1e582a0e5593 (bug 1852921) for causing build bustages 2023-09-19 01:43:08 +03:00
Jan-Erik Rediger
a98db88b61 Bug 1852921 - Upgrade to Glean v54.0.0 r=chutten,supply-chain-reviewers,mach-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D188084
2023-09-18 14:09:18 +00:00
Travis Long
aa6cb926b7 Bug 1626969 - Include locale in Glean pings.r=chutten,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D185153
2023-08-07 11:02:56 +00:00
Cristina Horotan
29d764fc02 Backed out changeset 672918ecc3bc (bug 1626969) for causing mach failures on a CLOSED TREE 2023-08-04 22:09:05 +03:00
Travis Long
de399e3600 Bug 1626969 - Include locale in Glean pings.r=chutten,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D185153
2023-08-04 18:41:55 +00:00