1277 Commits

Author SHA1 Message Date
Release Engineering Landoscript
7556d2bab9 No Bug - Import translations from main 2025-06-14 02:17:13 +00:00
Release Engineering Landoscript
6b66b1ca67 No Bug - Import translations from main 2025-06-11 02:17:11 +00:00
Ryan VanderMeulen
ba9d7aea61 Bug 1967292 - Update ktlint to version 1.6.0. r=android-reviewers,mcarare
Differential Revision: https://phabricator.services.mozilla.com/D250064
2025-05-20 12:15:55 +00:00
Release Engineering Landoscript
416b5a8650 No Bug - Import translations from https://github.com/mozilla-l10n/android-l10n CLOSED TREE 2025-05-12 00:11:54 +00:00
mcarare
19c245a5cb Bug 1964352 - Enable standard:property-naming ktlint rule and fix errors. r=android-reviewers,nalexander,pollymce
Kotlin style guide: Constant names use UPPER_SNAKE_CASE, Non-constant names are written in camelCase.

Differential Revision: https://phabricator.services.mozilla.com/D248507
2025-05-09 13:56:20 +00:00
mcarare
7bef90d659 Bug 1964352 - Enable standard:try-catch-finally-spacing ktlint rule and fix errors. r=android-reviewers,nalexander
Kotlin style guide: Consistent spacing in try { .. } catch { .. } finally { .. }.

Differential Revision: https://phabricator.services.mozilla.com/D248506
2025-05-09 13:56:17 +00:00
Andrey Zinovyev
5a04137bf3 Bug 1962526 - Use gradle version catalog for glean-gradle-plugin dependency. r=adhingra,android-reviewers,jonalmeida
Differential Revision: https://phabricator.services.mozilla.com/D247609
2025-05-05 21:54:23 +00:00
Jonathan Almeida
0fafc2e779 Bug 1957640 - Replace Megazord.init with RustComponentsInitializer r=joschmidt,matt-tighe,android-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D247032
2025-05-01 19:53:16 +00:00
Fatih Kilic
38b945f73f Bug 1959100 - Allow OHTTP pings based on supportsOhttp property. r=android-reviewers,jonalmeida
ConceptFetchHttpUploader is used in different places. Not all of them use GeckoViewFetchClient. We currently support OHTTP through GeckoViewFetchClient. So we add supportsOhttp property to ensure we don't send OHTTP pings with clients that don't support it.

Right now, only apps with GeckoViewFetchClient has OHTTP pings, but this will future proof and prevent possible accidents.

Differential Revision: https://phabricator.services.mozilla.com/D246662
2025-04-28 15:13:14 +00:00
Fatih Kilic
a2f673d120 Bug 1959100 - Check OHTTP capability on Fenix. r=janerik,android-reviewers,jonalmeida
Differential Revision: https://phabricator.services.mozilla.com/D244750
2025-04-28 15:13:14 +00:00
Segun Famisa
99d5d3c43f Bug 1959107 - Fix intermittent coroutines memory leak related to top sites on home r=android-reviewers,pollymce
# Conflicts:
#	mobile/android/fenix/app/src/main/java/org/mozilla/fenix/FenixApplication.kt

Differential Revision: https://phabricator.services.mozilla.com/D246359
2025-04-28 07:48:34 +00:00
Jonathan Almeida
80aeec1aa7 Bug 1872229 - Fix minor lint check failures in android-components r=android-reviewers,mcarare,webcompat-reviewers,twisniewski
We have moved more lint checks upstream to AC and these failures are
trivial to solve, rather than try to suppress.

Differential Revision: https://phabricator.services.mozilla.com/D236392
2025-04-11 04:37:30 +00:00
smolnar
aaed8aeb2c Backed out 2 changesets (bug 1872229) for causing toolchain failures CLOSED TREE
Backed out changeset 2fd0c027ec2c (bug 1872229)
Backed out changeset 7efbd8e4381d (bug 1872229)
2025-04-10 03:38:28 +03:00
Jonathan Almeida
9956a54ab3 Bug 1872229 - Fix minor lint check failures in android-components r=android-reviewers,mcarare,webcompat-reviewers,twisniewski
We have moved more lint checks upstream to AC and these failures are
trivial to solve, rather than try to suppress.

