2022-11-04 20:10:26 +01:00
|
|
|
[versions]
|
2024-01-08 17:33:10 +01:00
|
|
|
aboutlibraries = "10.10.0"
|
2023-12-12 23:25:09 +01:00
|
|
|
acra = "5.11.3"
|
2024-01-08 16:23:44 +01:00
|
|
|
agp = "8.2.1"
|
2024-01-08 17:47:51 +01:00
|
|
|
androidx-activity = "1.8.2"
|
2023-02-20 20:36:11 +01:00
|
|
|
androidx-appcompat = "1.6.1"
|
2023-11-16 16:40:38 +01:00
|
|
|
androidx-browser = "1.7.0"
|
2022-11-04 20:10:26 +01:00
|
|
|
androidx-cardview = "1.0.0"
|
|
|
|
androidx-constraintlayout = "2.1.4"
|
2023-10-13 14:23:17 +02:00
|
|
|
androidx-core = "1.12.0"
|
2023-02-20 20:36:22 +01:00
|
|
|
androidx-exifinterface = "1.3.6"
|
2024-01-08 17:39:43 +01:00
|
|
|
androidx-fragment = "1.6.2"
|
2023-02-04 20:22:29 +01:00
|
|
|
androidx-junit = "1.1.5"
|
2023-10-13 12:46:06 +02:00
|
|
|
androidx-lifecycle = "2.6.2"
|
2023-11-16 22:55:57 +01:00
|
|
|
androidx-media3 = "1.2.0"
|
2023-10-13 13:46:53 +02:00
|
|
|
androidx-paging = "3.2.1"
|
2023-09-27 15:38:28 +02:00
|
|
|
androidx-preference = "1.2.1"
|
2023-03-21 20:08:43 +01:00
|
|
|
androidx-recyclerview = "1.3.0"
|
2022-11-04 20:10:26 +01:00
|
|
|
androidx-sharetarget = "1.2.0"
|
2023-04-20 19:11:13 +02:00
|
|
|
androidx-splashscreen = "1.0.1"
|
2022-11-04 20:10:26 +01:00
|
|
|
androidx-swiperefresh-layout = "1.1.0"
|
2023-02-28 21:35:31 +01:00
|
|
|
androidx-testing = "2.2.0"
|
2023-10-07 19:30:11 +02:00
|
|
|
androidx-test-core-ktx = "1.5.0"
|
2022-11-04 20:10:26 +01:00
|
|
|
androidx-viewpager2 = "1.0.0"
|
2023-03-24 18:21:05 +01:00
|
|
|
androidx-work = "2.8.1"
|
2023-10-25 18:39:31 +02:00
|
|
|
androidx-room = "2.6.0"
|
feat: Periodically check for updates and alert user (#236)
Users can inadvertently get stuck on older versions of the app; e.g., by
installing from one F-Droid repository that stops hosting the app at
some later time.
Analytics from the Play Store also shows a long tail of users who are,
for some reason, on an older version.
On resuming `MainActivity`, and approximately once per day, check and
see if a newer version of Pachli is available, and prompt the user to
update by going to the relevant install location (Google Play, F-Droid,
or GitHub).
The dialog prompt allows them to ignore this specific version, or
disable all future update notifications. This is also exposed through
the preferences, so the user can adjust it there too.
A different update check method is used for each installation location.
- F-Droid: Use the F-Droid API to query for the newest released version
- GitHub: Use the GitHub API to query for the newest release, and check
the APK filename attached to that release
- Google Play: Use the Play in-app-updates library
(https://developer.android.com/guide/playcore/in-app-updates) to query
for the newest released version
These are kept in different build flavours (source sets), so that e.g.,
the build for the F-Droid store can only query the F-Droid API, the UI
strings are specific to F-Droid, etc. This also ensures that the update
service libraries are specific to that build and do not
"cross-contaminate".
Note that this *does not* update the app, it takes the user to either
the relevant store page (F-Droid, Play) or GitHub release page. The user
must still start the update from that page.
CI configuration is updated to build the different flavours.
2023-11-08 08:42:39 +01:00
|
|
|
app-update = "2.1.0"
|
2023-09-27 14:51:27 +02:00
|
|
|
autodispose = "2.2.1"
|
2022-11-04 20:10:26 +01:00
|
|
|
bouncycastle = "1.70"
|
|
|
|
conscrypt = "2.5.2"
|
2023-07-26 15:52:28 +02:00
|
|
|
coroutines = "1.7.3"
|
2023-03-10 20:30:55 +01:00
|
|
|
diffx = "1.1.1"
|
2023-03-30 19:24:05 +02:00
|
|
|
emoji2 = "1.3.0"
|
2023-02-04 20:22:29 +01:00
|
|
|
espresso = "3.5.1"
|
2023-01-09 21:06:47 +01:00
|
|
|
filemoji-compat = "3.2.7"
|
2023-10-13 14:59:45 +02:00
|
|
|
glide = "4.16.0"
|
2023-05-19 13:30:57 +02:00
|
|
|
# Deliberate downgrade, https://github.com/tuskyapp/Tusky/issues/3631
|
|
|
|
glide-animation-plugin = "2.23.0"
|
2023-02-23 17:34:04 +01:00
|
|
|
gson = "2.10.1"
|
2024-01-08 17:17:17 +01:00
|
|
|
hilt = "2.50"
|
refactor: Start creating core modules (#286)
The existing code base is a single monolithic module. This is relatively
simple to configure, but many of the tasks to compile the module and
produce the final app have to run in series.
This is unnecessarily slow.
This change starts to split the code in to multiple modules, which are:
- :core:account - AccountManager, to break a dependency cycle
- :core:common - low level types or utilities used in many other modules
- :core:database - database types, DAOs, and DI infrastructure
- :core:network - network types, API definitions, and DI infrastructure
- :core:preferences - shared preferences definitions and DI
infrastructure
- :core:testing - fakes and rules used across different modules
Benchmarking with gradle-profiler shows a ~ 17% reduction in incremental
build times after an ABI change. That will improve further as more code
is moved to modules.
The rough mechanics of the changes are:
- Create the modules, and move existing files in to them. This causes a
lot of churn in import arguments.
- Convert build.gradle files to build.gradle.kts
- Separate out the data required to display a tab (`TabViewData`) from
the data required to configure a tab (`TabData`) to avoid circular
dependencies.
- Abstract the repeated build logic shared between the modules in to
a set of plugins under `build-logic/`, to simplify configuration of
the application and library builds.
- Be explicit that some nullable types are non-null at time of use.
Nullable properties in types imported from modules generally can't be
smart cast to non-null. There's a detailed discussion of why this
restriction exists at
https://discuss.kotlinlang.org/t/what-is-the-reason-behind-smart-cast-being-impossible-to-perform-when-referenced-class-is-in-another-module/2201.
The changes highlight design problems with the current code, including:
- The main application code is too tightly coupled to the network types
- Too many values are declared unnecessarily nullable
- Dependency cycles between code that make modularisation difficult
Future changes will add more modules.
See #291.
2023-12-04 16:58:36 +01:00
|
|
|
junit = "4.13.2"
|
2024-01-08 12:28:04 +01:00
|
|
|
kotlin = "1.9.22"
|
2024-01-08 17:33:33 +01:00
|
|
|
kotlin-result = "1.1.18"
|
2024-01-08 12:28:04 +01:00
|
|
|
ksp = "1.9.22-1.0.16"
|
2023-02-21 19:43:51 +01:00
|
|
|
image-cropper = "4.3.2"
|
2024-01-08 17:04:26 +01:00
|
|
|
leakcanary = "2.13"
|
2024-01-08 16:23:44 +01:00
|
|
|
lint = "31.2.1" # = agp + 23.0.0 (= 8.2.1), see https://github.com/googlesamples/android-custom-lint-rules#lint-version
|
fix(deps): update dependency com.google.android.material:material to v1.10.0 (#172)
[![Mend Renovate logo
banner](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[com.google.android.material:material](https://togithub.com/material-components/material-components-android)
| `1.9.0` -> `1.10.0` |
[![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.android.material:material/1.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.android.material:material/1.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.android.material:material/1.9.0/1.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.android.material:material/1.9.0/1.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
---
### Release Notes
<details>
<summary>material-components/material-components-android
(com.google.android.material:material)</summary>
###
[`v1.10.0`](https://togithub.com/material-components/material-components-android/releases/tag/1.10.0)
[Compare
Source](https://togithub.com/material-components/material-components-android/compare/1.9.0...1.10.0)
### What's new since 1.9.0
- Added Predictive back support for search, bottom sheet, side sheet and
navigation drawer. Check out the [developer
documentation](https://togithub.com/material-components/material-components-android/blob/master/docs/foundations/PredictiveBack.md)
for more details.
- Add `Start-aligned` variant to Carousel component. Check out the
[developer
documentation](https://togithub.com/material-components/material-components-android/blob/master/docs/components/Carousel.md)
for more details.
- Badge component updates. Check out the [developer
documentation](https://togithub.com/material-components/material-components-android/blob/master/docs/components/BadgeDrawable.md)
for more details.
- Left & RTL side sheets. Check out the [developer
documentation](https://togithub.com/material-components/material-components-android/blob/master/docs/components/SideSheet.md)
for more details.
#### Important
##### New minimum requirements for your app's project:
- Update `compileSdkVersion` to `34`
#### Dependency Updates
| Dependency | Previous version | New version |
| - | - | - |
| Gradle | 7.2.0 | 7.4.2 |
| androidx.activity | -- | 1.8.0 |
| androidx.appcompat | 1.5.0 | 1.6.1 |
| androidx.resourceinspection:resourceinspection-annotation | -- | 1.0.1
|
| androidx.resourceinspection:resourceinspection-processor | -- | 1.0.1
|
#### Library Updates
- `A11y`
- Do not count headers for accessibility
([`917da52`](https://togithub.com/material-components/material-components-android/commit/917da52393a37695b8c611e130552babf7aea8bc))
- `Badging`
- Deprecate bottom badge gravities and update docs and usages in catalog
([`27abfdb`](https://togithub.com/material-components/material-components-android/commit/27abfdba4fd7622a1ca5aa95d20a0ba3d442b791))
- Add new attribute for vertical offset when font is large
([`2362f4b`](https://togithub.com/material-components/material-components-android/commit/2362f4b64be9d6337e7a214f8338925ddcc32ab0))
- Fix table formatting and remove unnecessary badge invalidation
([`44a97f4`](https://togithub.com/material-components/material-components-android/commit/44a97f4a83a68275311ad3ac544b3223c907564a))
- Fix crash caused by non-ascii strings
([`532b65d`](https://togithub.com/material-components/material-components-android/commit/532b65d008be12c6889aac1bc2de411af5356891))
- Badge cleanup/fixes:
([`4d50aa4`](https://togithub.com/material-components/material-components-android/commit/4d50aa41e714b4b0e0ec4a40672431d4d4f7d6d9))
- Add attribute to automatically adjust badge so that it is within the
anchor view's grandparent view's bounds
([`b706506`](https://togithub.com/material-components/material-components-android/commit/b706506c3d7e12df64375e116d587c2e9b96059b))
- Add getters/setters for vertical and horizontal badge padding
([`a0d0b53`](https://togithub.com/material-components/material-components-android/commit/a0d0b53472751ffafeacd829d5433afde7546db9))
- Allow text strings in badges
([`c1ef52b`](https://togithub.com/material-components/material-components-android/commit/c1ef52b8eaaad4bffe83ca0a7917406835ee5c7a))
- Center badge content more correctly
([`fc0de1b`](https://togithub.com/material-components/material-components-android/commit/fc0de1ba245186d9b74550f0ece2930aaf0df116))
- Add padding in between top and bottom edges of badge and text
([`8499b83`](https://togithub.com/material-components/material-components-android/commit/8499b83ba1fc6e211c8a7228947b03c1e3c30531))
- Integrating tokens
([`68c844c`](https://togithub.com/material-components/material-components-android/commit/68c844c91d9e54fca475bd503f01474f29cff559))
- Add shape appearance for badges
([`2ddcfe4`](https://togithub.com/material-components/material-components-android/commit/2ddcfe46b7603c89b6715ac4406aa3eb6c275f60))
- Update badge images
([`c1eba1b`](https://togithub.com/material-components/material-components-android/commit/c1eba1b26809fdc529fc599fc48dea165a202e22))
- `BottomAppBar`
- Fix bug with transparent top app bar when in bottom app bar layout
([`c22eb0d`](https://togithub.com/material-components/material-components-android/commit/c22eb0d31bbd1e87b244100b8ae7d5d7995394a6))
- Fix issue with pre-21 FAB elevation/shadow sometimes appearing
([`2ea3df9`](https://togithub.com/material-components/material-components-android/commit/2ea3df991f14488ef21593f5c72792dd470923d2))
- `BottomNavigationView`
- Integrate tokens and add shape appearance support
([`7bd9724`](https://togithub.com/material-components/material-components-android/commit/7bd97240786ad84eae6bdaac6b4fde767910022b))
- `BottomSheet`
- Fix sheet corners animation
([`a5ff190`](https://togithub.com/material-components/material-components-android/commit/a5ff190f529d2ce1e15906ca95ca5bc91b64a913))
- Update bottom sheet documentation
([`af1fa70`](https://togithub.com/material-components/material-components-android/commit/af1fa709792e1225df3fc582321c6a8287a221bf))
- Integrate tokens
([`86cd9d7`](https://togithub.com/material-components/material-components-android/commit/86cd9d70bf770fe45b5cf1e6755b0e12938430db))
- Add method to allow programmatically changing
shouldRemoveExpandedCorners behavior
([`c8a0d47`](https://togithub.com/material-components/material-components-android/commit/c8a0d478257069157d6c4c321735019f7daf4d25))
- Update expanded corner removal to check if sheet view is actually at
top of screen
([`1c01e82`](https://togithub.com/material-components/material-components-android/commit/1c01e8229700de423dcfbf63b0122cd96056bce7))
- Fix for detached from bottom sheet behavior.
([`9c4b73d`](https://togithub.com/material-components/material-components-android/commit/9c4b73da3a040003bae3167e9ae91f4d0cc0a9f7))
- Ignore ACTION_MOVE events in BottomSheetBehavior that weren't preceded
by an ACTION_DOWN event.
([`d8c01c1`](https://togithub.com/material-components/material-components-android/commit/d8c01c185994574dd67af4d78c1fd8fe425425ae))
- `Carousel`
- Add orientation helper to clean up CarouselLayoutManager orientation
differences
([`7822ef8`](https://togithub.com/material-components/material-components-android/commit/7822ef827b3d48c4f73a4bcdb35fb2b2a23b697d))
- Update docs to include hero variant
([`ec509cc`](https://togithub.com/material-components/material-components-android/commit/ec509cc7341c5d660642c0b8e00826678dc63c34))
- Add vertical scrolling capability
([`6b48d3b`](https://togithub.com/material-components/material-components-android/commit/6b48d3bb80576d649f7218e1bf29d0ecfa14d8f4))
- Deprecate set/get mask x percentages in Maskable as they are no longer
used anywhere, and is a misleading method due to these methods not
actually having any effect on the Carousel as CarouselLayoutManager
overrides the values.
([`29d8742`](https://togithub.com/material-components/material-components-android/commit/29d8742917ee7d8e977446665703859878eeff23))
- Ensure that masks are pushed out beyond the parent bounds if they are
*on* the parent bounds
([`9486de5`](https://togithub.com/material-components/material-components-android/commit/9486de5f2fba5c15cb85ac7ac27f30a724162f12))
- Carousel updates and fixes
([`16c1575`](https://togithub.com/material-components/material-components-android/commit/16c15757585eb6b7146d46d7603624a9546cc6a7))
- Fix contained mask logic to only update masks when it is still in
view, and remove restrictions on mask size with childWidth/2F. The only
restriction is that the right of the mask must be greater than the left
of the mask.
([`7d6a977`](https://togithub.com/material-components/material-components-android/commit/7d6a977d50b798e991d31d5223a4f3efcdfd6a24))
- Fixed multi browse strategy clipping extra small items before being
fully collapsed
([`85b6d50`](https://togithub.com/material-components/material-components-android/commit/85b6d5018d4aaab074490c6794b5a3a77eef072d))
- Add Carousel Hero strategy demo
([`b57dae5`](https://togithub.com/material-components/material-components-android/commit/b57dae57aa0ef31577cbd60bb08f030ae5b1618f))
- Add Hero carousel strategy
([`340cd44`](https://togithub.com/material-components/material-components-android/commit/340cd44b073bcf5b9f4d8e0f15754171549838a6))
- Add option for snapping with multi-browse carousel demo
([`26c3779`](https://togithub.com/material-components/material-components-android/commit/26c377962fde6221dff79e1f723f8541aa7c9661))
- Add CarouselSnapHelper
([`8938da8`](https://togithub.com/material-components/material-components-android/commit/8938da8c2828e36fe68b86d295b3f879e84a1d24))
- Refactor to reuse logic between different Carousel strategy classes
([`1c27404`](https://togithub.com/material-components/material-components-android/commit/1c27404fc5d562fed5dedf2d2165ec95b623120c))
- Fix item masking for API 21
([`7bc26e5`](https://togithub.com/material-components/material-components-android/commit/7bc26e5070b6cb90d8598cffe35f74b6f7c1ea06))
- Updated MultiBrowseCarouselStrategy to find best arrangments using a
cost function
([`0184b5b`](https://togithub.com/material-components/material-components-android/commit/0184b5baa959dd3fa31c75f0e81d60f3e92d69be))
- Fixed mutli-browse catalog demo crashing due to invalid position
slider values.
([`5bc7a50`](https://togithub.com/material-components/material-components-android/commit/5bc7a50b35f29e5d60b08a7fa4edd6987933901e))
- Add support for transitions by forcing canvas clipping when detaching
from the window.
([`93ceb7e`](https://togithub.com/material-components/material-components-android/commit/93ceb7edeecce7db4288b1e4b36b7ea98b20a3b0))
- Updated MaskableFrameLayout to use Outline path clipping on 33+ only.
([`43c5077`](https://togithub.com/material-components/material-components-android/commit/43c507775f9a536d4706c832fd15cbfea6d785c0))
- Updated setForceCompatClipping visibility for testing.
([`3856af1`](https://togithub.com/material-components/material-components-android/commit/3856af1b65e4e1a78493647627d47ce02efad621))
- Updated MaskableFrameLayout to clip more performantly.
([`733c9e0`](https://togithub.com/material-components/material-components-android/commit/733c9e08c28e8c68f8ad208a7be8ffaf784a9509))
- Changed Maskable.add/removeOnMaskChangedListener to
Maskable.setOnMaskChangedListener.
([`359580b`](https://togithub.com/material-components/material-components-android/commit/359580b6c1160301967ebdededb1011c1133b42c))
- Fixed child index bug causing items to be ordered incorrectly.
([`9d0732b`](https://togithub.com/material-components/material-components-android/commit/9d0732be9e16c328ac960f5a8d64417b4d6a1c68))
- `Catalog`
- Update side sheet state handling to be more accurate in demos
([`4442635`](https://togithub.com/material-components/material-components-android/commit/4442635aec49e9465a109e1d6ed669768828fc95))
- Update bottom sheet state handling to be more accurate in demos
([`386d47b`](https://togithub.com/material-components/material-components-android/commit/386d47b51b31d8068f1fc6617414ca1a92c3353b))
- Update to compileSdkVersion 34 and update catalog to use
androidx.activity:activity:1.8.0-alpha05
([`2336c23`](https://togithub.com/material-components/material-components-android/commit/2336c23fab664ce7dc94f97b23e7b38942d63b4a))
- Fixed catalog errors for some demos.
([`4c3e1d5`](https://togithub.com/material-components/material-components-android/commit/4c3e1d513be6cd8399515b2541eea74ac1c9a040))
- Fixes context menu are not themed on S
([`33e4f84`](https://togithub.com/material-components/material-components-android/commit/33e4f841b213fb306091971dd1d1025c8da897a7))
- `Checkbox`
- Fixed checkmark icon not updating color on error correctly in pre 21.
([`62aa802`](https://togithub.com/material-components/material-components-android/commit/62aa802f6c5f45ee357537079b07442dabc31236))
- `Chip`
- Fix hand pointer icon not showing up on whole Chip when using mouse
input
([`2702b1a`](https://togithub.com/material-components/material-components-android/commit/2702b1a8d5040f6ab4d69b66f38952c1f78a6225))
- Add theme overlays supported on API < 23
([`fd0c815`](https://togithub.com/material-components/material-components-android/commit/fd0c81531c74a48255f82350f6c1330521566e55))
- `Color`
- Temporarily remove v34 Android U color references which could be
causing resource NotFoundExceptions
([`2a1a67f`](https://togithub.com/material-components/material-components-android/commit/2a1a67f076c5dad0d45b9b65a65181dcea10cdf4))
- Fixed lint error.
([`824d75e`](https://togithub.com/material-components/material-components-android/commit/824d75e7731fba70b66a8833e0e3f69101787dd9))
- Integrate container color token
([`206928b`](https://togithub.com/material-components/material-components-android/commit/206928b8f91e802213ed82c2aa52211c008b60dc))
- Made SearchBar and SearchView's container colors configurable in XML
style.
([`cf006c5`](https://togithub.com/material-components/material-components-android/commit/cf006c5e10e8cfa0f33f8d4ffa654c5136d14bdc))
- Added U color resources for contrast mode support.
([`93f386c`](https://togithub.com/material-components/material-components-android/commit/93f386c9f61eec448ff6ddb5af3a22c06ffa30b1))
- `Dialog`
- Update DialogWhenLarge theme to have correct parent theme
([`dae89b7`](https://togithub.com/material-components/material-components-android/commit/dae89b7ce2ddf6e76a71ce0385071cc0645ccb0a))
- Made dialog background color configurable in XML styles.
([`77cdc1e`](https://togithub.com/material-components/material-components-android/commit/77cdc1e3ace0ddc22e8cb2b4cc40c176835f6149))
- Made dialog background color configurable in XML styles.
([`303fabd`](https://togithub.com/material-components/material-components-android/commit/303fabd331e014ba98676d3bd0c4a7d544decb99))
- `Documentation`
- Fix SideSheetDialog class definition and source links
([`e4d0fd3`](https://togithub.com/material-components/material-components-android/commit/e4d0fd3d6c4e65d56bd5699b3f9537a87d98a8cc))
- Revise version guidance for Search usage.
([`0bcb570`](https://togithub.com/material-components/material-components-android/commit/0bcb57074d00a20a2159d0ef5b209a7ca9a06fd5))
- Formatted tables in the eng doc.
([`ef57f69`](https://togithub.com/material-components/material-components-android/commit/ef57f699cb2fc509ef9b4762f901ec914834b165))
- Fix doc formatting for github
([`e75654d`](https://togithub.com/material-components/material-components-android/commit/e75654d4c205dc0a311be23725a71228e7ea4762))
- `ExposedDropdownMenu`
- Added attribute to set dropdown menu's container.
([`1562d0b`](https://togithub.com/material-components/material-components-android/commit/1562d0b64f7fe1b25390110eedc9650be2c626b8))
- `FloatingActionButton`
- Correctly handle min touch target size
([`d6f36e8`](https://togithub.com/material-components/material-components-android/commit/d6f36e89e2f815a4d72884618b62e946aaf7b6d9))
- `Material 3`
- Remove resources loader support for tonal surface update
([`dfd9bfb`](https://togithub.com/material-components/material-components-android/commit/dfd9bfb12f7c2e003c9bb9d2b4d7a8548ed5818e))
- Fix harmonization demo bug
([`836c51e`](https://togithub.com/material-components/material-components-android/commit/836c51e44a720a736aeb47a2b16a7094f7f0f712))
- Updated content-based dynamic colors
([`e9b485d`](https://togithub.com/material-components/material-components-android/commit/e9b485d6194a45cef54dfdbd2c3c3baf534e338b))
- Update Color doc
([`d7f9a06`](https://togithub.com/material-components/material-components-android/commit/d7f9a067e34967937bfab4ce7a9e004ff8fcf658))
- Updated content-based dynamic colors
([`a511501`](https://togithub.com/material-components/material-components-android/commit/a5115012868e87493da5c8eeb43d140179788a04))
- Adds Search class definition link to Search documentation.
([`e157608`](https://togithub.com/material-components/material-components-android/commit/e157608050c9c748d121801b1f7ce4a24c764a18))
- Added ColorContrast API
([`a6cf098`](https://togithub.com/material-components/material-components-android/commit/a6cf0985c4bd650d09f0eb84f85d22404b750722))
- Updated content-based dynamic with contrast levels
([`b335436`](https://togithub.com/material-components/material-components-android/commit/b335436cf2f70bf0f9222f1960ad0e442d46ebd7))
- Updated SearchDemoUtils to mark the class and methods as public so
that it can be resued.
([`3b43d41`](https://togithub.com/material-components/material-components-android/commit/3b43d41f16633016c5c581ded82a32cd89ed286e))
- Code style update
([`1fd695c`](https://togithub.com/material-components/material-components-android/commit/1fd695c72af14529e10b9baeb84699d03be3eb2d))
- Fix Search view prefix style.
([`e56e9b1`](https://togithub.com/material-components/material-components-android/commit/e56e9b1dde6b6cb8af7039033b1357b0947efb70))
- Updated search styles to set the default style attributes in the
related theme overlay.
([`9ffaa8d`](https://togithub.com/material-components/material-components-android/commit/9ffaa8d1bf45c1753d722e94c80e5573a3aac906))
- Improve performance by preventing item change notifications during
inflation.
([`203d5ec`](https://togithub.com/material-components/material-components-android/commit/203d5ec3a36f133163270271fd8f3f10de404f99))
- Fixed a crash in search components when view attributes inspection dev
setting is turned on.
([`1159923`](https://togithub.com/material-components/material-components-android/commit/11599231a9a2753ba4489518e3ccc443251eec52))
- Color Component demo update
([`2aa1cf3`](https://togithub.com/material-components/material-components-android/commit/2aa1cf31985405bc74a9a659c26900a709923c06))
- Color Component demo update
([`c786582`](https://togithub.com/material-components/material-components-android/commit/c786582d6a78e44090d6769cda657dee10c19765))
- `MaterialButton`
- Set up Android Studio resource inspection annotation and annotation
processor, and add [@​Attribute](https://togithub.com/Attribute)
annotation to MaterialButton#getIconPadding
([`2b5c75f`](https://togithub.com/material-components/material-components-android/commit/2b5c75f966a26d06b6d700bdda3880d021c5ffc7))
- `MaterialDatePicker`
- Allow client app to access user selected inputMode
([`4d80434`](https://togithub.com/material-components/material-components-android/commit/4d8043453e631c36b38ea19c3241b14b7f41b558))
- Fix crash when clicking OK/Cancel on text input mode due to hiding
keyboard
([`7ccf670`](https://togithub.com/material-components/material-components-android/commit/7ccf6708b0299317c3757c4d86a47827839c9ef7))
- Add getTextColor to DayViewDecorator
([`29b59c2`](https://togithub.com/material-components/material-components-android/commit/29b59c21f585d6cc96ad1b7e43ed7831995b6cc6))
- a11y/i18n alignment
([`f4d0f56`](https://togithub.com/material-components/material-components-android/commit/f4d0f5653a99cd723bd2b05ed05dfec816c8e1c3))
- ContentDescription for "DayName" is not properly getting read by
talkback for the German language
([`35bd1fc`](https://togithub.com/material-components/material-components-android/commit/35bd1fc98ffd449d11400ae040c3b43a24dea43b))
- Fix time zone when custom text input format is set
([`619d5a6`](https://togithub.com/material-components/material-components-android/commit/619d5a6cad0f3bd3f0a1a7d9a16013f9c3c19c97))
- Update screen width at which days size is 48dp in portrait mode.
([`ec511a5`](https://togithub.com/material-components/material-components-android/commit/ec511a54cf63eb1199f4c6927be9694c4c1ba304))
- Made dialog container color configurable in xml style.
([`7b2c19b`](https://togithub.com/material-components/material-components-android/commit/7b2c19b2731d5d264dfa91306f6236e46f4d4467))
- Fix hint for Korean
([`bcc97bf`](https://togithub.com/material-components/material-components-android/commit/bcc97bfaf54b53757c51af3f3d1e4a64d77183fd))
- Integrated tokens.
([`30ea33e`](https://togithub.com/material-components/material-components-android/commit/30ea33e948c14e9fa957763d79164ac4a1b3ad7f))
- Fix keyboard not showing at first in text input mode
([`4032a74`](https://togithub.com/material-components/material-components-android/commit/4032a741127b4715c3bbcd4cab08494b39ae5bdb))
- `NavigationRail`
- Added bigger padding in between items on the navigation rail when font
scale is large so there is more room for the badges when they are forced
inside the view bounds
([`8b016a0`](https://togithub.com/material-components/material-components-android/commit/8b016a0e8b8a885d4a3d1110f73b3deb8c6021a3))
- Integrate tokens and add shapeAppearance attribute
([`3b2b827`](https://togithub.com/material-components/material-components-android/commit/3b2b8275973113fd4be0ec336cdf64c147ef0ecd))
- Added attribute to control the application of start window inset
padding.
([`3f99392`](https://togithub.com/material-components/material-components-android/commit/3f993923b2520f1490381b375fe94758ce0e844a))
- Fixed active item focused state color not being visible.
([`1d2a59b`](https://togithub.com/material-components/material-components-android/commit/1d2a59ba37a9ed6e3abeac0500d6a480ccebb0ab))
- `NavigationView`
- Updated NavigationView to use ViewOutlineProvider to handle corner
clipping when possible and remove drawerLayoutCornerClippingEnabled
attribute.
([`c031144`](https://togithub.com/material-components/material-components-android/commit/c031144d2652f759c59d281e7a78beac2b42313b))
- Removed canvas clipping by default and added an option to
enabled/disable manually
([`e3b493f`](https://togithub.com/material-components/material-components-android/commit/e3b493f5eb77139624a43f573ae41988c911f92e))
- `Predictive Back`
- Fix issue where modal accessibility is not reset after collapsing
search view predictively, which caused the screen to appear frozen when
using TalkBack
([`e8af8f9`](https://togithub.com/material-components/material-components-android/commit/e8af8f94607daa58f8f3f61bf5ca8e99bed7bd07))
- Fixed IllegalStateException crashes caused by
MaterialBackAnimationHelper.
([`845007e`](https://togithub.com/material-components/material-components-android/commit/845007e5e976be67944f7a37a31f27840ef99725))
- Fixed `UnsupportedOperationException` `AnimatorSet` crash in
`SearchView`.
([`6720e24`](https://togithub.com/material-components/material-components-android/commit/6720e242b0f7c74c39468b4eb44826ade8c9ecb2))
- Fix custom predictive back implementations and update
androidx.activity dependency to 1.8.0-alpha06.
([`722b936`](https://togithub.com/material-components/material-components-android/commit/722b93682c7a3afeb4e2ced7341ff2cb6afd8f20))
- Fixed MaterialBackAnimationHelper.onCancelBackProgress being called
twice.
([`ad60bbf`](https://togithub.com/material-components/material-components-android/commit/ad60bbf5d932b6fcceccf9a0140917164d179d0c))
- Fixed possible NaN crashes in MaterialBottomContainerBackHelper,
MaterialMainContainerBackHelper and MaterialSideContainerBackHelper.
([`122c296`](https://togithub.com/material-components/material-components-android/commit/122c2966fd4abc867bc74270fcd1366bcdb239e7))
- Update components to use BackEventCompat
([`a67a885`](https://togithub.com/material-components/material-components-android/commit/a67a8856683542c6bf2e6f7cb4440ddae7fcd6e8))
- Make MaterialMainContainerBackHelper collapsedView optional
([`fb56ab4`](https://togithub.com/material-components/material-components-android/commit/fb56ab4130b74a1757ad587dd7c8373544118058))
- Fix issue on Android U where clicking SearchView back button causes
SearchBar to disappear and back arrow animation to not run
([`e69a324`](https://togithub.com/material-components/material-components-android/commit/e69a324a2fc1c7259d6a599d6d729ff0ea9e7395))
- Minor dev doc edits
([`82a91c8`](https://togithub.com/material-components/material-components-android/commit/82a91c8455bf1ccb8a1067e549e81a7acafd08da))
- Update dev docs
([`47c307d`](https://togithub.com/material-components/material-components-android/commit/47c307d889a89988b01ec573dd39ed74021c0143))
- Fix expand/collapse animation for non-predictive back cases where
rootView bounds are not equal to searchView bounds
([`577d23e`](https://togithub.com/material-components/material-components-android/commit/577d23ecebcd937d0c77df537863a21561bd3994))
- Added updateBackProgress() predictive back support for coplanar side
sheets.
([`5ba704a`](https://togithub.com/material-components/material-components-android/commit/5ba704a2732ee7a13b2f430257a45b1661fde6bd))
- Added handleBackInvoked() predictive back support for coplanar side
sheets.
([`b984e64`](https://togithub.com/material-components/material-components-android/commit/b984e64445fb21956a4affd189fe17f60d411fb2))
- Fix subtle detached side sheet glitch where after predictive back the
sheet does not fully slide off screen
([`52f1737`](https://togithub.com/material-components/material-components-android/commit/52f1737dd8f4fe3dad9e12512475c360002126d3))
- Fix custom nav drawer Catalog demo pre-T crash due to
OnBackAnimationCallback class not found
([`d8c5c2c`](https://togithub.com/material-components/material-components-android/commit/d8c5c2c87d4eef9b919542eb5f80aae5e3e97476))
- Added predictive back support for modal side sheets.
([`f335a50`](https://togithub.com/material-components/material-components-android/commit/f335a509077e954a9ed5206947b7649425f2f04a))
- Added predictive back support for standard side sheets.
([`562285e`](https://togithub.com/material-components/material-components-android/commit/562285e051771a8f32624f6efe67da3ed1b932cc))
- Update side container back helper to support containers with arbitrary
child views
([`9405121`](https://togithub.com/material-components/material-components-android/commit/9405121f62eee1cb6e188e161031c358b8d9d962))
- Only use device corner radius if SearchView reaches edge of screen
([`a93c91a`](https://togithub.com/material-components/material-components-android/commit/a93c91a2e23d52b761fdb0c495be6d0716c08354))
- Make back helpers support generified View type
([`69b5386`](https://togithub.com/material-components/material-components-android/commit/69b5386e4bb51f9e2cff0aca9f4484c8b3fda6c4))
- Add ability to opt-out of back handling
([`176ce5e`](https://togithub.com/material-components/material-components-android/commit/176ce5e5f0987f5dd385c467747155c5c3e6031c))
- Update SearchView to support predictive back when set up with
SearchBar
([`a4b6f46`](https://togithub.com/material-components/material-components-android/commit/a4b6f46f0cbeaf4b4eac421db492e8ba74f2f94a))
- Fix bug where standard hideable bottom sheets don't stay hidden after
predictive back
([`2c23d2a`](https://togithub.com/material-components/material-components-android/commit/2c23d2a158f3a2e5ce786bfd14b6d2a1ab10730b))
- Add top-level developer documentation
([`8105cb7`](https://togithub.com/material-components/material-components-android/commit/8105cb7ed659690c121077dac45d26017341a099))
- Update Bottom Sheet to support predictive back
([`d6fad95`](https://togithub.com/material-components/material-components-android/commit/d6fad952c6762816f4c54978bb352c972d952ea9))
- Infrastructure for back handling in components + Navigation Drawer
predictive back support
([`2c297fa`](https://togithub.com/material-components/material-components-android/commit/2c297faf4b210dcea41f62a1671cf6acd9475668))
- Migrate Catalog to use AndroidX back pressed callbacks and enable
predictive back-to-home
([`22c4e0d`](https://togithub.com/material-components/material-components-android/commit/22c4e0dd60409954baed006bae51c4d5b55a9d85))
- `Search`
- Enforced outline variant to use colorSurface as container color.
([`cbbd50d`](https://togithub.com/material-components/material-components-android/commit/cbbd50dedf35619ef74841863662e8904b167f21))
- Support stylus handwriting in SearchBar
([`884a454`](https://togithub.com/material-components/material-components-android/commit/884a4541e2da332364e52799972005de0eb34eeb))
- `SideSheet`
- Aligned close affordance and title text along the baseline rather than
the top.
([`7a3f30b`](https://togithub.com/material-components/material-components-android/commit/7a3f30b06561e6e8252b00b543d65119b8bf04ef))
- Mapped close affordance to ?attr/colorOnSurfaceVariant in catalog.
([`7ee0b72`](https://togithub.com/material-components/material-components-android/commit/7ee0b72e8ade3af9a365b17dada7b88b0119d368))
- Add links to class definitions in Side Sheet documentation and revise
version guidance.
([`d005ad7`](https://togithub.com/material-components/material-components-android/commit/d005ad7a0c6bffdf55f08b933d869f415f97e60f))
- Changed side sheet child containers in Catalog from LinearLayouts to
FrameLayouts.
([`690cd5d`](https://togithub.com/material-components/material-components-android/commit/690cd5d695d57a540967c09ad822e9f360a472d6))
- Changed side sheet title text appearance to Title Large.
([`a0d4fa0`](https://togithub.com/material-components/material-components-android/commit/a0d4fa03ffa7fae9cb3dc4f6fb505e6e1b993cdb))
- Fixed modal sheet text field formatting bug in catalog.
([`87a45a2`](https://togithub.com/material-components/material-components-android/commit/87a45a2a3da12b040e86d91cf836de920e6b1dee))
- Renamed private references of "origin" to "inner" in SheetDelegate and
related delegate classes.
([`ad9ad20`](https://togithub.com/material-components/material-components-android/commit/ad9ad204f8b624a7be4342244284634feb010c46))
- Fixed side sheet swipe calculations in RightSheetDelegate.
([`8ae8a37`](https://togithub.com/material-components/material-components-android/commit/8ae8a3791a4b07eb3b2d499a7c01718b3c757742))
- Added left/start modal sheet.
([`d0ad45e`](https://togithub.com/material-components/material-components-android/commit/d0ad45e1a13e01a71797813b6afbd1a990d9e8be))
- Fixed container color assigned to incorrect attribute.
([`a4c65d8`](https://togithub.com/material-components/material-components-android/commit/a4c65d86d3f9ee736653788d60f161f4b1120cfa))
- Removed the hasValue check for shapeAppearance to guarantee it always
has a user value or default value to avoid NPE.
([`5e427da`](https://togithub.com/material-components/material-components-android/commit/5e427da912f6af228b5939d1a134f026b300b341))
- Added `LeftSheetDelegate` and left sheet support for standard and
coplanar side sheets.
([`78fa157`](https://togithub.com/material-components/material-components-android/commit/78fa15748f37df44bf88f71b29431751f276a280))
- `Switch`
- Amendments to thumb icon size support
([`3abb658`](https://togithub.com/material-components/material-components-android/commit/3abb658c886d4b295951a722707aaa23b8da3a42))
- Add support for setting thumb icon size
([`2e85f06`](https://togithub.com/material-components/material-components-android/commit/2e85f062470c00b6f5b78717b357b4d2cddd7b21))
- Fix morphing time of switch thumbs
([`23a2b17`](https://togithub.com/material-components/material-components-android/commit/23a2b173554540b74b12ece3bc953e78fcc0a177))
- `Tabs`
- Create tab demo fragment that uses viewpager2 in Catalog
([`add7f5d`](https://togithub.com/material-components/material-components-android/commit/add7f5d65036113cc0d6b476328a0b90b1a9cc9f))
- Re-adding mistakenly removed tab layout theme
([`e708d98`](https://togithub.com/material-components/material-components-android/commit/e708d98c74f46f78bf215002f09589832077ca6d))
- Fix issue with indicator not being drawn when viewpager starts
scrolling before onLayout is called
([`34d6a14`](https://togithub.com/material-components/material-components-android/commit/34d6a14700a348a9c3f50d4c34c201f21b6b3310))
- `TextInputLayout`
- Added API to set cursor colors for API 28+.
([`c598ccd`](https://togithub.com/material-components/material-components-android/commit/c598ccd51ec68828f241301455fb3f59369fe467))
- Make collapsed hint aligned with prefix and suffix text
([`d9b97b4`](https://togithub.com/material-components/material-components-android/commit/d9b97b42ffa46bc41fc54b194ae4c59eb8fcf818))
- `TimePicker`
- Fix crash when clicking OK/Cancel/Icon on text input mode due to
hiding keyboard
([`1fcde2c`](https://togithub.com/material-components/material-components-android/commit/1fcde2c8b2aa29508cc4fd07e0db89a6e7a9f6b4))
- Made dialog container color configurable in xml style.
([`5f542c8`](https://togithub.com/material-components/material-components-android/commit/5f542c894693763eca78b26a1d96fed3db9720ed))
- `Tokens`
- Upgraded outdated token output in textfield & appbar.
([`d722a78`](https://togithub.com/material-components/material-components-android/commit/d722a782bc6852ff58d8b6afc4a65688f2e69fd0))
- Updated to v0.162 for a new target.
([`0be665c`](https://togithub.com/material-components/material-components-android/commit/0be665cfc0187971334add7cc69f252ee28db86d))
- Upgraded to v0.162.
([`9f1caa2`](https://togithub.com/material-components/material-components-android/commit/9f1caa2c6445f1cf77a3ac5967bae02238fa81a5))
- `TopAppBar`
- Updated to take a CSL as the AppBarLayout background color.
([`6980c40`](https://togithub.com/material-components/material-components-android/commit/6980c40f12434ff140196825a8a5d3ddf741eed0))
- Removing keyboard scroll event workaround for AppBarLayout since
CoordinatorLayout issue has been fixed in androidx.core:core:1.10.0
([`fdaff78`](https://togithub.com/material-components/material-components-android/commit/fdaff785062ae80496154dd5f5e7b1a80607d027))
- Fixed dragging the app bar layout overshoots the status bar.
([`b3f7b66`](https://togithub.com/material-components/material-components-android/commit/b3f7b6604e21ec7e49bba6634726429b82a867a7))
- Added support to pass toolbar style.
([`cdda1fc`](https://togithub.com/material-components/material-components-android/commit/cdda1fc66e98e7d91bec861d436f0d66281ec43a))
- Fix bug in AppBarLayout that refreshes all its children's drawables
instead of just its own
([`21a7aff`](https://togithub.com/material-components/material-components-android/commit/21a7aff545956972a06b6fa6e81199a26a185803))
- `Other`
- Update library version to 1.10.0
([`5a45d85`](https://togithub.com/material-components/material-components-android/commit/5a45d851e7e434b77d62403e816bb5c4b15d498c))
- Update androidx.activity dependency to version 1.8.0
([`4faa81c`](https://togithub.com/material-components/material-components-android/commit/4faa81c74d8374d6653a82b5ca9755747e9fcd16))
- Update androidx.activity dependency to version 1.8.0-rc01
([`7160a68`](https://togithub.com/material-components/material-components-android/commit/7160a68c59de877e3e691b2850ba6073c7ff1d97))
- Update library version to 1.10.0-rc01
([`bcc2f91`](https://togithub.com/material-components/material-components-android/commit/bcc2f915e8e5ff72240c7fdd57fbc237e86ba16a))
- Update androidx.activity dependency to version 1.8.0-beta01
([`bb0973f`](https://togithub.com/material-components/material-components-android/commit/bb0973f2a50dcb9dcfe14a29336428bc1b0ef4ec))
- Update library version to 1.10.0-beta01
([`7b8507f`](https://togithub.com/material-components/material-components-android/commit/7b8507fd44652a1ac8e49470b62a1cbf0956f12c))
- Update library version to 1.10.0-alpha06
([`0c0addd`](https://togithub.com/material-components/material-components-android/commit/0c0adddbb9db67a5d635bd445cf134ec75c3dc4f))
- Merge branch 'master' into release-1.10
([`543c473`](https://togithub.com/material-components/material-components-android/commit/543c4736961187034994d9e96972570ec6e9ae5a))
- Updated library version to 1.10.0-alpha05.
([`174a57d`](https://togithub.com/material-components/material-components-android/commit/174a57dabeb6e0481993b71af71e8aaa8afbb68d))
- \[TextInputEditText]Fix: TextInputEditText misses some visible lines
in CursorAnchorInfo#getVisibleLineBounds after scrolled
([`bdef355`](https://togithub.com/material-components/material-components-android/commit/bdef355289df85d05bd3630619fd579f51d660af))
- Fix kotlin version alignment
([`fc6f0a2`](https://togithub.com/material-components/material-components-android/commit/fc6f0a24fae55bc75ee8436c27adead44a9997da))
- Fix kotlin version alignment
([`7671188`](https://togithub.com/material-components/material-components-android/commit/76711889df757f2ef7e5b7d8f906390828495d16))
- Merge branch 'master' into release-1.10
([`797d494`](https://togithub.com/material-components/material-components-android/commit/797d494e1a3d269a1336b61c811cce81c94174c4))
- Update library version to 1.10.0-alpha04
([`9123e4f`](https://togithub.com/material-components/material-components-android/commit/9123e4ffb5ec8205ad0f4bd864b61cd872bb655d))
- Replaced BuildCompat#isAtLeastU() method calls with explicit SDK
checks for UPSIDE_DOWN_CAKE.
([`f2e70d2`](https://togithub.com/material-components/material-components-android/commit/f2e70d2d66887de039beb18fdbd788fda754314b))
- Add itemTextAppearanceActiveBoldEnabled attr
([`022e217`](https://togithub.com/material-components/material-components-android/commit/022e2177704915eca6b0e7fd104cba98ae38509e))
- Update library version to 1.10.0-alpha03
([`11b8da4`](https://togithub.com/material-components/material-components-android/commit/11b8da4da3c2c8e33c30020009a4326339d1667e))
- Update AppCompat dependency to 1.6.1
([`46778db`](https://togithub.com/material-components/material-components-android/commit/46778db594edc5915987dcd6e737fa7d15414690))
- Update library version to 1.10.0-alpha02
([`1a2078b`](https://togithub.com/material-components/material-components-android/commit/1a2078be29c67922eb121ba9f9400a18a012be6c))
- Update to AGP 7.4.2 to get latest lint and fix Android U lint issues
([`5a37e4b`](https://togithub.com/material-components/material-components-android/commit/5a37e4b35fe7be69050b008c3c44d3277d4de01d))
- Update library version to 1.10.0-alpha01
([`c7d31fb`](https://togithub.com/material-components/material-components-android/commit/c7d31fbec2b800cf3996d45b2a767fea2981a0f5))
- Minor fix.
([`dfbf4d9`](https://togithub.com/material-components/material-components-android/commit/dfbf4d9c2cc2e45acdce2c0a9b0bafa7aed85adf))
- Upgrade to 7.6.1.
([`500c8eb`](https://togithub.com/material-components/material-components-android/commit/500c8eb25d1401a7b427c09165f9c74b88de0b5a))
- Update gradle-wrapper.jar
([`bb2716f`](https://togithub.com/material-components/material-components-android/commit/bb2716f95e4d62fce5e84b9e946e67227fa61ea0))
- Update string translations
([`5689ce2`](https://togithub.com/material-components/material-components-android/commit/5689ce260843bae313519ce0f8fcd3e8c8a19712))
- Update compileSdkVersion to android-UpsideDownCake
([`3fb6bb2`](https://togithub.com/material-components/material-components-android/commit/3fb6bb27a4856f9ef212f7901486819248ece00d))
#### Full list of changes
#### Full list of release notes
-
[1.10.0-alpha01](https://togithub.com/material-components/material-components-android/releases/tag/1.10.0-alpha01)
-
[1.10.0-alpha02](https://togithub.com/material-components/material-components-android/releases/tag/1.10.0-alpha02)
-
[1.10.0-alpha03](https://togithub.com/material-components/material-components-android/releases/tag/1.10.0-alpha03)
-
[1.10.0-alpha04](https://togithub.com/material-components/material-components-android/releases/tag/1.10.0-alpha04)
-
[1.10.0-alpha05](https://togithub.com/material-components/material-components-android/releases/tag/1.10.0-alpha05)
-
[1.10.0-alpha06](https://togithub.com/material-components/material-components-android/releases/tag/1.10.0-alpha06)
-
[1.10.0-beta01](https://togithub.com/material-components/material-components-android/releases/tag/1.10.0-beta01)
-
[1.10.0-rc01](https://togithub.com/material-components/material-components-android/releases/tag/1.10.0-rc01)
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/pachli/pachli-android).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xOS4yIiwidXBkYXRlZEluVmVyIjoiMzcuNDYuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-16 21:48:12 +01:00
|
|
|
material = "1.10.0"
|
2023-11-20 20:37:56 +01:00
|
|
|
material-drawer = "9.0.2"
|
2022-11-04 20:10:26 +01:00
|
|
|
material-typeface = "4.0.0.2-kotlin"
|
2023-03-13 10:20:08 +01:00
|
|
|
mockito-inline = "5.2.0"
|
2023-12-06 12:20:51 +01:00
|
|
|
mockito-kotlin = "5.2.1"
|
2022-11-04 20:10:26 +01:00
|
|
|
networkresult-calladapter = "1.0.0"
|
2023-11-16 17:11:55 +01:00
|
|
|
okhttp = "4.12.0"
|
2024-01-08 17:27:33 +01:00
|
|
|
quadrant = "1.8"
|
2022-11-04 20:10:26 +01:00
|
|
|
retrofit = "2.9.0"
|
2023-11-16 17:17:24 +01:00
|
|
|
robolectric = "4.11.1"
|
2023-02-21 20:17:45 +01:00
|
|
|
rxandroid3 = "3.0.2"
|
2023-11-16 23:01:37 +01:00
|
|
|
rxjava3 = "3.1.8"
|
2022-11-04 20:10:26 +01:00
|
|
|
rxkotlin3 = "3.0.1"
|
2023-11-12 19:51:46 +01:00
|
|
|
semver = "1.4.2"
|
2022-11-04 20:10:26 +01:00
|
|
|
sparkbutton = "4.1.0"
|
2023-11-04 22:22:44 +01:00
|
|
|
timber = "5.0.1"
|
2023-09-27 12:10:49 +02:00
|
|
|
touchimageview = "3.6"
|
2024-01-08 17:09:13 +01:00
|
|
|
truth = "1.2.0"
|
2023-06-29 10:27:00 +02:00
|
|
|
turbine = "1.0.0"
|
2023-02-21 19:39:49 +01:00
|
|
|
unified-push = "2.1.1"
|
2023-03-10 20:30:55 +01:00
|
|
|
xmlwriter = "1.0.4"
|
2022-11-04 20:10:26 +01:00
|
|
|
|
2023-02-04 19:58:53 +01:00
|
|
|
[plugins]
|
2023-09-01 20:33:23 +02:00
|
|
|
aboutlibraries = { id = "com.mikepenz.aboutlibraries.plugin", version.ref = "aboutlibraries" }
|
2023-02-04 19:58:53 +01:00
|
|
|
android-application = { id = "com.android.application", version.ref = "agp" }
|
refactor: Start creating core modules (#286)
The existing code base is a single monolithic module. This is relatively
simple to configure, but many of the tasks to compile the module and
produce the final app have to run in series.
This is unnecessarily slow.
This change starts to split the code in to multiple modules, which are:
- :core:account - AccountManager, to break a dependency cycle
- :core:common - low level types or utilities used in many other modules
- :core:database - database types, DAOs, and DI infrastructure
- :core:network - network types, API definitions, and DI infrastructure
- :core:preferences - shared preferences definitions and DI
infrastructure
- :core:testing - fakes and rules used across different modules
Benchmarking with gradle-profiler shows a ~ 17% reduction in incremental
build times after an ABI change. That will improve further as more code
is moved to modules.
The rough mechanics of the changes are:
- Create the modules, and move existing files in to them. This causes a
lot of churn in import arguments.
- Convert build.gradle files to build.gradle.kts
- Separate out the data required to display a tab (`TabViewData`) from
the data required to configure a tab (`TabData`) to avoid circular
dependencies.
- Abstract the repeated build logic shared between the modules in to
a set of plugins under `build-logic/`, to simplify configuration of
the application and library builds.
- Be explicit that some nullable types are non-null at time of use.
Nullable properties in types imported from modules generally can't be
smart cast to non-null. There's a detailed discussion of why this
restriction exists at
https://discuss.kotlinlang.org/t/what-is-the-reason-behind-smart-cast-being-impossible-to-perform-when-referenced-class-is-in-another-module/2201.
The changes highlight design problems with the current code, including:
- The main application code is too tightly coupled to the network types
- Too many values are declared unnecessarily nullable
- Dependency cycles between code that make modularisation difficult
Future changes will add more modules.
See #291.
2023-12-04 16:58:36 +01:00
|
|
|
android-library = { id = "com.android.library", version.ref = "agp" }
|
|
|
|
android-lint = { id = "com.android.lint", version.ref = "agp" }
|
|
|
|
google-ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
|
2023-10-07 19:30:11 +02:00
|
|
|
hilt = { id = "com.google.dagger.hilt.android", version.ref = "hilt" }
|
2023-02-04 19:58:53 +01:00
|
|
|
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
|
refactor: Start creating core modules (#286)
The existing code base is a single monolithic module. This is relatively
simple to configure, but many of the tasks to compile the module and
produce the final app have to run in series.
This is unnecessarily slow.
This change starts to split the code in to multiple modules, which are:
- :core:account - AccountManager, to break a dependency cycle
- :core:common - low level types or utilities used in many other modules
- :core:database - database types, DAOs, and DI infrastructure
- :core:network - network types, API definitions, and DI infrastructure
- :core:preferences - shared preferences definitions and DI
infrastructure
- :core:testing - fakes and rules used across different modules
Benchmarking with gradle-profiler shows a ~ 17% reduction in incremental
build times after an ABI change. That will improve further as more code
is moved to modules.
The rough mechanics of the changes are:
- Create the modules, and move existing files in to them. This causes a
lot of churn in import arguments.
- Convert build.gradle files to build.gradle.kts
- Separate out the data required to display a tab (`TabViewData`) from
the data required to configure a tab (`TabData`) to avoid circular
dependencies.
- Abstract the repeated build logic shared between the modules in to
a set of plugins under `build-logic/`, to simplify configuration of
the application and library builds.
- Be explicit that some nullable types are non-null at time of use.
Nullable properties in types imported from modules generally can't be
smart cast to non-null. There's a detailed discussion of why this
restriction exists at
https://discuss.kotlinlang.org/t/what-is-the-reason-behind-smart-cast-being-impossible-to-perform-when-referenced-class-is-in-another-module/2201.
The changes highlight design problems with the current code, including:
- The main application code is too tightly coupled to the network types
- Too many values are declared unnecessarily nullable
- Dependency cycles between code that make modularisation difficult
Future changes will add more modules.
See #291.
2023-12-04 16:58:36 +01:00
|
|
|
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
|
2023-02-04 19:58:53 +01:00
|
|
|
kotlin-parcelize = { id = "org.jetbrains.kotlin.plugin.parcelize", version.ref = "kotlin" }
|
2023-10-15 19:06:10 +02:00
|
|
|
ktlint = "org.jlleitschuh.gradle.ktlint:11.6.1"
|
2023-10-25 18:39:31 +02:00
|
|
|
room = { id = "androidx.room", version.ref = "androidx-room" }
|
2023-12-07 18:36:00 +01:00
|
|
|
quadrant = { id = "com.gaelmarhic.quadrant", version.ref = "quadrant" }
|
2023-02-04 19:58:53 +01:00
|
|
|
|
refactor: Start creating core modules (#286)
The existing code base is a single monolithic module. This is relatively
simple to configure, but many of the tasks to compile the module and
produce the final app have to run in series.
This is unnecessarily slow.
This change starts to split the code in to multiple modules, which are:
- :core:account - AccountManager, to break a dependency cycle
- :core:common - low level types or utilities used in many other modules
- :core:database - database types, DAOs, and DI infrastructure
- :core:network - network types, API definitions, and DI infrastructure
- :core:preferences - shared preferences definitions and DI
infrastructure
- :core:testing - fakes and rules used across different modules
Benchmarking with gradle-profiler shows a ~ 17% reduction in incremental
build times after an ABI change. That will improve further as more code
is moved to modules.
The rough mechanics of the changes are:
- Create the modules, and move existing files in to them. This causes a
lot of churn in import arguments.
- Convert build.gradle files to build.gradle.kts
- Separate out the data required to display a tab (`TabViewData`) from
the data required to configure a tab (`TabData`) to avoid circular
dependencies.
- Abstract the repeated build logic shared between the modules in to
a set of plugins under `build-logic/`, to simplify configuration of
the application and library builds.
- Be explicit that some nullable types are non-null at time of use.
Nullable properties in types imported from modules generally can't be
smart cast to non-null. There's a detailed discussion of why this
restriction exists at
https://discuss.kotlinlang.org/t/what-is-the-reason-behind-smart-cast-being-impossible-to-perform-when-referenced-class-is-in-another-module/2201.
The changes highlight design problems with the current code, including:
- The main application code is too tightly coupled to the network types
- Too many values are declared unnecessarily nullable
- Dependency cycles between code that make modularisation difficult
Future changes will add more modules.
See #291.
2023-12-04 16:58:36 +01:00
|
|
|
# Plugins defined by this project
|
|
|
|
pachli-android-application = { id = "pachli.android.application", version = "unspecified" }
|
|
|
|
pachli-android-application-flavors = { id = "pachli.android.application.flavors", version = "unspecified" }
|
|
|
|
pachli-android-hilt = { id = "pachli.android.hilt", version = "unspecified" }
|
|
|
|
pachli-android-library = { id = "pachli.android.library", version = "unspecified" }
|
|
|
|
pachli-android-room = { id = "pachli.android.room", version = "unspecified" }
|
|
|
|
|
2022-11-04 20:10:26 +01:00
|
|
|
[libraries]
|
2023-09-01 20:33:23 +02:00
|
|
|
aboutlibraries-core = { module = "com.mikepenz:aboutlibraries-core", version.ref = "aboutlibraries" }
|
|
|
|
aboutlibraries-legacy-ui = { module = "com.mikepenz:aboutlibraries", version.ref = "aboutlibraries" }
|
2023-12-12 23:25:09 +01:00
|
|
|
acra-dialog = { module = "ch.acra:acra-dialog", version.ref = "acra" }
|
|
|
|
acra-mail = { module = "ch.acra:acra-mail", version.ref = "acra" }
|
2022-11-04 20:10:26 +01:00
|
|
|
android-material = { module = "com.google.android.material:material", version.ref = "material" }
|
|
|
|
androidx-activity = { module = "androidx.activity:activity-ktx", version.ref = "androidx-activity" }
|
|
|
|
androidx-appcompat = { module = "androidx.appcompat:appcompat", version.ref = "androidx-appcompat" }
|
|
|
|
androidx-browser = { module = "androidx.browser:browser", version.ref = "androidx-browser" }
|
|
|
|
androidx-cardview = { module = "androidx.cardview:cardview", version.ref = "androidx-cardview" }
|
|
|
|
androidx-constraintlayout = { module = "androidx.constraintlayout:constraintlayout", version.ref = "androidx-constraintlayout" }
|
|
|
|
androidx-core-ktx = { module = "androidx.core:core-ktx", version.ref = "androidx-core" }
|
|
|
|
androidx-core-splashscreen = { module = "androidx.core:core-splashscreen", version.ref = "androidx-splashscreen" }
|
|
|
|
androidx-core-testing = { module = "androidx.arch.core:core-testing", version.ref = "androidx-testing" }
|
|
|
|
androidx-emoji2-core = { module = "androidx.emoji2:emoji2", version.ref = "emoji2" }
|
|
|
|
androidx-emoji2-views-core = { module = "androidx.emoji2:emoji2-views", version.ref = "emoji2" }
|
|
|
|
androidx-emoji2-view-helper = { module = "androidx.emoji2:emoji2-views-helper", version.ref = "emoji2" }
|
|
|
|
androidx-exifinterface = { module = "androidx.exifinterface:exifinterface", version.ref = "androidx-exifinterface" }
|
|
|
|
androidx-fragment-ktx = { module = "androidx.fragment:fragment-ktx", version.ref = "androidx-fragment" }
|
2023-03-13 13:16:49 +01:00
|
|
|
androidx-lifecycle-common-java8 = { module = "androidx.lifecycle:lifecycle-common-java8", version.ref = "androidx-lifecycle" }
|
|
|
|
androidx-lifecycle-livedata-ktx = { module = "androidx.lifecycle:lifecycle-livedata-ktx", version.ref = "androidx-lifecycle" }
|
|
|
|
androidx-lifecycle-reactivestreams-ktx = { module = "androidx.lifecycle:lifecycle-reactivestreams-ktx", version.ref = "androidx-lifecycle" }
|
|
|
|
androidx-lifecycle-viewmodel-ktx = { module = "androidx.lifecycle:lifecycle-viewmodel-ktx", version.ref = "androidx-lifecycle" }
|
2023-08-10 19:31:55 +02:00
|
|
|
androidx-media3-exoplayer = { module = "androidx.media3:media3-exoplayer", version.ref = "androidx-media3" }
|
|
|
|
androidx-media3-exoplayer-dash = { module = "androidx.media3:media3-exoplayer-dash", version.ref = "androidx-media3" }
|
|
|
|
androidx-media3-exoplayer-hls = { module = "androidx.media3:media3-exoplayer-hls", version.ref = "androidx-media3" }
|
|
|
|
androidx-media3-exoplayer-rtsp = { module = "androidx.media3:media3-exoplayer-rtsp", version.ref = "androidx-media3" }
|
|
|
|
androidx-media3-datasource-okhttp = { module = "androidx.media3:media3-datasource-okhttp", version.ref = "androidx-media3" }
|
|
|
|
androidx-media3-ui = { module = "androidx.media3:media3-ui", version.ref = "androidx-media3" }
|
2022-11-04 20:10:26 +01:00
|
|
|
androidx-paging-runtime-ktx = { module = "androidx.paging:paging-runtime-ktx", version.ref = "androidx-paging" }
|
|
|
|
androidx-preference-ktx = { module = "androidx.preference:preference-ktx", version.ref = "androidx-preference" }
|
2023-02-04 20:22:29 +01:00
|
|
|
androidx-room-compiler = { module = "androidx.room:room-compiler", version.ref = "androidx-room" }
|
|
|
|
androidx-room-paging = { module = "androidx.room:room-paging", version.ref = "androidx-room" }
|
|
|
|
androidx-room-ktx = { module = "androidx.room:room-ktx", version.ref = "androidx-room" }
|
|
|
|
androidx-room-testing = { module = "androidx.room:room-testing", version.ref = "androidx-room" }
|
2022-11-04 20:10:26 +01:00
|
|
|
androidx-recyclerview = { module = "androidx.recyclerview:recyclerview", version.ref = "androidx-recyclerview" }
|
|
|
|
androidx-sharetarget = { module = "androidx.sharetarget:sharetarget", version.ref = "androidx-sharetarget" }
|
|
|
|
androidx-swiperefreshlayout = { module = "androidx.swiperefreshlayout:swiperefreshlayout", version.ref = "androidx-swiperefresh-layout" }
|
2023-10-07 19:30:11 +02:00
|
|
|
androidx-test-core-ktx = { module = "androidx.test:core-ktx", version.ref = "androidx-test-core-ktx" }
|
2022-11-04 20:10:26 +01:00
|
|
|
androidx-test-junit = { module = "androidx.test.ext:junit", version.ref = "androidx-junit" }
|
|
|
|
androidx-viewpager2 = { module = "androidx.viewpager2:viewpager2", version.ref = "androidx-viewpager2" }
|
2023-06-11 13:17:30 +02:00
|
|
|
androidx-work-runtime-ktx = { module = "androidx.work:work-runtime-ktx", version.ref = "androidx-work" }
|
2022-11-07 20:04:07 +01:00
|
|
|
androidx-work-testing = { module = "androidx.work:work-testing", version.ref = "androidx-work" }
|
feat: Periodically check for updates and alert user (#236)
Users can inadvertently get stuck on older versions of the app; e.g., by
installing from one F-Droid repository that stops hosting the app at
some later time.
Analytics from the Play Store also shows a long tail of users who are,
for some reason, on an older version.
On resuming `MainActivity`, and approximately once per day, check and
see if a newer version of Pachli is available, and prompt the user to
update by going to the relevant install location (Google Play, F-Droid,
or GitHub).
The dialog prompt allows them to ignore this specific version, or
disable all future update notifications. This is also exposed through
the preferences, so the user can adjust it there too.
A different update check method is used for each installation location.
- F-Droid: Use the F-Droid API to query for the newest released version
- GitHub: Use the GitHub API to query for the newest release, and check
the APK filename attached to that release
- Google Play: Use the Play in-app-updates library
(https://developer.android.com/guide/playcore/in-app-updates) to query
for the newest released version
These are kept in different build flavours (source sets), so that e.g.,
the build for the F-Droid store can only query the F-Droid API, the UI
strings are specific to F-Droid, etc. This also ensures that the update
service libraries are specific to that build and do not
"cross-contaminate".
Note that this *does not* update the app, it takes the user to either
the relevant store page (F-Droid, Play) or GitHub release page. The user
must still start the update from that page.
CI configuration is updated to build the different flavours.
2023-11-08 08:42:39 +01:00
|
|
|
app-update = { module = "com.google.android.play:app-update", version.ref = "app-update" }
|
|
|
|
app-update-ktx = { module = "com.google.android.play:app-update-ktx", version.ref = "app-update" }
|
2022-11-04 20:10:26 +01:00
|
|
|
autodispose-android-lifecycle = { module = "com.uber.autodispose2:autodispose-androidx-lifecycle", version.ref = "autodispose" }
|
|
|
|
autodispose-core = { module = "com.uber.autodispose2:autodispose", version.ref = "autodispose" }
|
|
|
|
bouncycastle = { module = "org.bouncycastle:bcprov-jdk15on", version.ref = "bouncycastle" }
|
|
|
|
conscrypt-android = { module = "org.conscrypt:conscrypt-android", version.ref = "conscrypt" }
|
2023-03-10 20:30:55 +01:00
|
|
|
diffx = { module = "org.pageseeder.diffx:pso-diffx", version.ref = "diffx" }
|
2022-11-04 20:10:26 +01:00
|
|
|
espresso-core = { module = "androidx.test.espresso:espresso-core", version.ref = "espresso" }
|
|
|
|
filemojicompat-core = { module = "de.c1710:filemojicompat", version.ref = "filemoji-compat" }
|
|
|
|
filemojicompat-defaults = { module = "de.c1710:filemojicompat-defaults", version.ref = "filemoji-compat" }
|
|
|
|
filemojicompat-ui = { module = "de.c1710:filemojicompat-ui", version.ref = "filemoji-compat" }
|
|
|
|
glide-animation-plugin = { module = "com.github.penfeizhou.android.animation:glide-plugin", version.ref = "glide-animation-plugin" }
|
2023-07-11 15:34:14 +02:00
|
|
|
glide-compiler = { module = "com.github.bumptech.glide:ksp", version.ref = "glide" }
|
2022-11-04 20:10:26 +01:00
|
|
|
glide-core = { module = "com.github.bumptech.glide:glide", version.ref = "glide" }
|
|
|
|
glide-okhttp3-integration = { module = "com.github.bumptech.glide:okhttp3-integration", version.ref = "glide" }
|
|
|
|
gson = { module = "com.google.code.gson:gson", version.ref = "gson" }
|
2023-10-07 19:30:11 +02:00
|
|
|
hilt-android = { module = "com.google.dagger:hilt-android", version.ref = "hilt" }
|
|
|
|
hilt-compiler = { module = "com.google.dagger:hilt-compiler", version.ref = "hilt" }
|
|
|
|
hilt-android-testing = { module = "com.google.dagger:hilt-android-testing", version.ref = "hilt" }
|
refactor: Start creating core modules (#286)
The existing code base is a single monolithic module. This is relatively
simple to configure, but many of the tasks to compile the module and
produce the final app have to run in series.
This is unnecessarily slow.
This change starts to split the code in to multiple modules, which are:
- :core:account - AccountManager, to break a dependency cycle
- :core:common - low level types or utilities used in many other modules
- :core:database - database types, DAOs, and DI infrastructure
- :core:network - network types, API definitions, and DI infrastructure
- :core:preferences - shared preferences definitions and DI
infrastructure
- :core:testing - fakes and rules used across different modules
Benchmarking with gradle-profiler shows a ~ 17% reduction in incremental
build times after an ABI change. That will improve further as more code
is moved to modules.
The rough mechanics of the changes are:
- Create the modules, and move existing files in to them. This causes a
lot of churn in import arguments.
- Convert build.gradle files to build.gradle.kts
- Separate out the data required to display a tab (`TabViewData`) from
the data required to configure a tab (`TabData`) to avoid circular
dependencies.
- Abstract the repeated build logic shared between the modules in to
a set of plugins under `build-logic/`, to simplify configuration of
the application and library builds.
- Be explicit that some nullable types are non-null at time of use.
Nullable properties in types imported from modules generally can't be
smart cast to non-null. There's a detailed discussion of why this
restriction exists at
https://discuss.kotlinlang.org/t/what-is-the-reason-behind-smart-cast-being-impossible-to-perform-when-referenced-class-is-in-another-module/2201.
The changes highlight design problems with the current code, including:
- The main application code is too tightly coupled to the network types
- Too many values are declared unnecessarily nullable
- Dependency cycles between code that make modularisation difficult
Future changes will add more modules.
See #291.
2023-12-04 16:58:36 +01:00
|
|
|
junit = { module = "junit:junit", version.ref = "junit" }
|
2023-11-12 19:51:46 +01:00
|
|
|
kotlin-result = { module = "com.michael-bull.kotlin-result:kotlin-result", version.ref = "kotlin-result" }
|
2022-11-04 20:10:26 +01:00
|
|
|
kotlinx-coroutines-android = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-android", version.ref = "coroutines" }
|
|
|
|
kotlinx-coroutines-rx3 = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-rx3", version.ref = "coroutines" }
|
|
|
|
kotlinx-coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version.ref = "coroutines" }
|
refactor: Start creating core modules (#286)
The existing code base is a single monolithic module. This is relatively
simple to configure, but many of the tasks to compile the module and
produce the final app have to run in series.
This is unnecessarily slow.
This change starts to split the code in to multiple modules, which are:
- :core:account - AccountManager, to break a dependency cycle
- :core:common - low level types or utilities used in many other modules
- :core:database - database types, DAOs, and DI infrastructure
- :core:network - network types, API definitions, and DI infrastructure
- :core:preferences - shared preferences definitions and DI
infrastructure
- :core:testing - fakes and rules used across different modules
Benchmarking with gradle-profiler shows a ~ 17% reduction in incremental
build times after an ABI change. That will improve further as more code
is moved to modules.
The rough mechanics of the changes are:
- Create the modules, and move existing files in to them. This causes a
lot of churn in import arguments.
- Convert build.gradle files to build.gradle.kts
- Separate out the data required to display a tab (`TabViewData`) from
the data required to configure a tab (`TabData`) to avoid circular
dependencies.
- Abstract the repeated build logic shared between the modules in to
a set of plugins under `build-logic/`, to simplify configuration of
the application and library builds.
- Be explicit that some nullable types are non-null at time of use.
Nullable properties in types imported from modules generally can't be
smart cast to non-null. There's a detailed discussion of why this
restriction exists at
https://discuss.kotlinlang.org/t/what-is-the-reason-behind-smart-cast-being-impossible-to-perform-when-referenced-class-is-in-another-module/2201.
The changes highlight design problems with the current code, including:
- The main application code is too tightly coupled to the network types
- Too many values are declared unnecessarily nullable
- Dependency cycles between code that make modularisation difficult
Future changes will add more modules.
See #291.
2023-12-04 16:58:36 +01:00
|
|
|
kotlin-stdlib = { module = "org.jetbrains.kotlin:kotlin-stdlib", version.ref = "kotlin" }
|
2022-11-04 20:10:26 +01:00
|
|
|
image-cropper = { module = "com.github.CanHub:Android-Image-Cropper", version.ref = "image-cropper" }
|
2023-12-09 18:06:01 +01:00
|
|
|
leakcanary = { module = "com.squareup.leakcanary:leakcanary-android", version.ref = "leakcanary" }
|
refactor: Start creating core modules (#286)
The existing code base is a single monolithic module. This is relatively
simple to configure, but many of the tasks to compile the module and
produce the final app have to run in series.
This is unnecessarily slow.
This change starts to split the code in to multiple modules, which are:
- :core:account - AccountManager, to break a dependency cycle
- :core:common - low level types or utilities used in many other modules
- :core:database - database types, DAOs, and DI infrastructure
- :core:network - network types, API definitions, and DI infrastructure
- :core:preferences - shared preferences definitions and DI
infrastructure
- :core:testing - fakes and rules used across different modules
Benchmarking with gradle-profiler shows a ~ 17% reduction in incremental
build times after an ABI change. That will improve further as more code
is moved to modules.
The rough mechanics of the changes are:
- Create the modules, and move existing files in to them. This causes a
lot of churn in import arguments.
- Convert build.gradle files to build.gradle.kts
- Separate out the data required to display a tab (`TabViewData`) from
the data required to configure a tab (`TabData`) to avoid circular
dependencies.
- Abstract the repeated build logic shared between the modules in to
a set of plugins under `build-logic/`, to simplify configuration of
the application and library builds.
- Be explicit that some nullable types are non-null at time of use.
Nullable properties in types imported from modules generally can't be
smart cast to non-null. There's a detailed discussion of why this
restriction exists at
https://discuss.kotlinlang.org/t/what-is-the-reason-behind-smart-cast-being-impossible-to-perform-when-referenced-class-is-in-another-module/2201.
The changes highlight design problems with the current code, including:
- The main application code is too tightly coupled to the network types
- Too many values are declared unnecessarily nullable
- Dependency cycles between code that make modularisation difficult
Future changes will add more modules.
See #291.
2023-12-04 16:58:36 +01:00
|
|
|
lint-api = { module = "com.android.tools.lint:lint-api", version.ref = "lint" }
|
|
|
|
lint-checks = { module = "com.android.tools.lint:lint-checks", version.ref = "lint" }
|
|
|
|
lint-cli = { module = "com.android.tools.lint:lint", version.ref = "lint" }
|
|
|
|
lint-tests = { module = "com.android.tools.lint:lint-tests", version.ref = "lint" }
|
2022-11-04 20:10:26 +01:00
|
|
|
material-drawer-core = { module = "com.mikepenz:materialdrawer", version.ref = "material-drawer" }
|
|
|
|
material-drawer-iconics = { module = "com.mikepenz:materialdrawer-iconics", version.ref = "material-drawer" }
|
|
|
|
material-typeface = { module = "com.mikepenz:google-material-typeface", version.ref = "material-typeface" }
|
|
|
|
mockito-kotlin = { module = "org.mockito.kotlin:mockito-kotlin", version.ref = "mockito-kotlin" }
|
|
|
|
mockito-inline = { module = "org.mockito:mockito-inline", version.ref = "mockito-inline" }
|
|
|
|
mockwebserver = { module = "com.squareup.okhttp3:mockwebserver", version.ref = "okhttp" }
|
|
|
|
networkresult-calladapter = { module = "at.connyduck:networkresult-calladapter", version.ref = "networkresult-calladapter" }
|
|
|
|
okhttp-core = { module = "com.squareup.okhttp3:okhttp", version.ref = "okhttp" }
|
|
|
|
okhttp-logging-interceptor = { module = "com.squareup.okhttp3:logging-interceptor", version.ref = "okhttp" }
|
|
|
|
retrofit-converter-gson = { module = "com.squareup.retrofit2:converter-gson", version.ref = "retrofit" }
|
|
|
|
retrofit-core = { module = "com.squareup.retrofit2:retrofit", version.ref = "retrofit" }
|
|
|
|
robolectric = { module = "org.robolectric:robolectric", version.ref = "robolectric" }
|
|
|
|
rxjava3-android = { module = "io.reactivex.rxjava3:rxandroid", version.ref = "rxandroid3" }
|
|
|
|
rxjava3-core = { module = "io.reactivex.rxjava3:rxjava", version.ref = "rxjava3" }
|
|
|
|
rxjava3-kotlin = { module = "io.reactivex.rxjava3:rxkotlin", version.ref = "rxkotlin3" }
|
2023-11-12 19:51:46 +01:00
|
|
|
semver = { module = "io.github.z4kn4fein:semver", version.ref = "semver" }
|
2022-11-04 20:10:26 +01:00
|
|
|
sparkbutton = { module = "com.github.connyduck:sparkbutton", version.ref = "sparkbutton" }
|
2023-11-04 22:22:44 +01:00
|
|
|
timber = { module = "com.jakewharton.timber:timber", version.ref = "timber" }
|
Fix image zoom / pan / scroll / swipe (#3894)
Migrate to touchimageview from photoview, and adjust the touch logic to correctly handle single finger drag, two finger pinch/stretch, flings, taps, and swipes.
As before, the features are:
- Single tap, show/hide controls and media description
- Double tap, zoom in/out
- Single finger drag up/down, scale/translate image, dismiss if scrolled too far
- Single finger drag left/right
- When not zoomed, swipe to next image if multiple images present
- When zoomed, scroll to edge of image, then to next image if multiple images present
- Two finger pinch/zoom, zoom in/out on the image
Behaviour differences to previous code
1. Bug fix: The image can't get "stuck" when zoomed, and impossible to scroll
2. Bug fix: Pinching is not mis-interpreted as a fling, closing the image
3. Bug fix: The zoom state of images is not lost or misinterpreted when the user swipes through multiple images
4. Bug fix: Double-tap zooms all the way, instead of stopping
5. Tapping outside the image does not dismiss it, controls and description show/hide
Fixes https://github.com/tuskyapp/Tusky/issues/3562, https://github.com/tuskyapp/Tusky/issues/2297
2023-07-31 12:44:01 +02:00
|
|
|
touchimageview = { module = "com.github.MikeOrtiz:TouchImageView", version.ref = "touchimageview" }
|
Convert NotificationsFragment and related code to Kotlin, use the Paging library (#3159)
* Unmodified output from "Convert Java to Kotlin" on NotificationsFragment.java
* Bare minimum changes to get this to compile and run
- Use `lateinit` for `eventhub`, `adapter`, `preferences`, and `scrolllistener`
- Removed override for accountManager, it can be used from the superclass
- Add `?.` where non-nullity could not (yet) be guaranteed
- Remove `?` from type lists where non-nullity is guaranteed
- Explicitly convert lists to mutable where necessary
- Delete unused function `findReplyPosition`
* Remove all unnecessary non-null (!!) assertions
The previous change meant some values are no longer nullable. Remove the
non-null assertions.
* Lint ListStatusAccessibilityDelegate call
- Remove redundant constructor
- Move block outside of `()`
* Use `let` when handling compose button visibility on scroll
* Replace a `requireNonNull` with `!!`
* Remove redundant return values
* Remove or rename unused lambda parameters
* Remove unnecessary type parameters
* Remove unnecessary null checks
* Replace cascading-if statement with `when`
* Simplify calculation of `topId`
* Use more appropriate list properties and methods
- Access the last value with `.last()`
- Access the last index with `.lastIndex`
- Replace logical-chain with `asRightOrNull` and `?.`
- `.isNotEmpty()`, not `!...isEmpty()`
* Inline unnecessary variable
* Use PrefKeys constants instead of bare strings
* Use `requireContext()` instead of `context!!`
* Replace deprecated `onActivityCreated()` with `onViewCreated()`
* Remove unnecessary variable setting
* Replace `size == 0` check with `isEmpty()`
* Format with ktlint, no functionality changes
* Convert NotifcationsAdapter to Kotlin
Does not compile, this is the unchanged output of the "Convert to Kotlin"
function
* Minimum changes to get NotificationsAdapter to compile
* Remove unnecessary visibility modifiers
* Use `isNotEmpty()`
* Remove unused lambda parameters
* Convert cascading-if to `when`
* Simplifiy assignment op
* Use explicit argument names with `copy()`
* Use `.firstOrNull()` instead of `if`
* Mark as lateinit to avoid unnecessary null checks
* Format with ktlint, whitespace changes only
* Bare minimum necessary to demonstrate paging in notifications
Create `NotificationsPagingSource`. This uses a new `notifications2()` API
call, which will exist until all the code has been adapted. Instead of
using placeholders,
Create `NotificationsPagingAdapter` (will replace `NotificationsAdapater`)
to consume this data.
Expose the paging source view a new `NotificationsViewModel` `flow`, and
submit new pages to the adapter as they are available in
`NotificationsFragment`.
Comment out any other code in `NotificationsFragment` that deals with
loading data from the network. This will be updated as necessary, either
here, or in the view model.
Lots of functionality is missing, including:
- Different views for different notification types
- Starting at the remembered notification position
- Interacting with notifications
- Adjusting the UI state to match the loading state
These will be added incrementally.
* Migrate StatusNotificationViewHolder impl. to NotificationsPagingAdapter
With this change `NotificationsPagingAdapter` shows notifications about a
status correctly.
- Introduce a `ViewHolder` abstract class that all Notification view holders
derive from. Modify the fallback view holder to use this.
- Implement `StatusNotificationViewHolder`. Much of the code is from the
existing implementation in the `NotificationAdapater`.
- The original code split the code that binds values to views between the
adapter's `bindViewHolder` method and the view holder's methods.
In this code, all of the binding code is in the view holder, in a `bind`
method. This is called by the adapter's `bindViewHolder` method. This keeps
all the binding logic in the view holder, where it belongs.
- The new `StatusNotificationViewHolder` uses view binding to access its views
instead of `findViewById`.
- Logically, information about whether to show sensitive media, or open
content warnings should be part of the `StatusDisplayOptions`. So add those
as fields, and populate them appropriately.
This affects code outside notification handling, which will be adjusted
later.
* Note some TODOs to complete before the PR is finished
* Extract StatusNotificationViewHolder to a new file
* Add TODO for NotificationViewData.Concrete
* Convert the adapter to take NotificationViewData.Concrete
* Add a view holder for regular status notifications
* Migrate Follow and FollowRequest notifications
* Migrate report notifications
* Convert onViewThread to use the adapter data
* Convert onViewMedia to use the adapter data
* Convert onMore to use the adapter data
* Convert onReply to use the adapter data
* Convert NotificationViewData to Kotlin
* Re-implement the reblog functionality
- Move reblogging in to the view model
- Update the UI via the adapter's `snapshot()` and `notifyItemChanged()`
methods
* Re-implement the favourite functionality
Same approach as reblog
* Re-implement the bookmark functionality
Same approach as reblog
* Add TODO re StatusActionListener interface
* Add TODO re event handling
* Re-implementing the voting functionality
* Re-implement viewing hidden content
- Hidden media
- Content behind a content warning
* Add a TODO re pinning
* Re-implement "Show more" / "Show less"
* Delete unused updateStatus() function
* Comment out the scroll listener for the moment
* Re-implement applying filters to notifications
Introduce `NotificationsRepository`, to provide access to the notifications
stream.
When changing the filters the flow is as follows:
- User clicks "Apply" in the fragment.
- Fragment calls `viewModel.accept()` with a `UiAction.ApplyFilter` (new
class).
- View model maintains a private flow of incoming UI actions. The new action
is emitted to that flow.
- In view model, `notificationFilter` waits for `.ApplyFilter` actions, and
ensures the filter is saved, then emits it.
- In view model, `pagingDataFlow` waits for new items from
`notificationsFilter` and fetches the notifications from the repository in
response. The repository provides `Notification`, so the model maps them to
`NotificationViewData.Concrete` for display by the adapter.
- In view model the UI state also waits for new items from
`notificationsFilter` and emits a new `UiState` every time the filter is
changed.
When opening the fragment for the first time:
- All of the above machinery, but `notificationFilter` also fetches the filter
from the active account and emits that first. This triggers the first fetch
and the first update of `uiState`.
Also:
- Add TODOs for functionality that is not implemented yet
- Delete a lot of dead code from NotificationsFragment
* Include important preference values in `uiState`
Listen to the flow of eventHub events, filtered to preference changes that
are relevant to the notification view.
When preferences change (or when the view model starts), fetch the current
values, and include them in `uiState`.
Remove preference handling from `NotificationsFragment`, and just use
the values from `uiState`.
Adjust how the `useAbsoluteTime` preference is handled. The previous code
loaded new content (via a diffutil) in to the adapter, which would trigger
a re-binding of the timestamp.
As the adapter content is immutable, the new code simply triggers a
re-binding of the views that are currently visible on screen.
* Update UI in response to different load states
Notifications can be loaded at the top and bottom of the timeline. Add a
new layout to show the progress of these loads, and any errors that can
occur.
Catch network errors in `NotificationsPagingSource` and convert to
`LoadState.Error`.
Add a header/footer to the notifications list to show the load state.
Collect the load state from the adapter, use this to drive the visibility
of different views.
* Save and restore the last read notification ID
Use this when fetching notifications, to centre the list around the
notification that was last read.
* Call notifyItemRangeChanged with the correct parameters
* Don't try and save list position if there are no items in the list
* Show/hide the "Nothing to see" view appropriately
* Update comments
* Handle the case where the notification key no longer exists
* Re-implement support for showMediaPreview and other settings
* Re-implement "hide FAB when scrolling" preference
* Delete dead code
* Delete Notifications Adapater and Placeholder types
* Remove NotificationViewData.Concrete subclass
Now there's no Placeholder, everything is a NotificationViewData.
* Improve how notification pages are loaded if the first notification is missing or filtered
* Re-implement clear notifications, show errors
* s/default/from/
* Add missing headers
* Don't process bookmarking via EventHub
- Initiating a bookmark is triggered by the fragment sending a
StatusUiAction.Bookmark
- View model receives this, makes API call, waits for response, emits either
a success or failure state
- Fragment collects success/failure states, updates the UI accordingly
* Don't process favourites via EventHub
* Don't process reblog via EventHub
* Don't process poll votes with EventHub
This removes EventHub from the fragment
* Respond to follow requests via the view model
* Docs and cleanup
* Typo and editing pass
* Minor edits for clarity
* Remove newline in diagram
* Reorder sequence diagram
* s/authorize/accept/
* s/pagingDataFlow/pagingData/
* Add brief KDoc
* Try and fetch a full first page of notifications
* Call the API method `notifications` again
* Log UI errors at the point of handling
* Remove unused variable
* Replace String.format() with interpolation
* Convert NotificationViewData to data class
* Rename copy() to make(), to avoid confusion with default copy() method
* Lint
* Update app/src/main/res/layout/simple_list_item_1.xml
* Update app/src/main/java/com/keylesspalace/tusky/components/notifications/NotificationsPagingAdapter.kt
* Update app/src/main/java/com/keylesspalace/tusky/components/notifications/NotificationsViewModel.kt
* Update app/src/main/java/com/keylesspalace/tusky/fragment/NotificationsFragment.kt
* Update app/src/main/java/com/keylesspalace/tusky/viewdata/NotificationViewData.kt
* Initial NotificationsViewModel tests
* Add missing import
* More tests, some cleanup
* Comments, re-order some code
* Set StateRestorationPolicy.PREVENT_WHEN_EMPTY
* Mark clearNotifications() as "suspend"
* Catch exceptions from clearNotifications and emit
* Update TODOs with explanations
* Ensure initial fetch uses a null ID
* Stop/start collecting pagingData based on the lifecycle
* Don't hide the list while refreshing
* Refresh notifications on mutes and blocks
* Update tests now clearNotifications is a suspend fun
* Add "Refresh" menu to NotificationsFragment
* Use account.name over account.displayName
* Update app/src/main/java/com/keylesspalace/tusky/fragment/NotificationsFragment.kt
Co-authored-by: Konrad Pozniak <connyduck@users.noreply.github.com>
* Mark layoutmanager as lateinit
* Mark layoutmanager as lateinit
* Refactor generating UI text
* Add Copyright header
* Correctly apply notification filters
* Show follow request header in notifications
* Wait for follow request actions to complete, so the reqeuest is sent
* Remove duplicate copyright header
* Revert copyright change in unmodified file
* Null check response body
* Move NotificationsFragment to component.notifications
* Use viewlifecycleowner.lifecyclescope
* Show notification filter as a dialog rather than a popup window
The popup window:
- Is inconsistent UI
- Requires a custom layout
- Didn't play nicely with viewbinding
* Refresh adapter on block/mute
* Scroll up slightly when new content is loaded
* Restore progressbar
* Lint
* Update app/src/main/res/layout/simple_list_item_1.xml
---------
Co-authored-by: Konrad Pozniak <connyduck@users.noreply.github.com>
2023-03-10 20:12:33 +01:00
|
|
|
truth = { module = "com.google.truth:truth", version.ref = "truth" }
|
|
|
|
turbine = { module = "app.cash.turbine:turbine", version.ref = "turbine" }
|
2022-11-04 20:10:26 +01:00
|
|
|
unified-push = { module = "com.github.UnifiedPush:android-connector", version.ref = "unified-push" }
|
2023-03-10 20:30:55 +01:00
|
|
|
xmlwriter = { module = "org.pageseeder.xmlwriter:pso-xmlwriter", version.ref = "xmlwriter" }
|
2022-11-04 20:10:26 +01:00
|
|
|
|
refactor: Start creating core modules (#286)
The existing code base is a single monolithic module. This is relatively
simple to configure, but many of the tasks to compile the module and
produce the final app have to run in series.
This is unnecessarily slow.
This change starts to split the code in to multiple modules, which are:
- :core:account - AccountManager, to break a dependency cycle
- :core:common - low level types or utilities used in many other modules
- :core:database - database types, DAOs, and DI infrastructure
- :core:network - network types, API definitions, and DI infrastructure
- :core:preferences - shared preferences definitions and DI
infrastructure
- :core:testing - fakes and rules used across different modules
Benchmarking with gradle-profiler shows a ~ 17% reduction in incremental
build times after an ABI change. That will improve further as more code
is moved to modules.
The rough mechanics of the changes are:
- Create the modules, and move existing files in to them. This causes a
lot of churn in import arguments.
- Convert build.gradle files to build.gradle.kts
- Separate out the data required to display a tab (`TabViewData`) from
the data required to configure a tab (`TabData`) to avoid circular
dependencies.
- Abstract the repeated build logic shared between the modules in to
a set of plugins under `build-logic/`, to simplify configuration of
the application and library builds.
- Be explicit that some nullable types are non-null at time of use.
Nullable properties in types imported from modules generally can't be
smart cast to non-null. There's a detailed discussion of why this
restriction exists at
https://discuss.kotlinlang.org/t/what-is-the-reason-behind-smart-cast-being-impossible-to-perform-when-referenced-class-is-in-another-module/2201.
The changes highlight design problems with the current code, including:
- The main application code is too tightly coupled to the network types
- Too many values are declared unnecessarily nullable
- Dependency cycles between code that make modularisation difficult
Future changes will add more modules.
See #291.
2023-12-04 16:58:36 +01:00
|
|
|
# build-logic dependencies
|
|
|
|
android-gradlePlugin = { module = "com.android.tools.build:gradle", version.ref = "agp" }
|
|
|
|
kotlin-gradlePlugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
|
|
|
|
ksp-gradlePlugin = { module = "com.google.devtools.ksp:com.google.devtools.ksp.gradle.plugin", version.ref = "ksp" }
|
|
|
|
|
2022-11-04 20:10:26 +01:00
|
|
|
[bundles]
|
2023-09-01 20:33:23 +02:00
|
|
|
aboutlibraries = ["aboutlibraries-core", "aboutlibraries-legacy-ui"]
|
2023-12-12 23:25:09 +01:00
|
|
|
acra = ["acra-dialog", "acra-mail"]
|
2022-11-04 20:10:26 +01:00
|
|
|
androidx = ["androidx-core-ktx", "androidx-appcompat", "androidx-fragment-ktx", "androidx-browser", "androidx-swiperefreshlayout",
|
|
|
|
"androidx-recyclerview", "androidx-exifinterface", "androidx-cardview", "androidx-preference-ktx", "androidx-sharetarget",
|
|
|
|
"androidx-emoji2-core", "androidx-emoji2-views-core", "androidx-emoji2-view-helper", "androidx-lifecycle-viewmodel-ktx",
|
|
|
|
"androidx-lifecycle-livedata-ktx", "androidx-lifecycle-common-java8", "androidx-lifecycle-reactivestreams-ktx",
|
2023-06-11 13:17:30 +02:00
|
|
|
"androidx-constraintlayout", "androidx-paging-runtime-ktx", "androidx-viewpager2", "androidx-work-runtime-ktx",
|
2023-08-10 19:31:55 +02:00
|
|
|
"androidx-core-splashscreen", "androidx-activity", "androidx-media3-exoplayer", "androidx-media3-exoplayer-dash",
|
2023-09-11 13:54:29 +02:00
|
|
|
"androidx-media3-exoplayer-hls", "androidx-media3-exoplayer-rtsp", "androidx-media3-datasource-okhttp", "androidx-media3-ui",
|
|
|
|
"android-material"]
|
2022-11-04 20:10:26 +01:00
|
|
|
autodispose = ["autodispose-core", "autodispose-android-lifecycle"]
|
|
|
|
filemojicompat = ["filemojicompat-core", "filemojicompat-ui", "filemojicompat-defaults"]
|
|
|
|
glide = ["glide-core", "glide-okhttp3-integration", "glide-animation-plugin"]
|
refactor: Start creating core modules (#286)
The existing code base is a single monolithic module. This is relatively
simple to configure, but many of the tasks to compile the module and
produce the final app have to run in series.
This is unnecessarily slow.
This change starts to split the code in to multiple modules, which are:
- :core:account - AccountManager, to break a dependency cycle
- :core:common - low level types or utilities used in many other modules
- :core:database - database types, DAOs, and DI infrastructure
- :core:network - network types, API definitions, and DI infrastructure
- :core:preferences - shared preferences definitions and DI
infrastructure
- :core:testing - fakes and rules used across different modules
Benchmarking with gradle-profiler shows a ~ 17% reduction in incremental
build times after an ABI change. That will improve further as more code
is moved to modules.
The rough mechanics of the changes are:
- Create the modules, and move existing files in to them. This causes a
lot of churn in import arguments.
- Convert build.gradle files to build.gradle.kts
- Separate out the data required to display a tab (`TabViewData`) from
the data required to configure a tab (`TabData`) to avoid circular
dependencies.
- Abstract the repeated build logic shared between the modules in to
a set of plugins under `build-logic/`, to simplify configuration of
the application and library builds.
- Be explicit that some nullable types are non-null at time of use.
Nullable properties in types imported from modules generally can't be
smart cast to non-null. There's a detailed discussion of why this
restriction exists at
https://discuss.kotlinlang.org/t/what-is-the-reason-behind-smart-cast-being-impossible-to-perform-when-referenced-class-is-in-another-module/2201.
The changes highlight design problems with the current code, including:
- The main application code is too tightly coupled to the network types
- Too many values are declared unnecessarily nullable
- Dependency cycles between code that make modularisation difficult
Future changes will add more modules.
See #291.
2023-12-04 16:58:36 +01:00
|
|
|
lint-api = ["kotlin-stdlib", "lint-api", "lint-checks"]
|
|
|
|
lint-tests = ["junit", "lint-cli", "lint-tests"]
|
2022-11-04 20:10:26 +01:00
|
|
|
material-drawer = ["material-drawer-core", "material-drawer-iconics"]
|
|
|
|
mockito = ["mockito-kotlin", "mockito-inline"]
|
|
|
|
okhttp = ["okhttp-core", "okhttp-logging-interceptor"]
|
2023-09-27 11:35:55 +02:00
|
|
|
retrofit = ["retrofit-core", "retrofit-converter-gson"]
|
2022-11-04 20:10:26 +01:00
|
|
|
room = ["androidx-room-ktx", "androidx-room-paging"]
|
|
|
|
rxjava3 = ["rxjava3-core", "rxjava3-android", "rxjava3-kotlin"]
|
2023-03-10 20:30:55 +01:00
|
|
|
xmldiff = ["diffx", "xmlwriter"]
|