Android Jetpack Weekly #8
Review of most interesting changes in Android Jetpack releases for the last week
2 min readSep 21, 2019
If you now Russian and want to know more about Android development you can subscribe to Android Broadcast Telegram Channel
Annotation-Experimental 1.0.0-alpha01 (NEW)
- Jetpack Experimental annotation was added to mark API from AndroidX as not yet finished. It implements Kotlin’s experimental API markers.
- Also was added special library for
annotation-experimental-lint
that produces a Android Lint-based implementation of experimental usage restrictions and enforce restrictions on Java usages of Kotlin’s native experimental API.
When using the
annotation-experimental artifact
as a dependency, the Android Lint rules provided by theannotation-experimental-lint
artifact will be enforced automatically.
Autofill 1.0.0-beta01
- Added support for annotating One Time Password (OTP) fields which can be filled by reading the code from an SMS.
- Generator function added to get hint constants for single character OTP fields.
Browser 1.2.0-alpha08
- Introduced new Share Target APIs for Trusted Web Activities. Apps that use Trusted Web Activities can now send data to their Web Share Target, defined by the protocol
- API improvements
- Bug fixes
Fragment 1.2.0-alpha04
- The
Fragment.getFragmentManager()
(andrequire*()
) methods have been deprecated and replaced with a singlegetParentFragmentManager()
method, which returns the non-nullFragmentManager
from Host (Activity
orFragment
).IllegalStateException
will be thrown ifFragment
isn’t added to a Host. Now you need to check is Fragment added before the call. FragmentManager.enableDebugLogging()
method has been deprecated. FragmentManager now respectsLog.isLoggable()
for the tag “FragmentManager”, allowing you to enable eitherDEBUG
orVERBOSE
logging without re-compiling your app.- Bug fixes
Full list of changes can be found here