Differential Revision: https://phabricator.services.mozilla.com/D236392
2025-04-09 22:32:23 +00:00
Jan-Erik Rediger
7bee83f408 Bug 1953191 - Update FOG and service-glean to changed Glean uploader r=chutten,TravisLong
Differential Revision: https://phabricator.services.mozilla.com/D241842
2025-04-07 20:39:51 +00:00
Alexandru Marc
7bee8ec457 Backed out 7 changesets (bug 1950665, bug 1956897, bug 1956123, bug 1953191) for causing fenix btime failures CLOSED TREE
Backed out changeset 22f47c90fd5d (bug 1956123)
Backed out changeset 6522ae70b658 (bug 1956897)
Backed out changeset 806db3f9c36c (bug 1950665)
Backed out changeset bf72ab72dfa6 (bug 1953191)
Backed out changeset d229188b7203 (bug 1953191)
Backed out changeset d73eaaafd097 (bug 1953191)
Backed out changeset 592d875cb61b (bug 1950665)
2025-03-28 19:28:52 +02:00
Jan-Erik Rediger
032556e217 Bug 1953191 - Update FOG and service-glean to changed Glean uploader r=chutten,TravisLong
Differential Revision: https://phabricator.services.mozilla.com/D241842
2025-03-27 20:33:11 +00:00
Ryan VanderMeulen
38c662db60 Bug 1956673 - Replace more Uri.parse() usage with String.toUri(). r=android-reviewers,mcarare
Differential Revision: https://phabricator.services.mozilla.com/D243236
2025-03-27 12:13:06 +00:00
Cosmin Sabou
ca05bec2fb Backed out 7 changesets (bug 1956132, bug 1956378, bug 1950665, bug 1953191) for causing LateWriteObserver crashes.
Backed out changeset 38ae4256b2ad (bug 1956132)
Backed out changeset cc9d570bc0d1 (bug 1956378)
Backed out changeset 85142db17376 (bug 1950665)
Backed out changeset 251fd670f26e (bug 1953191)
Backed out changeset f79d2c98afbc (bug 1953191)
Backed out changeset 7d91be694ac1 (bug 1953191)
Backed out changeset cb2b3aee545c (bug 1950665)
2025-03-27 00:53:58 +02:00
Jan-Erik Rediger
2a44f8b8a6 Bug 1953191 - Update FOG and service-glean to changed Glean uploader r=chutten,TravisLong
Differential Revision: https://phabricator.services.mozilla.com/D241842
2025-03-26 17:12:07 +00:00
adhingra
31ae3ed36c Bug 1954548 - Clean up plugins/dependencies using version catalog r=android-reviewers,RyanVM,jonalmeida
Simple changes in this one, just to unblock some other patches, will clean up in more detail in followup patches

Differential Revision: https://phabricator.services.mozilla.com/D239802
2025-03-26 14:01:35 +00:00
Ryan VanderMeulen
88fe50b6d9 Bug 1956344 - Remove redundant lint {} blocks and apply android-lints.gradle where applicable. r=android-reviewers,adhingra
Differential Revision: https://phabricator.services.mozilla.com/D243001
2025-03-25 21:16:26 +00:00
Ryan Safaeian
293dcdb637 Bug 1955665 - Initialize rust components for sync-autofill unit tests. r=matt-tighe,joschmidt,android-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D242808
2025-03-25 16:36:38 +00:00
Ryan VanderMeulen
d4312b4ad4 Bug 1955985 - Remove space-assignment usage in Gradle files. r=geckoview-reviewers,android-reviewers,webcompat-reviewers,twisniewski,adhingra,ohall
Differential Revision: https://phabricator.services.mozilla.com/D242727
2025-03-24 15:55:48 +00:00
Ryan VanderMeulen
131dc7b0c4 Bug 1955458 - Replace Uri.parse() with String.toUri(). r=android-reviewers,mcarare
Differential Revision: https://phabricator.services.mozilla.com/D242439
2025-03-21 16:03:06 +00:00
Ryan VanderMeulen
e335a8767e Bug 1955456 - Use SharedPreferences.edit() KTX extension. r=android-reviewers,mcarare
Differential Revision: https://phabricator.services.mozilla.com/D242437
2025-03-21 16:03:06 +00:00
Ryan VanderMeulen
56764c7ba3 Bug 1897958 - Add @ConsistentCopyVisibility annotation to opt into new behavior. r=android-reviewers,tthibaud
Addresses:
PocketResponse.kt:17:27 Non-public primary constructor is exposed via the generated 'copy()' method of the 'data' class.

