Commit graph

188 commits

Author SHA1 Message Date
t-p-white
d4300473fe Bug 1813913 - Added support for Custom Tabs setColorScheme & setColorSchemeParams API 2024-03-05 17:52:49 +00:00
t-p-white
82ab4627f9 Bug 1812843 - Maintain aspect ratio when resizing a bitmap for the 'add' button in CustomTabsToolbarFeature 2024-02-05 21:48:57 +00:00
RebecaTudor
0f567f5991 Bug 1809798 - Loads the right wallpaper for the right orientation
Before, the orientation was taken from the application context which
didn't update during orientation change. Which caused to load the wrong
wallpaper when the phone was rotated. With these changes we can send
the correct orientation taken from the HomeActivity context.
2024-01-22 11:46:48 +00:00
Titouan Thibaud
2bea4582fd Bug 1871548 - Add telemetry for Open PDF in Fenix 2024-01-02 20:44:46 -05:00
Paul Marks
237be4fd72 Bug 1803465 - extend isURLLenient to match IPv6 literals (https://github.com/mozilla-mobile/firefox-android/pull/4090)
* Bug 1803465 - extend isURLLenient to match IPv6 literals

Also known as Bug 1807752

* Bug 1803465 - Keep autolinkWebUrlPattern in sync with isURLLenient.

This lets the "Fill link from clipboard" feature accept IPv6 literals
like https://[2606:4700:4700::1111]

* Bug 1803465 - more IPv6 test cases for isURLLenient

* Bug 1803465 - Update changelog.md

* Bug 1803465 - Bump IPv6 literals to Firefox 121

* Bug 1803465 - Reorganize unit tests

* Bug 1803465 - More unit tests

* Bug 1803465 - Replace INVERT() with comments.

* Bug 1803465 - Update changelog

---------

Co-authored-by: Jonathan Almeida <jalmeida@mozilla.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-11-22 18:32:11 +00:00
t-p-white
2650062e27 Bug 1859981 - Make 'content:' URI an invalid web URL 2023-11-17 10:32:15 +00:00
t-p-white
63beeed321 Bug 1863559 - Updated SafeUrl.stripUnsafeUrlSchemes to handle null unsafeText 2023-11-08 11:00:20 +00:00
Ryan VanderMeulen
37806f700e Bug 1861989 - Update Robolectric to version 4.11.1 2023-11-01 15:45:28 +00:00
William Durand
fa2b9c2f63 Bug 1851974 - Add Oppo to the strict mode exclusion list 2023-09-14 17:18:12 +00:00
mcarare
063c553913 Bug 1849833 - Replace deprecated compileSdkVersion.
This is replaced by defaultConfig compileSdk.
2023-09-11 06:36:20 +00:00
mcarare
849746c676 Bug 1847141 - Suppress UnspecifiedRegisterReceiverFlag for SDK < 33 2023-09-05 20:49:18 +00:00
Gabriel Luong
cd6f5e0e77 Bug 1795140 - Enable AbsentOrWrongFileLicense detekt rule 2023-08-14 17:53:38 +00:00
mcarare
f96d35cc7e Bug 1839366 - Add is exported flag when registering receivers. 2023-07-27 15:26:15 +00:00
MatthewTighe
c87183c8b5 Bug 1843168 - Expose Mockito through test support component 2023-07-24 18:02:09 +00:00
Roger Yang
300a547a52 Bug 1833960 - Use Browsers Cache utility in App Links 2023-06-27 19:01:56 +00:00
Ryan VanderMeulen
4ca4af9657 Bug 1838903 - Fix AC formatting issues and update baseline 2023-06-26 17:59:29 +00:00
mcarare
f014fb98a7 Bug 1830872 - Migrate Java code to Kotlin. 2023-06-19 18:07:22 +00:00
mcarare
0ebf72cd8b Bug 1830872 - Rename .java to .kt 2023-06-19 18:07:22 +00:00
Roger Yang
99b1c548da Bug 1838512 - Fix detekt issue from moving Browsers Cache utility into Android Components 2023-06-15 20:53:16 -04:00
Roger Yang
e1c97bc2fe Bug 1838512 - Move Browsers Cache utility into Android Components 2023-06-15 22:26:23 +00:00
Alexander Gramiak
da434d5091 Bug 1836338 - Improve DownloadUtils.uniqueFileName readability. 2023-06-01 20:09:29 +00:00
jackyzy823
6c61c0a86a Bug 1835453 - Handling content-type with extra information correctly 2023-06-01 14:08:24 +00:00
Arturo Mejia
31a47db0d7 Bug 1810197 - Improve DownloadUtils.changeExtension. 2023-05-24 16:01:36 +00:00
Rebeca Tudor
90ec7b0d35 Bug 1831898 - Fix install firefox banner not showing.
The problem was fixed by verifying if Firefox apps that are not
Focus versions are installed on the device.
2023-05-16 12:26:56 +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
Arturo Mejia
d19f900a10 Bug 1810197 - Revert "Fix condition of changeExtension"
This reverts commit d7105bcdc0197b9edc84ccbfba2b9fd75c2299cd.
2023-04-27 18:50: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
jackyzy823
e98a2a6be3 Bug 1810197 - Fix condition of changeExtension 2023-04-20 21:03:09 +00:00
Geoff Brown
6561b2de2b Bug 1825116 - Resolve many black, isort, and file-whitespace lint issues 2023-04-12 14:04:29 +00:00
mcarare
278fa80cc2 Bug 1824717 - Remove unnecessary AndroidJUnit4 runner. 2023-04-05 12:44:13 +00: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
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
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
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
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
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
Mugurell
099a42989e Bug 1800268 - Add new autocomplete providers for bookmarks and local/sync tabs 2023-01-31 11:15:37 +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
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
Christian Sadilek
4091b14a33 Fix android lint in composite builds 2022-11-21 13:40:53 -05: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
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