Releases: google/accompanist
v0.18.0
What’s Changed
- Expose display cutout insets as well as the raw window insets (#685) @ansman
- Update version to 0.18.0. (#691) @nickbutcher
- Update to Compose 1.0.2. (#690) @nickbutcher
- Add an overload selectively applying system bar insets on all sides (#686) @ansman
- Update to Compose SNAPSHOT 7655479 (#687) @chrisbanes
- Fix ANR when showing bottom sheets (#680) @jossiwolf
- Add links to documentation on modules where it was missing (#671) @StylianosGakis
- Remove reference to ScrollableColumn in doc (#672) @DSteve595
v0.17.0
Built to work with Jetpack Compose v1.0.1 (also works with v1.1.0-xx).
Accompanist is now built against SDK 31
This means that your apps also need to compile against SDK 31. This was necessitated by the latest AndroidX releases also being built against SDK 31.
Note: this has no bearing on your targetSdkVersion
, you can continue to set that as you need.
What’s Changed
- Update to depend on Navigation 2.4.0-alpha07 (#668) @ianhanniballake
- Compile and target using Android SDK 31 (#665) @chrisbanes
- [Navigation Animation] Add AnimatedContentScope and AnimatedVisiblityScope (#662) @ianhanniballake
- [Pager] Add InteractionSource property (#666) @chrisbanes
- Content align (#664) @jbw0033
- Rename defaultPagerFlingConfig to rememberPagerFlingConfig (#659) @chrisbanes
- [Pager] Tweaks to PagerState.targetPage (#658) @chrisbanes
- Expose ModalBottomSheetState's offset from Navigator's state (#643) @jossiwolf
- Fix NPE on pager indicator (#647) @yasincidem
- Finish checksum.sh sentence (#638) @alexvanyo
- minor fix typo in docs (#636) @wiryadev
v0.16.1
Built to work with Jetpack Compose v1.0.1 (also works with v1.1.x
)
What’s Changed
- [Navigation Animation] Allow nullable transition blocks (#631) @chrisbanes
- [Pager] Fix pageCount change not updating layout (#629) @chrisbanes
- [Pager] Don't set selected semantic property (#628) @chrisbanes
- Update
drawablepainter
to depend on Compose UI (#627) @chrisbanes - Fix active bullet offset (#624) @yasincidem
- Remove unresolved activities (#615) @yasincidem
- Fix Navigation Sample Links (#609) @jossiwolf
- [Nav Material] Return empty back stack if navigator is not attached yet (#614) @jossiwolf
- Fix rememberAnimatedNavController API (#613) @jbw0033
v0.16.0
Built to work with Jetpack Compose v1.0.1 (also works with v1.1.x
)
🆕 Navigation libraries
We have 2 new Navigation libraries to supplement the official Jetpack Navigation Compose support:
- Navigation Animation which adds custom transition support 🤯 (thanks @jbw0033 & @ianhanniballake)
- Navigation Material which adds support for Material layouts in navigation, starting with bottom sheets (thanks @jossiwolf)
More info on this coming later today in a blog post.
Coil, Glide and Image Loading Core have been removed
After being deprecated in v0.14.0, it's time to remove the coil
, glide
and imageloading-core
libraries. Some discussion about this can be seen on the Kotlin Slack: https://kotlinlang.slack.com/archives/CJLTWPH7S/p1627482619344000.
TL;DR: the recommendation is to move to Coil Compose.
What’s Changed
- Remove default enter/exit transitions at the graph level (#602) @ianhanniballake
- Include Navigation-Material in main Readme (#604) @jossiwolf
- Correcting the docs for Navigation Animation (#603) @jbw0033
- [Permissions lint] Merge aosp/1773705 changes (#606) @manuelvicnt
- Remove the Coil library (#600) @chrisbanes
- [Navigation] Add Navigation-Material (#592) @jossiwolf
- Remove Glide and Image Loading Core (#597) @chrisbanes
- Copy DrawablePainter to new library (#596) @chrisbanes
- [Navigation] Add navigation module (#574) @jbw0033
- [Pager] Fix recomposition affecting scrolling (#588) @chrisbanes
- Update to Compose SNAPSHOT 7584688 (#587) @chrisbanes
v0.15.0
Built to work with Jetpack Compose v1.0.0 🎉
What’s Changed
- Fix pagerTabIndicatorOffset crashing (#583) @chrisbanes
- Fix Scaffold FloatingActionButton position (#581) @chrisbanes
- Update to AGP 7.0.0-rc01 (#580) @chrisbanes
- Re-enable API 28 emulators on CI (#573) @chrisbanes
- Update to Compose snapshot 7555628. (#565) @nickbutcher
- Pin Android Emulator back on CI (#571) @chrisbanes
- Small fix for sample code in permissions doc (#568) @EddieRingle
v0.14.0
Built to work with Jetpack Compose v1.0.0-rc02
Key changes
Accompanist Coil is deprecated
Following on from the release of coil-compose
in Coil 1.3.0, Accompanist Coil is deprecated. The library has been updated with automatic replacements for the key APIs. Unfortunately due to limitations in Kotlin's replacement mechanism the resulting code may require some manual tidy-up.
The 'Migrating from Accompanist' doc is useful for seeing the API differences if manual migration is required.
Also remember to update your dependency after the migration, to depend directly on io.coil-kt:coil-compose
.
Accompanist Glide is deprecated
The deprecation of Accompanist Coil left Accompanist Glide is a weird situation, where most of imageloading-core
was there to only support Glide. Since Coil is generally better suited for use in Compose, I decided to deprecate everything: accompanist-coil
, accompanist-glide
and accompanist-imageloading-core
.
All of the libraries will be removed soon (likely v0.16.0) so get migrating.
All changes
- Update to Compose SNAPSHOT 7546572 (#559) @JoseAlcerreca
- Update dependencies (#558) @chrisbanes
- [Pager] add offscreenLimit to PagerState Saver (#547) @wthee
- [Pager] Ensure that we don't create content when count=0 (#553) @chrisbanes
- [Coil][Glide] Deprecate the libraries (#550) @chrisbanes
- Update to Compose SNAPSHOT 7535721 (#551) @JoseAlcerreca
- [All] Share tests to run on Robolectric & Emulators (#180) @chrisbanes
- Update to Compose SNAPSHOT 7529283 (#548) @chrisbanes
- [Pager] add infiniteLoop to PagerState Saver (#535) @wthee
v0.13.0
Built to work with Jetpack Compose v1.0.0-rc01
What’s Changed
- Update to Compose 1.0.0-rc01 & v0.13.0 (#534) @nickbutcher
- Update to Compose snapshot 7506689. (#531) @nickbutcher
- [Permissions] Fix fat jar impl (#528) @manuelvicnt
- [Permissions] Lint Jar contains required dependencies (#526) @manuelvicnt
- [Permissions] Remove lint checks until a solution is found (#525) @manuelvicnt
- [Permissions] Make lint permissions methods public (#523) @manuelvicnt
- Expose the Drawable in DrawablePainter (#522) @r0adkll
- README: Copy-edit overview section (#517) @PatrykMichalik
- Update to Compose snapshot 7489673 (#520) @nickbutcher
- [Permissions] Add lint checks (#509) @manuelvicnt
- [Permissions] Improve UX experience in samples and tests (#506) @manuelvicnt
- [Pager] Fix floorMod function in PagerState (#511) @halilozercan
- [Pager] In infinite loop mode, allow scrolling to pages out of bounds (#510) @fornewid
- [Permissions] Add the PermissionRequired composables (#501) @manuelvicnt
v0.12.0
Built to work with Jetpack Compose v1.0.0-beta09
🆕 New libraries
We have 2 new libraries for you to use in this release!
⏳ Placeholder
A library which provides easy-to-use modifiers for displaying 'placeholder' UI while content is loading. See here.
📫 Permissions
A library which provides Android runtime permissions support for Jetpack Compose. See here.
📢 Announcement
We're working on upstreaming the Accompanist Coil library into Coil. Subcribe to this issue to be notified of when it happens!
All changes
- [Pager] Coerce scroll/fling values into the correct range (#497) @chrisbanes
- [Pager] Fix clipping on the cross-axis (#500) @chrisbanes
- [Permissions] Make public APIs experimental (#499) @manuelvicnt
- [Permissions] Remove tests flakiness (#496) @manuelvicnt
- Update Metalava-Gradle to 0.1.8 (#494) @chrisbanes
- Update Pager.md (#493) @nthily
- Mark CI flaky tests as flaky (#492) @chrisbanes
- Update to Compose SNAPSHOT 7443455 (#489) @chrisbanes
- [Permissions] Add permissions module (#474) @manuelvicnt
- Run tests on API 30 (#488) @chrisbanes
- [Placeholder] Add cross-fade between content + placeholder (#481) @chrisbanes
- [Placeholder] Add guide and more doc samples (#479) @chrisbanes
- [All] Only run tests on affected modules (#472) @chrisbanes
- [All] Tidy up Gradle configs (#477) @chrisbanes
- [Placeholder] API and animation improvements (#469) @chrisbanes
- modify glide doc's "previewPlaceholder" code issue (#475) @onlyloveyd
- Start sharding tests on CI (#463) @chrisbanes
- [Placeholder] Fix that a placeholder modifier is not changed on every recomposition (#467) @fornewid
- [Insets] Animated insets support is now longer experimental 🥳 (#465) @chrisbanes
- [Placeholder] Prototype for new library (#457) @fornewid
v0.11.1
What’s Changed
- Fix Modifier.systemBarsPadding() (#462) @chrisbanes
v0.11.0
Features
New Insets-UI library
You no longer need to copy InsetsAwareTopAppBar()
into your projects. We now provide some commonly used layouts which support a contentPadding
parameter. We also provide a copy of Scaffold
which draws the content behind both the top and bottom bars, to be better support edge-to-edge use-cases.
See here for more info.
New properties for controlling the system ui
We now provide new properties for controlling the visibility of the status, navigation and system bars. See here for more information.
All changes
- [SystemUiController] Add properties to control system bar visibility (#460) @rinorz
- Try and improve the test flakiness (#459) @chrisbanes
- Check API files via
check
task (#454) @chrisbanes - [DrawablePainter] Stop pre-scaling the Canvas (#458) @chrisbanes
- [Pager] Consume post flings and scrolls from nested scrolling content (#455) @chrisbanes
- [ImageLoad] Fallback to parent view size as default maximum request size (#447) @chrisbanes
- [Insets UI] New UI library (#409) @chrisbanes
- Update to Compose SNAPSHOT 7410176 (#453) @JoseAlcerreca
- Fix wrong Coil API usage in Glide sample (#452) @fornewid
- Update Pager document (#451) @nthily
- Fix incorrect URL for document editing (#450) @nthily
- Enable default methods in interfaces (#445) @chrisbanes
- [SwipeRefresh] Update indicator to fade-in during drag (#444) @ricknout
- [Pager] Fix backward animateScrollToPage when skipping pages (#443) @mxalbert1996
- [Pager] Supports infinite loop (#436) @fornewid
- Update various dependencies (#438) @chrisbanes
- Update to Compose SNAPSHOT 7392605 (#437) @chrisbanes
- Update to AGP 7.0.0-beta01 (#425) @chrisbanes