The generated 'copy()' will change its visibility in future releases.

To suppress the warning do one of the following:
- Annotate the data class with the '@ConsistentCopyVisibility' annotation.
- Use the '-Xconsistent-data-class-copy-visibility' compiler flag.
- Annotate the data class with the '@ExposedCopyVisibility' annotation
  (Discouraged, but can be used to keep binary compatibility).

To learn more, see the documentation of the '@ConsistentCopyVisibility' and '@ExposedCopyVisibility' annotations.

This will become an error in Kotlin 2.1.

Differential Revision: https://phabricator.services.mozilla.com/D220942
2025-03-06 23:24:15 +00:00
Mozilla Releng Treescript
c4a83f1dae no bug - Import translations from android-l10n r=release a=l10n CLOSED TREE 2025-03-06 00:23:55 +00:00
Mozilla Releng Treescript
8f72e3027a no bug - Import translations from android-l10n r=release a=l10n CLOSED TREE 2025-03-05 00:23:09 +00:00
Aaditya Dhingra
5f9d749a96 Bug 1949260 - Part 2 - Replace DependenciesPlugin with gradle version catalog. r=geckoview-reviewers,android-reviewers,webcompat-reviewers,nalexander,twisniewski,owlish,jonalmeida,tthibaud
Differential Revision: https://phabricator.services.mozilla.com/D238804
2025-03-03 17:12:25 +00:00
Butkovits Atila
4e812cfcd3 Backed out changeset d8ff867d2d2f (bug 1884916) as requested by dev. CLOSED TREE 2025-02-19 18:36:24 +02:00
Aaditya Dhingra
28dd68b3f6 Bug 1884916 - Update mobile subfolders gitignore files r=geckoview-reviewers,android-reviewers,tthibaud,owlish
Differential Revision: https://phabricator.services.mozilla.com/D225818
2025-02-12 15:18:43 +00:00
Gabriel Luong
e969b2c21f Bug 1945729 - Update sponsored content impressions when shown r=android-reviewers,devota
Differential Revision: https://phabricator.services.mozilla.com/D237178
2025-02-07 22:52:30 +00:00
Gabriel Luong
cfe9cec1a0 Bug 1946329 - Add support for fetching from the MARS staging endpoint for sponsored content r=android-reviewers,devota
Differential Revision: https://phabricator.services.mozilla.com/D237001
2025-02-06 16:51:05 +00:00
Gabriel Luong
cb46c7ba1d Bug 1945242 - Add support for deleting user profile with MARS sponsored content r=android-reviewers,devota
Differential Revision: https://phabricator.services.mozilla.com/D236427
2025-01-31 22:53:34 +00:00
Gabriel Luong
4bb602fe59 Bug 1944966 - Part 7: Fetch and update the sponsored content state with the MARS sponsored content r=android-reviewers,devota
Differential Revision: https://phabricator.services.mozilla.com/D236317
2025-01-31 16:45:11 +00:00
Gabriel Luong
c11ce813d5 Bug 1939687 - Part 5: Expose client usage of the sponsored content scheduler and use cases in PocketStoriesServices r=android-reviewers,devota
Differential Revision: https://phabricator.services.mozilla.com/D235891
2025-01-30 21:24:06 +00:00
Gabriel Luong
6fbe0f3345 Bug 1939687 - Part 4: Adds sponsored contents refresh scheduler and worker r=android-reviewers,devota
- Adds sponsored contents refresh scheduler and worker to create a background worker to periodically fetch and store the latest sponsored contents.

Differential Revision: https://phabricator.services.mozilla.com/D235890
2025-01-30 21:24:05 +00:00
Gabriel Luong
a2138d5488 Bug 1939687 - Part 3: Adds a sponsored contents use case for handling all the sponsored content actions r=android-reviewers,devota
- Provides an use case class for interacting with the sponsored content and impression repository.

