Commit graph

1101 commits

Author SHA1 Message Date
Gabriel Luong
76d275939e Bug 1833221 - Update metrics.md with the new autogenerated glean verison 2023-05-16 00:04:27 +00:00
github-actions
5cb5a04ca9 Import translations from android-l10n 2023-05-15 00:32:34 +00:00
mike a
5743e44398 Bug 1807138 – increase snackbar width for tablets 2023-05-09 22:18:37 +00:00
mike a
0f6ee09218 Bug 1815637 - Add rtl support 2023-05-09 18:41:08 +00:00
mcarare
47cbef432f Bug 1830282 - Replace Focus UrlUtils.java methods with URLStringUtils from AC.
Move new methods to AC. Also remove unused methods.
Migrate corresponding tests to AC components.
2023-05-09 07:22:18 +00:00
github-actions
570991db5c Import translations from android-l10n 2023-05-09 00:34:46 +00:00
Ryan VanderMeulen
e4c18d61f3 Bug 1831023 - Update AndroidX Appcompat to version 1.6.1 (https://github.com/mozilla-mobile/firefox-android/pull/1884)
* Bug 1831023 - Update AndroidX Appcompat to version 1.6.1

* Bug 1831023 - Add manifest entry for push notification permission

* Bug 1831023 - Add suppression for MissingPermission linter failure

* Bug 1831023 - Add super.onBackPressed() to TrackingProtectionPanelDialogFragment.kt

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-05-03 23:27:40 +00:00
github-actions
dc5a449c21 Import translations from android-l10n 2023-05-03 00:44:14 +00:00
github-actions
6fdbe40318 Import translations from android-l10n 2023-04-29 00:38:27 +00:00
Arturo Mejia
d19f900a10 Bug 1810197 - Revert "Fix condition of changeExtension"
This reverts commit d7105bcdc0197b9edc84ccbfba2b9fd75c2299cd.
2023-04-27 18:50:45 +00:00
Noah Bond
830d0e0cc1 Bug 1826457 - Update Compose version to 1.4.2 and Lifecycle version to 2.6.1 2023-04-27 03:17:17 +00:00
github-actions
0806f10ee7 Import translations from android-l10n 2023-04-27 00:48:48 +00:00
github-actions
cbcc2058d5 Import translations from android-l10n 2023-04-26 01:24:45 +00:00
Ryan VanderMeulen
603ad32215 Bug 1829228 - Update Kotlin to 1.8.20 and Compose Compiler to 1.4.6 2023-04-25 15:56:27 +00:00
github-actions
325ddd8dfd Import translations from android-l10n 2023-04-25 02:51:47 +00:00
Ben Dean-Kawamura
fe1ad0b0e0 Bug 1823462 - New application-services release system
Application services is going to switch to rapid-release / train style
model where:
  - The version numbers correspond to the Fx version (113.x for the
    current nightly cycle).
  - There are nightly builds for the current nightly release (for
    example 113.[timestamp]
  - At the end of the nightly release cycle, there's a release (for
    example 113.0)
  - There may be subsequent releases if changes are uplifted (for
    example 113.1)

- Updated the gradle code to handle the new system.  The application
  services versioning is stored in the version/channel fields of the
  `ApplicationServicesConfig` object.
- Updated the gradle code to fetch packages from the Maven
  nightly/staging repos if needed.
- Updated relbot to 6.1.0.  This is needed to handle the a-s nightly
  version bump.
- Updated creating-a-release-branch docs
2023-04-25 02:13:24 +00:00
github-actions
4f4b08518d Import translations from android-l10n 2023-04-22 01:15:02 +00:00
jackyzy823
e98a2a6be3 Bug 1810197 - Fix condition of changeExtension 2023-04-20 21:03:09 +00:00
github-actions
639a0f0c29 Import translations from android-l10n 2023-04-20 03:44:36 +00:00
github-actions
9b4edb6c36 Import translations from android-l10n 2023-04-17 00:34:54 +00:00
Geoff Brown
6561b2de2b Bug 1825116 - Resolve many black, isort, and file-whitespace lint issues 2023-04-12 14:04:29 +00:00
github-actions
00a81b1d9a Import translations from android-l10n 2023-04-07 00:31:29 +00:00
mcarare
278fa80cc2 Bug 1824717 - Remove unnecessary AndroidJUnit4 runner. 2023-04-05 12:44:13 +00:00
Jonathan Almeida
39915ea252 Bug 1824434 - Improve visibility of license info (https://github.com/mozilla-mobile/firefox-android/pull/1501)
* Bug 1824434 - Improve visibility of license info

We are upstreaming some of the code that was vendored into Fenix, to be
shared from components, so that Focus can use it as well.

Why is this a new component? Inspecting our existing components, this
code doesn't fall under the concept of a "feature", and more closely
relates to being a "support" one instead. With that in mind, there
isn't a good existing support component to fold this into either.

There is also room for improvement in this component to include the
plugin or other license-related helpers.

* Bug 1824434 - Add UI tests for license menus

---------

Co-authored-by: dsmithpadilla <88508950+dsmithpadilla@users.noreply.github.com>
2023-04-03 13:08:14 -04:00
github-actions
8f0ac2dd65 Import translations from android-l10n 2023-04-03 00:36:25 +00:00
github-actions
c518b56b77 Import translations from android-l10n 2023-04-02 00:32:58 +00:00
github-actions
a7adccfe8a Import translations from android-l10n 2023-04-01 00:50:58 +00:00
mcarare
0308d1b859 Bug 1811795 - Allow showing an explanation prompt before requesting permission. 2023-03-30 15:04:03 -04:00
mcarare
af41a698b0 Bug 1796348 - Remove unused notify extension methods in SharedIdsHelper. 2023-03-30 15:04:03 -04:00
mcarare
4d40582169 Bug 1796348 - Implement a lint check to avoid calling notify directly.
All attempts to show a notification should be handled through NotificationDelegate.
2023-03-30 15:04:03 -04:00
mcarare
bc1f03d940 Bug 1796348 - Implement a notification delegate.
This can be used to show notifications or request notifications permission.
2023-03-30 15:04:03 -04:00
Titouan Thibaud
1ef2daa5b5 Bug 1805683 - upstream Nimbus Messaging from Fenix to Android Components 2023-03-30 13:05:20 +00:00
t-p-white
e01472a646 Bug 1820467 - Removed dependency to google_material from support-ktx gradle. (https://github.com/mozilla-mobile/firefox-android/pull/1132)
* Bug 1820467 - Removed dependency to google_material from support-ktx gradle.
Moved SnackbarDelegate.kt to ui-widget components.

* Bug 1820467 - PR change. Move build check to caller. Updated dependencies for Focus and Sample Browser

* Bug 1820467 - Force toolchain rebuild, build fix

* Bug 1820467 - Re-work from PR

---------

Co-authored-by: t-p-white <t-p-white>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-03-30 11:10:59 +00:00
github-actions
0165dc1e26 Import translations from android-l10n 2023-03-30 04:23:23 +00:00
github-actions
375572ff11 Import translations from android-l10n 2023-03-29 00:39:47 +00:00
github-actions
6c42cdf1a1 Import translations from android-l10n 2023-03-28 00:32:36 +00:00
github-actions
588ebe355b Import translations from android-l10n 2023-03-25 00:35:22 +00:00
github-actions
f20d8c91f6 Import translations from android-l10n 2023-03-24 00:36:18 +00:00
github-actions
a356a46910 Import translations from android-l10n 2023-03-18 00:40:05 +00:00
github-actions
d322bf24cf Import translations from android-l10n 2023-03-17 00:37:08 +00:00
Jonathan Almeida
367901441b Bug 1812149 - Add ActivityContextWrapper before updating locale
From ohall's learnings, we know that we need to use the original Android
Activity Context with the system PrintManager. When a configuration
change happens, a new Context is created and the original is lost.
The most straight-forward way to do that is to use a ContextWrapper
which internally holds a reference to the original context.
2023-03-15 16:50:35 -04:00
github-actions
2d1efd1e70 Import translations from android-l10n 2023-03-15 00:36:59 +00:00
github-actions
e3ef747da9 Import translations from android-l10n 2023-03-14 01:13:53 +00:00
Roger Yang
824a3e2877 Bug 1822106 - Move experimenter.yaml file location 2023-03-13 17:48:00 +00:00
github-actions
9a01483c26 Import translations from android-l10n 2023-03-13 03:36:30 +00:00
github-actions
54c49efedf Import translations from android-l10n 2023-03-12 15:03:52 +00:00
github-actions
8b45c49747 Import translations from android-l10n 2023-03-09 20:35:59 -05:00
github-actions
f5ca4d2c8c Import translations from android-l10n 2023-03-09 00:54:00 +00:00
github-actions
8875d45f75 Import translations from android-l10n 2023-03-08 04:16:31 +00:00
github-actions
e33d341c5a Import translations from android-l10n 2023-03-07 01:06:53 +00:00
Ryan VanderMeulen
0e5e70291c Bug 1820233 - Remove unneeded kotlin_stdlib inclusions and re-enable Werror in detekt build.gradle 2023-03-07 00:12:18 +00:00
t-p-white
194117d082 Bug 1809305 - Allow user to copy an image to the clipboard (https://github.com/mozilla-mobile/firefox-android/pull/948)
* Bug 1809305 - Allow user to copy an image to the clipboard

* Bug 1809305 - Update import & remove unnecessary gradle androidTestImplementation dependency

* Bug 1809305 - PR changes

* Bug 1819746 - Add explicit dependency to support-ktx

* Add buildconfig changes needed after adding support-ktx to componse-engine

---------

Co-authored-by: t-p-white <t-p-white>
Co-authored-by: Christian Sadilek <christian.sadilek@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-03-06 12:16:22 +00:00
Ryan VanderMeulen
08532594e4 Bug 1820176 - Update AC to ktlint 0.48.2 2023-03-03 20:14:13 +00:00
github-actions
46ce2edb95 Import translations from android-l10n 2023-03-03 03:14:45 +00:00
mcarare
1f589a2e0b Bug 1802817 - Set namespace via DSL in gradle build files.
See https://developer.android.com/studio/build/configure-app-module#set-namespace
and https://issuetracker.google.com/issues/172361895
2023-03-02 17:13:09 +00:00
mcarare
cd1b348c9b Bug 1802817 - Rename DSL object from lintOptions to lint.
DSL object for configuring lint options lintOptions is deprecated.
2023-03-02 17:13:09 +00:00
mcarare
922b5f6643 Bug 1802817 - Rename AC Dependencies to ComponentsDependencies.
This change is needed in order to avoid clashes with Dependencies class introduced
in Gradle from 7.6 version.
2023-03-02 17:13:09 +00:00
Jonathan Almeida
44b528d25a Bug 1819776 - Remove unused test dependencies from support-rusthttp
These dependencies are not needed and for some reason this fixes the
build failure we are seeing on CI that is expecting the artifact
`androidx.test:monitor:1.4.0`.
2023-03-02 02:19:28 +00:00
ohall-m
3d6e24b0a1 Bug 1809919 - Implement ActivityContextDelegate in AC
This bug implements the GeckoView.ActivityContextDelegate in AC. The
purpose of this feature is to give GeckoView access to the containing
activity to start a PrintManager (or for potential other uses). Not to
be confused with the runtime delegate of GeckoActivityDelegate, which is
tightly tied to webauthn.
2023-02-15 17:54:07 +00:00
Calixte Denizet
e43f35e230 Bug 1815195 - Avoid a redundant file extension when saving a real pdf file
and avoid to have a too long filename.
2023-02-08 11:10:00 +00:00
iorgamgabriel
9ffa51fedf Bug 1792926 - After downloading, the download name was fixed. Check if the string is empty. 2023-02-07 10:55:45 +00:00
Jan-Erik Rediger
049f24aa72 Glean: Export new ReasonCode class and remove unused ones 2023-02-01 13:08:39 +00:00
mcarare
89a94df1f2 Bug 1795423 - Add unique keys to permission requests. 2023-02-01 06:46:12 +00:00
mcarare
7ed3bde9f6 Bug 1795423 - Move Focus requestInPlacePermissions extension to AC support utils. 2023-02-01 06:46:12 +00:00
Gabriel Luong
6ef21185f3 Bug 1814228 - Remove unused locales for support-migration and browser-awesomebar 2023-01-31 19:19:53 +00:00
Mugurell
099a42989e Bug 1800268 - Add new autocomplete providers for bookmarks and local/sync tabs 2023-01-31 11:15:37 +00:00
Mozilla L10n Automation Bot
bd17ff7972 Import l10n. 2023-01-30 01:38:45 +00:00
Mozilla L10n Automation Bot
2269ea9ce0 Import l10n. 2023-01-27 03:14:03 +00:00
Mozilla L10n Automation Bot
6b9e4303df Import l10n. 2023-01-25 01:39:12 +00:00
Mozilla L10n Automation Bot
039605fd83 Import l10n. 2023-01-23 00:43:58 +00:00
Jan-Erik Rediger
ef76ae1aab Update to application-services 96.3.0 2023-01-18 21:02:41 +00:00
mcarare
76200cd92e Upstream checking for device manufacturer for LG devices. 2023-01-04 10:26:24 +00:00
mcarare
47a9a4d68d Upstream checking for device manufacturer for One Plus devices. 2023-01-03 08:32:00 +00:00
Mozilla L10n Automation Bot
bec0bb4839 Import l10n. 2022-12-28 02:15:09 +00:00
Mozilla L10n Automation Bot
130360184d Import l10n. 2022-12-27 01:01:49 +00:00
Mozilla L10n Automation Bot
c68f960d63 Import l10n. 2022-12-26 00:44:21 +00:00
Mozilla L10n Automation Bot
f1082aeac8 Import l10n. 2022-12-24 00:48:23 +00:00
Mozilla L10n Automation Bot
eb88d37e79 Import l10n. 2022-12-23 17:38:00 +00:00
mcarare
bd3f0ebdca Upstream checking for device manufacturer. 2022-12-22 12:11:21 +00:00
mcarare
08a967d36b Upstream determining the device manufacturer. 2022-12-22 12:11:21 +00:00
mcarare
328d5040dd Bug 1805832 - Add additional checked casts. 2022-12-20 21:47:10 +00:00
Mozilla L10n Automation Bot
05c9dbc5fa Import l10n. 2022-12-19 00:38:58 +00:00
Mozilla L10n Automation Bot
0e4db19ec0 Import l10n. 2022-12-17 00:57:04 +00:00
rahulsainani
a4ee669c3e Bug - 1804690 Expose allowEmulatorLoopback to allow emulator to access network of the host machine sidestepping the TLS error 2022-12-08 17:36:11 +00:00
Mozilla L10n Automation Bot
531d9e6164 Import l10n. 2022-12-08 15:10:55 +00:00
DreVla
a45a324cc6 Bug 1798873 - Exclude current app from share text targets 2022-11-28 13:14:01 +00:00
DreVla
5f84512940 Bug 1798873 - Refactor the createChooser method to be used from anywhere. 2022-11-28 13:14:01 +00:00
Christian Sadilek
4091b14a33 Fix android lint in composite builds 2022-11-21 13:40:53 -05:00
Alexandru2909
37b09f7b2b Bug 1796379 - Upstream String.toShortUrl to support-ktx 2022-11-21 13:36:48 +00:00
Ben Dean-Kawamura
839392cd8c Removed code to report Sentry errors for Rust log::error calls
The new system was merged in #12266 and we have started using it for all
components in app-services.  I've been checking the Sentry reports and
it seems like it's working, so let's remove the old one.
2022-11-21 07:03:49 +00:00
Mihai Adrian Carare
e087b524a6 Bug 1796353 - Build with compileSdkVersion for Android 13 / API 33. (https://github.com/mozilla-mobile/firefox-android/pull/62)
* Bug 1796353 - Build with compileSdkVersion for Android 13 / API 33.

* Bug 1796353 - Update method signature for View.AccessibilityDelegate.

* Bug 1796353 - Handle AccessibilityNodeInfo.CollectionInfo.obtain deprecation.

* Bug 1796353 - Update method signature for View.OnAttachStateChangeListener.

* Bug 1796353 - Handle getParcelableExtra(String) deprecation.

* Bug 1796353 - Handle getParcelable(String) deprecation.

* Bug 1796353 - Handle getParcelableArrayListExtra(String) deprecation.

* Bug 1796353 - Move URLStringUtils to ktx package.

This is needed to avoid circular dependencies for some needed changes.

* Bug 1796353 - Suppress deprecation for get(String).

* Bug 1796353 - Replace removed method setAppCacheEnabled.

* Bug 1796353 - Handle PackageManager methods deprecations.

* Bug 1796353 - Handle getSerializable(String) deprecation.

* Bug 1796353 - Handle stopForeground deprecation.

* Bug 1796353 - Update method signature for GestureDetector.SimpleOnGestureListener.

* Bug 1796353 - Handle AccessibilityEvent.obtain deprecation.

* Bug 1796353 - Handle getParcelableArrayList(String) deprecation.

* Bug 1796353 - Handle getParcelableArray(String) deprecation.

* Bug 1796353 - Handle getSerializableExtra(String) deprecation.

* Bug 1796353 - Handle readParcelable(classLoader) deprecation.

* Bug 1796353 - Handle FillResponse.Builder setAuthentication deprecation.

* Bug 1796353 - Handle Dataset.Builder setValue deprecation.

* Bug 1796353 - Suppress get(String) deprecation.

We still need to use this method because we do not know the type beforehand.

* Bug 1796353 - Handle onBackPressed() deprecation.

* Bug 1796353 - Suppress queryBroadcastReceivers deprecation.

* Bug 1796353 - Suppress package manager methods deprecation.

* Bug 1796353 - Catch and report exceptions when handling touch event detection.

* Bug 1796353 - Suppress deprecation for getPackageInfo used in tests with SDK 28.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-11-16 00:35:40 -05:00
mcarare
ef3c3593c1 [components] No issue: Update AndroidX Annotation to the latest version.
Update imports for annotations moved to Companion Object.
2022-10-25 19:19:29 +00:00
mcarare
e1ab54ff44 [components] No issue: Update metrics.md files from glean_parser v6.2.1 2022-10-25 17:15:56 +00:00
iorgamgabriel
9b440c510a [components] For #1795650 The colors of the icons from the status bar should be in contrast with the status bar background color. 2022-10-20 15:07:25 +00:00
sarah541
50cbdca863 [components] Create extension for truncating urls 2022-10-19 17:04:43 +00:00
mcarare
4ad330adbc [components] For https://github.com/mozilla-mobile/android-components/issues/12489: Upgrade kotlin, coroutines, compose compiler to latest versions.
Upgrade kotlin to 1.7.20, coroutines to 1.6.4 and compose compiler to 1.3.2.
Replace deprecated Xopt-in with op-in.
Replace deprecated Xjvm-default=enable with Xjvm-default=all.
Remove useIR property that is now default true.
2022-10-18 08:20:59 +00:00
Gabriel Luong
d9d783b698 [components] Issue https://github.com/mozilla-mobile/android-components/issues/12939: Address all ktlint issues 2022-10-17 17:07:40 -04:00
mcarare
5039c5e30d [components] For https://github.com/mozilla-mobile/android-components/issues/12500: Fix ktlint issues.
Also remove issues from ktlint baseline.
2022-10-11 07:17:12 +00:00
mcarare
89c716d240 [components] For https://github.com/mozilla-mobile/android-components/issues/12500: Handle OnLifecycleEvent deprecations. 2022-10-11 07:17:12 +00:00
mcarare
4b082d646d [components] For https://github.com/mozilla-mobile/android-components/issues/12500: Fix duplicate class androidx.lifecycle.ViewModelLazy. 2022-10-11 07:17:12 +00:00
mcarare
6d98cb9623 [components] For https://github.com/mozilla-mobile/android-components/issues/12500: Update navigation, lifecycle, core and fragment dependencies. 2022-10-11 07:17:12 +00:00
Mozilla L10n Automation Bot
fa9f4b9ef1 [components] Import l10n. 2022-09-10 00:20:45 +00:00
Alexandru2909
d12b67a0ec [components] For https://github.com/mozilla-mobile/android-components/issues/12151 - Support step attribute in TimePicker 2022-09-08 14:37:09 +00:00
mcarare
92fe0c0234 [components] For https://github.com/mozilla-mobile/android-components/issues/12724: Upgrade compose to 1.2.1 version.
Split versioning of compose compiler.
Enable Xjvm-default to allow inheriting from interfaces with '@JvmDefault' members
like RememberObserver.
2022-09-08 08:22:09 +00:00
Mozilla L10n Automation Bot
1b14baec2a [components] Import l10n. 2022-09-08 00:20:22 +00:00
mcarare
8dd066c883 [components] For https://github.com/mozilla-mobile/android-components/issues/12381: Suppress AppBundleLocaleChanges warning. 2022-08-31 09:47:47 +00:00
mcarare
97ae5efa57 [components] For https://github.com/mozilla-mobile/android-components/issues/12381: Remove VisibleForTesting annotation.
Values are also accessed from code, not just from tests.
2022-08-31 09:47:47 +00:00
Mozilla L10n Automation Bot
291f58aa12 [components] Import l10n. 2022-08-29 00:25:29 +00:00
Marcus Hoffmann
b16810ea41 [components] Close https://github.com/mozilla-mobile/android-components/issues/12689: Make sharing images work with Direct Share
Image sharing currently only works when sharing to an app but not when
using the Android Direct Share feature, where it fails with a
SecurityException.

"Direct Share" is what Android calls the app created shortcuts,
i.e. individual chats from a messaging application.

The code pretty much already does the right thing (i.e. setting
the FLAG_GRANT_READ_URI_PERMISSION on the target intent as well as the
Chooser action, as described in ACTION_CHOOSE Api docs[1]) but there's
some platform internals that seem to go wrong here but we can work
around it with this patch.

https://issuetracker.google.com/issues/151386328 describes a similar
Problem, especially https://github.com/mozilla-mobile/android-components/issues/12 in there offers a similar workaround and an
explanation:

  The underlying problem is that ACTION_SEND is using EXTRA_STREAM for the
  content URI. But the FLAG_GRANT_*_URI_PERMISSION mechanism only works
  with URIs in Intent.data and Intent.clipData. The framework contains
  some code that tries to work around this limitation. But it doesn't
  handle this particular case. Intent.createChooser() migrates the flags
  and data/clipData from the target Intent, but it does so before the
  framework had a chance to fix up the target Intent via Intent.migrateExtraStreamToClipData().

And indeed moving the clipData into the inner intent makes Direct Share
work and preserves the image preview in the Intent.

[1] file:///<SDK-DIR>/docs/reference/android/content/Intent.html#ACTION_CHOOSER
  If you need to grant URI permissions through a chooser, you must specify
  the permissions to be granted on the ACTION_CHOOSER Intent in addition to
  the EXTRA_INTENT inside. This means using setClipData(ClipData) to
  specify the URIs to be granted as well as FLAG_GRANT_READ_URI_PERMISSION
  and/or FLAG_GRANT_WRITE_URI_PERMISSION as appropriate.
2022-08-26 09:20:04 +00:00
Tarik Eshaq
f52779dfab [components] Upgrades appservices to 94.1.0 2022-08-19 12:35:38 +00:00
Mozilla L10n Automation Bot
a4c99e58fc [components] Import l10n. 2022-08-19 00:29:30 +00:00
Jonathan Almeida
7bb88450b5 [components] Close https://github.com/mozilla-mobile/android-components/issues/12267: Add support for Save to PDF in GeckoEngineSession
Adds support for Save to PDF from the GeckoSession by plugging the
API into `onExternalResponse` to provide the same flow as a typical
file download experience would be.

Co-authored-by: Olivia Hall <ohall@mozilla.com>
2022-08-15 14:29:34 +00:00
Mozilla L10n Automation Bot
3c3e730c27 [components] Import l10n. 2022-08-13 00:21:38 +00:00
Ben Dean-Kawamura
1515fd04b8 [components] Removing the support-migration component now that it's no longer used 2022-08-12 13:55:29 +00:00
Mozilla L10n Automation Bot
23a7b3f437 [components] Import l10n. 2022-08-08 00:27:30 +00:00
indu
30fb4f6fbe [components] For https://github.com/mozilla-mobile/android-components/issues/12544: Allow screen to turn off after media is paused/stopped (https://github.com/mozilla-mobile/android-components/pull/12560)
* For https://github.com/mozilla-mobile/android-components/issues/12544: Allow screen to turn off after media is paused/stopped

This fix allows the device to sleep when the media being played is paused/stopped after the system screen timeout is passed

Co-Authored-By: Mugurell <Mugurell@users.noreply.github.com>
Co-Authored-By: Mihai Adrian Carare <48995920+mcarare@users.noreply.github.com>

* For https://github.com/mozilla-mobile/android-components/issues/12544: Allow screen to turn off after media is paused/stopped

This fix allows the device to sleep when the media being played is paused/stopped after the system screen timeout is passed

Co-Authored-By: Mugurell <Mugurell@users.noreply.github.com>
Co-Authored-By: Mihai Adrian Carare <48995920+mcarare@users.noreply.github.com>

Co-authored-by: Mugurell <Mugurell@users.noreply.github.com>
Co-authored-by: Mihai Adrian Carare <48995920+mcarare@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-08-05 09:42:21 +00:00
Mozilla L10n Automation Bot
a4b61db992 [components] Import l10n. 2022-07-28 00:26:37 +00:00
Ben Dean-Kawamura
e163f82bc2 [components] Dumping app-services to v93.6.0 2022-07-15 19:31:07 +00:00
Ben Dean-Kawamura
a21c5956cc [components] Don't try to parse migration metrics from importLoginsAsync
A change in AS v93.6.0 made it so the underlying function
`LoginsStore.import_multiple` no longer returns the metrics as a JSON
string string.  Instead it just encodes the unit struct. This was a
breaking change, but it's not listed properly in the CHANGELOG.

The fix is pretty simple: just assume that no logins failed to import.
2022-07-15 19:31:07 +00:00
Mugurell
044f8b777b [components] For https://github.com/mozilla-mobile/android-components/issues/12441 - Update metrics.md files from glean_parser v6.1.1 2022-07-06 16:29:58 +00:00
Mozilla L10n Automation Bot
b957002826 [components] Import l10n. 2022-06-29 00:26:15 +00:00
Jan-Erik Rediger
706f1eb240 [components] Use patched Glean Gradle plugin to fix Windows build issues
The plugin has a single small change:
1c9577144a
2022-06-20 16:21:57 +00:00
Jonathan Almeida
bd35d30334 [components] Issue https://github.com/mozilla-mobile/android-components/issues/12230: Speculative fix for test failures in PromptFeatureTest 2022-06-15 19:23:49 +00:00
Ben Dean-Kawamura
ff019a3f4f [components] Add support for app-services error reporting.
- Added new component that hooks into the new app-services error
  reporter and listens for events.  When it sees an event it submits it
  to the crash reporter.
- Added support for customizing crash reports for these errors.
2022-06-14 17:51:29 +00:00
Jan-Erik Rediger
77db779226 [components] Fix order of imports 2022-06-09 18:08:13 +00:00
Jan-Erik Rediger
705c223b8a [components] Adopt APIs from Glean UniFFI 2022-06-09 18:08:13 +00:00
MatthewTighe
a22d90edc0 [components] for https://github.com/mozilla-mobile/android-components/issues/12065: add a SyncStore and some initial state properties 2022-05-27 17:22:48 +00:00
Mugurell
205f8c10dd [components] For https://github.com/mozilla-mobile/android-components/issues/12207 - Support optionally persisting the default value of a string preference
Moved the tests for string preferences to a new file where we can use
Robolectric for just this preferences type and test the actual behavior without
relying on mocking which would prevent full testing the change because of the
two readings using a `null` default.
2022-05-23 13:36:22 +00:00
Mozilla L10n Automation Bot
b251645572 [components] Import l10n. 2022-05-17 17:30:54 +00:00
Mozilla L10n Automation Bot
c3fcd60943 [components] Import l10n. 2022-05-13 00:22:43 +00:00
Mugurell
d78b06b6bf [components] For https://github.com/mozilla-mobile/android-components/pull/11175 - Migrate runBlocking and runBlockingTest to runTest in unit tests
Used `runTestOnMain` where `MainCoroutineRule` was used or needed to be used,
`runTest` elsewhere.

Extra effort for removing all `runBlocking` occurrences in unit tests.
`kotlinx.coroutines.test.runTest` is a test specific API that seems like a more
appropriate way for running tests in a coroutine than the general
`kotlinx.coroutines.runBlocking` api.
2022-05-10 13:45:03 +00:00
Mugurell
2458be9143 [components] For https://github.com/mozilla-mobile/android-components/pull/11175 - Add a new runTestOnMain top level function
This attempts to run the test in a new coroutine using the `TestDispatcher`
previously set through `Dispatchers.setMain(..)`.
2022-05-10 13:45:03 +00:00
Mugurell
2963708053 [components] For https://github.com/mozilla-mobile/android-components/issues/11755 - Replace TestCoroutineDispatcher with UnconfinedTestDispatcher
- Refactor out all usages of TestCoroutineDispatcher and TestCoroutineScope
- Refactor MainCoroutineRule to now use UnconfinedTestDispatcher by default.
This dispatcher will eagerly enter all launch or async blocks being more suited
to our codebase.
2022-05-10 13:45:03 +00:00
Mozilla L10n Automation Bot
ca994a2bb8 [components] Import l10n. 2022-05-10 00:23:03 +00:00
Mozilla L10n Automation Bot
acf35ca8b2 [components] Import l10n. 2022-05-09 00:25:31 +00:00
Mozilla L10n Automation Bot
8e44ec6a2b [components] Import l10n. 2022-05-08 23:01:10 +00:00
Gabriel Luong
6be587c3fc [components] Issue https://github.com/mozilla-mobile/android-components/issues/9838: Introduce CreditCardValidationDelegate and implement onCreditCardSave in GeckoCreditCardsAddressesStorageDelegate
- Introduces `CreditCardValidationDelegate` and a default implementation in `DefaultCreditCardValidationDelegate`
- Implements `onCreditCardSave` in `GeckoCreditCardsAddressesStorageDelegate`
- Refactors `CreditCard` from concept-engine to `CreditCardEntry` in concept-storage so that it can validated with the `CreditCardValidationDelegate`
2022-05-04 03:52:37 +00:00
Mozilla L10n Automation Bot
8997afe61d [components] Import l10n. 2022-04-29 00:21:59 +00:00
mcarare
c26a0753fc [components] For https://github.com/mozilla-mobile/android-components/issues/9684: Return false instead of throwing NPE. 2022-04-28 10:39:46 +00:00
mcarare
98761c0204 [components] For https://github.com/mozilla-mobile/android-components/issues/9684: Run all view tests on sdk 30. 2022-04-28 08:33:29 +00:00
Ben Dean-Kawamura
8f0ae3d397 [components] Added features to support application-services branch builds
Added support for branch-build settings in `local.properties`:
  - If `branchBuild.android-components.version` is set, then we
    set the android-components version to that exact string.

  - If `branchBuild.application-services.dir` is set, then run
    `build-scripts/substitute-local-appservices.gradle` script, like we
    do with `autoPublish`.  However, in this case, that script expects
    the app-services packages to be be built ahead of time with a
    specific version name specified by
    `branchBuild.application-services.version`.

  - Added support for the absolute paths when running the substutition
    scripts.

  - Updated `substitute-local-ac.gradle` to check the
    `localProperties.branchBuild.android-components.version`.

The plan is to use this feature to build/test fenix using a particular
checkout of application-services and androd-components, with the
versions set to the git commit ID.
2022-04-20 19:00:38 +00:00
Mugurell
f91cb8abe1 [components] For https://github.com/mozilla-mobile/android-components/issues/11753 - Update compose to 1.1.1 and Kotlin to 1.6.10
This also required updating room to >= 2.4.0.
This new version adds a deprecation of the `MigrationTestHelper` api used in
`LoginExceptionStorageTest` that is to be later fixed in https://github.com/mozilla-mobile/android-components/issues/11765.

`activity_compose` was also update to the latest stable version to ensure a
better match with the latest stable version for compose.

Used 1.6.10 for Kotlin although 1.6.20 is available to prevent any issues with
Compose 1.1.1 reported as an error at compile time:
"e: This version (1.1.1) of the Compose Compiler requires Kotlin version 1.6.10
but you appear to be using Kotlin version 1.6.20 which is not known to be
compatible.  Please fix your configuration (or
`suppressKotlinVersionCompatibilityCheck` but don't say I didn't warn you!)."
2022-04-18 17:28:25 +00:00
jknair
dab5e6e10e [components] For https://github.com/mozilla-mobile/android-components/issues/11998 lowercase-ing the scheme added while Normalizing the Url 2022-04-14 10:43:18 +00:00
Mozilla L10n Automation Bot
c2107d31cd [components] Import l10n. 2022-04-13 00:38:47 +00:00
Mozilla L10n Automation Bot
c839b8b4aa [components] Import l10n. 2022-03-21 22:01:32 +00:00
Mozilla L10n Automation Bot
1a59fe0d8f [components] Import l10n. 2022-03-19 00:25:14 +00:00
mcarare
5cd63ba807 [components] For https://github.com/mozilla-mobile/android-components/issues/11670: Use TestCoroutineDispatcher for runBlocking tests.
This avoids tests timing out.
2022-03-18 12:43:16 +00:00
mcarare
b90e41d3fe [components] For https://github.com/mozilla-mobile/android-components/issues/11670: Temporarily suppress deprecation for addResolveInfoForIntent. 2022-03-18 12:43:16 +00:00
mcarare
33d5df7988 [components] For https://github.com/mozilla-mobile/android-components/issues/11670: Use shadowOf(getMainLooper()).idle() to execute all posted tasks.
This is needed due to the new default Looper Mode - PAUSED in Robolectric.
2022-03-18 12:43:16 +00:00
Mozilla L10n Automation Bot
c6eeb51a18 [components] Import l10n. 2022-03-13 00:25:09 +00:00