Commit Graph

81 Commits

Author SHA1 Message Date
Gabriel Luong
d3b0e47be5 Bug 1840210 - Rename mozac_ic_info to mozac_ic_information_fill_24 2023-07-10 22:15:49 +00:00
Gabriel Luong
6eb3873250 Bug 1840210 - Rename mozac_ic_forward to mozac_ic_forward_24 2023-07-10 22:15:49 +00:00
Gabriel Luong
4d231b86f3 Bug 1840210 - Rename mozac_ic_back to mozac_ic_back_24 2023-07-10 22:15:49 +00:00
Gabriel Luong
edc8c27961 Bug 1840210 - Rename mozac_ic_close to mozac_ic_cross_24 2023-07-10 22:15:49 +00:00
Geoff Brown
4b36c91e06 Bug 1825116 - Add license notice where missing (https://github.com/mozilla-mobile/firefox-android/pull/1637)
* Bug 1825116 - Add license notice where missing

* Bug 1825116 - Revert changes to strings.xml

* Bug 1825116 - Restore ic_cc*.xml
2023-04-19 21:08:15 +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
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
Mugurell
8b05ec2916 Bug 1800268 - Update samples to use the new API for autocomplete suggestions 2023-01-31 11:15:37 +00:00
Alexander Gramiak
bcc43f0530 Bug 1799230 - Use Non-Transitive R Classes
According to Android documentation: "This leads to faster builds and
the corresponding benefits of compilation avoidance."
2022-11-17 18:23:01 +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
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
80f0876bec [components] For https://github.com/mozilla-mobile/android-components/issues/12381: Handle allowBackup, fullBackupContent deprecation. 2022-08-31 09:47:47 +00:00
Gabriel Luong
65626ccd3a [components] Issue https://github.com/mozilla-mobile/android-components/issues/11864: Enable UnusedPrivateMember rule for detekt 2022-03-24 18:47:39 +00:00
Steven Knipe
ea9cb18430 [components] Add longClickListener documentation, fix style problems
move TwoStateButton background to match argument order
2021-08-02 12:24:51 +00:00
Steven Knipe
7fe1b10694 [components] Update the sample tablet interface's Reload button
to use the new TwoStateButton and have the same
functionality as the phone's reload button
2021-08-02 12:24:51 +00:00
Sebastian Kaspari
ce323400dd [components] Run ktlintFormat to fix new ktlint errors. 2021-07-28 12:03:23 +00:00
Sebastian Kaspari
f14b267388 [components] Issue https://github.com/mozilla-mobile/android-components/issues/10335: Update dependencies to support Jetpack Compose and add first prototype components.
* Issue https://github.com/mozilla-mobile/android-components/issues/10335: Upgrade to Gradle 7.
* Update Android Gradle Plugin to 7.0.0 Beta 2.
* Issue https://github.com/mozilla-mobile/android-components/issues/10335: Generate BuildConfig with VERSION_CODE and VERSION_NAME fields in library modules (for Glean).
* Issue https://github.com/mozilla-mobile/android-components/issues/10335: Add first component using Jetpack Compose: compose-browser-toolbar.
* Issue https://github.com/mozilla-mobile/android-components/issues/10335: Introduce Jetpack Compose bindings for lib-state.
* Issue https://github.com/mozilla-mobile/android-components/issues/10335: Upstream Jetpack Compose toolbar prototype from Reference Browser.
* Issue https://github.com/mozilla-mobile/android-components/issues/10335: Add TargetTab helper for observing specific tabs.
* Issue https://github.com/mozilla-mobile/android-components/issues/10335: Add compose-engine component for adding Jetpack Compose bindings to a concept-engine implementation.
* Issue https://github.com/mozilla-mobile/android-components/issues/10335: Add new sample app (samples-compose-browser) for prototyping browser UI using Jetpack Compose.
* Issue https://github.com/mozilla-mobile/android-components/issues/10335: Update to Beta 3 of the Android Gradle plugin.
* Issue https://github.com/mozilla-mobile/android-components/issues/10335: Allow usage of http when substituting maven repositories in CI.
* Issue https://github.com/mozilla-mobile/android-components/issues/10335: Rename TabTarget helper to just Target.
* Issue https://github.com/mozilla-mobile/android-components/issues/10335: Make BrowserToolbar follow target tab too.
* Add awesomebar prototype using Jetpack Compose.
* Update to Gradle 7.0.2.
2021-07-20 16:22:26 +00:00
Sebastian Kaspari
28a76101be [components] Update Kotlin to 1.5.10 (and Coroutines to 1.5.0 and Room to 2.3.0). 2021-07-19 09:32:44 +00:00
mcarare
636adaf2a9 [components] For https://github.com/mozilla-mobile/android-components/issues/10404: Remove deprecated kotlin-android-extensions plugin
(cherry picked from commit d99621583ceb11e7d91ebe284e40aec145793e48)
2021-06-15 08:32:26 +00:00
Christian Sadilek
4dfb6d92c1 [components] Revert "For https://github.com/mozilla-mobile/android-components/issues/10404: Remove deprecated kotlin-android-extensions plugin"
This reverts commit d99621583ceb11e7d91ebe284e40aec145793e48.
2021-06-14 18:09:24 +00:00
mcarare
17c2336fde [components] For https://github.com/mozilla-mobile/android-components/issues/10404: Remove deprecated kotlin-android-extensions plugin 2021-06-14 10:05:57 +00:00
Christian Sadilek
c9d791c53b [components] Adjust detekt TooManyFunctions threshold 2021-03-18 15:25:40 +00:00
Sebastian Kaspari
b067fd7e21 [components] Fix new lint errors after AndroidX update. 2020-12-02 12:17:31 +00:00
Tiger Oakes
a2dda76fac [components] Add nested menu functionality 2020-07-24 09:32:40 -07:00
Tiger Oakes
e83cf8b1d2 [components] Create new menu2 component
browser-menu v2: A new browser menu designed to work with lib-state.

This introduces a new API using immutable data classes to represent
options. Stateful functionality like the two-state button is replaced
with swapping out data classes and submitting a new list of options.

Internally this uses a recycler view and the view holders intentionally
do not map 1:1 to data classes. This way we can use different views
based on properties instead of introducing all new classes for every
combination of properties.
2020-07-24 09:31:23 -07:00
Kate Glazko
ff29354b85 [components] For https://github.com/mozilla-mobile/android-components/issues/6324 Allow customization of display url in toolbar 2020-03-19 15:18:40 -07:00
Christian Sadilek
3b1c7e2d1d [components] Closes https://github.com/mozilla-mobile/android-components/issues/1912: Call speculativeConnect from toolbar and awesomebar 2020-03-02 16:13:30 -05:00
ekager
511ba588ee [components] For https://github.com/mozilla-mobile/android-components/issues/6102 : Add lint checks for using app namespace instead of android for drawables 2020-03-02 09:16:14 -08:00
Sebastian Kaspari
1fa9f950a0 [components] Issue https://github.com/mozilla-mobile/android-components/issues/1514: samples-toolbar: Remove unused resources. 2019-10-22 11:48:06 -04:00
Sebastian Kaspari
38a16d3211 [components] Issue https://github.com/mozilla-mobile/android-components/issues/1514: BrowserToolbar: Fix long click handler. 2019-10-22 11:48:06 -04:00
Sebastian Kaspari
11c1e9cbdf [components] Issue https://github.com/mozilla-mobile/android-components/issues/1514: Update unit tests. 2019-10-22 11:47:36 -04:00
Sebastian Kaspari
db088f641f [components] Issue https://github.com/mozilla-mobile/android-components/issues/1514: Update samples-toolbar to use new toolbar API and add Fenix toolbar samples. 2019-10-22 11:47:36 -04:00
Denys M
b95c932f81 [components] For https://github.com/mozilla-mobile/android-components/issues/4460. Fix detekt warning about license in project files. 2019-09-24 01:01:03 +04:00
Tiger Oakes
5eb00aea8e [components] Issue https://github.com/mozilla-mobile/android-components/issues/3647 - Bring back siteSecurityColor 2019-08-12 12:31:34 -04:00
Tiger Oakes
0099bac510 [components] Turn on MagicNumber ignoreEnums rule 2019-07-15 11:41:43 -04:00
Tiger Oakes
e5b6e27420 [components] Fixes https://github.com/mozilla-mobile/android-components/issues/2605 - Replace pxToDp with dpToPx 2019-06-25 06:05:10 -07:00
Denys M
5c542c6adb [components] Fixes https://github.com/mozilla-mobile/android-components/issues/2784. Update android gradle plugin to 3.4.1. 2019-06-24 08:40:00 -07:00
Denys M
73ff84f06d [components] For https://github.com/mozilla-mobile/android-components/issues/2346. Enable kotlin warningsAsErrors for samples-toolbar module. 2019-05-28 09:27:40 -04:00
Tiger Oakes
2efff816d1 [components] Issue https://github.com/mozilla-mobile/android-components/issues/170: Change to invalidate pattern
Updates samples to show usage of the toolbar.invalidateActions() pattern
2019-05-21 14:55:33 -04:00
Tiger Oakes
f980fdf3c1 [components] Closes https://github.com/mozilla-mobile/android-components/issues/169, https://github.com/mozilla-mobile/android-components/issues/170: Dynamically update items
Adds the ability to dynamically update BrowserMenuItemToolbar buttons
by updating an observer. Additionally makes the single state buttons'
disabled state controlled through a lambda, similar to the
TwoStateButton.
2019-05-21 14:55:33 -04:00
Sebastian Kaspari
5c54ec453d [components] Closes https://github.com/mozilla-mobile/android-components/issues/842: Migrate from support libraries to AndroidX. 2019-05-02 16:08:55 +02:00
ekager
9cfc0c7732 [components] Close https://github.com/mozilla-mobile/android-components/issues/2201 - Adds TwoStateButton in BrowserMenuItemToolbar 2019-03-12 19:01:17 +01:00
Sawyer Blatz
d1a5af71d1 [components] Closes https://github.com/mozilla-mobile/android-components/issues/2316: Adding textSize parameter to SimpleBrowserMenuItem. 2019-03-11 14:35:01 -07:00
Emily Kager
eac37b6338 [components] Closes https://github.com/mozilla-mobile/android-components/issues/2235 - Removes redundant BrowserMenuImageText contentDescription 2019-03-06 10:51:54 +01:00
Sebastian Kaspari
67a1814a26 [components] Closes https://github.com/mozilla-mobile/android-components/issues/2077: Toolbar: Allow returning Boolean from "URL commit listener" to control switching to display mode. 2019-02-15 21:02:06 +01:00
Sebastian Kaspari
34ef5e14d4 [components] Issue https://github.com/mozilla-mobile/android-components/issues/2068: Toolbar sample app: Add configuration using private mode. 2019-02-15 08:33:12 -05:00
Arturo Mejia
d9b55396d7 [components] Adding sample code for menu customization to Sample Toolbar app. 2019-01-18 11:35:16 -05:00
Mitchell Hentges
3ee4d96a84 [components] Reads componentsVersion from .buildconfig.yml 2019-01-11 10:08:32 +01:00
Sebastian Kaspari
4c18208bcd [components] Closes https://github.com/mozilla-mobile/android-components/issues/1485: browser-domains: Move new classes to "autocomplete" sub package. 2018-11-27 20:37:12 -05:00