Differential Revision: https://phabricator.services.mozilla.com/D235866
2025-01-30 21:24:05 +00:00
Gabriel Luong
42e7bfcddf Bug 1939687 - Part 2: Handle persisting sponsored content and their respective impressions in a Room Database r=android-reviewers,devota
- This closely follows the existing Spocs repository in service-pocket and was added to align with the new
response schema and metadata that we are receiving from the MARS service.
- Provides a persistent storage layer using Room Database to store the fetched sponsored contents and record their impressions.

Differential Revision: https://phabricator.services.mozilla.com/D235865
2025-01-30 21:24:04 +00:00
Gabriel Luong
e6d7f0cdff Bug 1939687 - Part 1: Implement handlers for fetching sponsored stories from the MARS endpoint r=android-reviewers,devota
- Implements `MarsSpocsEndpoint` and `MarsSpocsEndpointRaw` for performing a POST request to the MARS endpoint to fetch the sponsored stories, and parses the JSON response to a `MarsSpocsResponse` data type.
- Provides `MarsSpocsRequestConfig` for specifying the request POST configurations.

Differential Revision: https://phabricator.services.mozilla.com/D234567
2025-01-30 21:24:04 +00:00
Matthew Tighe
697b830497 Bug 1943847 - Remove key provider from Logins sync engine r=android-reviewers,boek
Differential Revision: https://phabricator.services.mozilla.com/D235685
2025-01-28 00:39:25 +00:00
Gabriel Luong
a617758779 Bug 1941046 - Part 3: Refactor MockResponses from service-pocket to support-test r=android-reviewers,petru
- Refactors `MockResponses` from `service-pocket` to `support-test` to allow for broader reuse.

Differential Revision: https://phabricator.services.mozilla.com/D235116
2025-01-26 06:19:04 +00:00
Matthew Tighe
b9b59d8bba Bug 1937827 - Address breaking changes from A-S EncryptorDecryptor trait implementation. See https://github.com/mozilla/application-services/pull/6469 r=android-reviewers,boek
Differential Revision: https://phabricator.services.mozilla.com/D232391
2025-01-21 20:00:01 +00:00
Gabriel Luong
3787e087ae Bug 1940589 - Update ContentRecommendation entities to include corpusItemId and recommendedAt r=android-reviewers,devota
- Add `corpusItemId` into the existing response schema and use it as the new primary key over `scheduledCorpusItemId`. This will be used in our existing `PocketStory.ContentRecommendation`, `ContentRecommendationResponseItem`, and `ContentRecommendationEntity`.
- Add `recommendedAt` in  `PocketStory.ContentRecommendation`, `ContentRecommendationResponseItem`, and `ContentRecommendationEntity`.

Differential Revision: https://phabricator.services.mozilla.com/D233597
2025-01-14 23:48:35 +00:00
Gabriel Luong
97f02d6de3 Bug 1934642 - Part 6: Integrate MarsTopSiteProvider in Fenix r=android-reviewers,devota
Differential Revision: https://phabricator.services.mozilla.com/D233000
2025-01-02 05:46:40 +00:00
Gabriel Luong
d24ff0caa1 Bug 1934642 - Part 5: Add a top site provider that fetches from the MARS API r=android-reviewers,devota
Differential Revision: https://phabricator.services.mozilla.com/D232998
2025-01-02 05:46:35 +00:00
Gabriel Luong
d8470712d6 Bug 1934642 - Part 4: Refactor Client.fetchBodyOrNull from service-pocket to support-base r=android-reviewers,petru
Differential Revision: https://phabricator.services.mozilla.com/D232997
2025-01-02 05:46:31 +00:00
Gabriel Luong
66e446360a Bug 1934642 - Part 3: Rename service-contile to service-mars r=android-reviewers,devota
- Renames service-contile component to service-mars
- Moves the existing Contile classes into a contile package inside of service-mars

Differential Revision: https://phabricator.services.mozilla.com/D232996
2025-01-02 05:46:29 +00:00
Gabriel Luong
3f76c42637 Bug 1934642 - Part 2: Refactor CachedData and CacheState into separate files r=android-reviewers,devota
Differential Revision: https://phabricator.services.mozilla.com/D232995
2025-01-02 05:46:25 +00:00