Upgrade to Pro — share decks privately, control downloads, hide ads and more …

What's New In Architecture Components - Google I/O 2019

What's New In Architecture Components - Google I/O 2019

Lightning talk given at Berlindroid
https://www.meetup.com/berlindroid/events/fvvctlyzhbmc/

Lara Martín

May 29, 2019
Tweet

More Decks by Lara Martín

Other Decks in Programming

Transcript

  1. What’s New in
    Architecture Components
    Lara Martín
    @lariki
    Google I/O 2019

    View Slide

  2. Used by
    70%
    of professional developers

    View Slide

  3. Data Binding
    • Faster compilation
    • 20% faster annotation processing
    • Distributed build cache support
    • Incremental annotation processing (experimental)

    View Slide

  4. Data Binding
    • Faster compilation
    • 20% faster annotation processing
    • Distributed build cache support
    • Incremental annotation processing (experimental)
    • Better Android Studio support
    • Live class generation
    • Refactoring Support
    • Better error messages

    View Slide

  5. View Binding
    • Accessing Views
    • Lightweight alternative to Data Binding
    • Compile time safe
    • Doesn’t impact your build speed
    • In AS 3.6

    View Slide

  6. Lifecycle
    • SavedState in ViewModels
    • Improvements in LiveData for Kotlin
    • New ViewModel initialisation in Kotlin
    val userViewModel: UserViewModel by viewModels()

    View Slide

  7. WorkManager
    • Performance & Compatibility
    • On demand initialisation
    • Google Play Services integration
    • Compatibility improvements

    View Slide

  8. WorkManager
    • Performance & Compatibility
    • On demand initialisation
    • Google Play Services integration
    • Compatibility improvements
    • Testing
    • Robolectric support
    • Worker unit testing

    View Slide

  9. WorkManager
    • Performance & Compatibility
    • On demand initialisation
    • Google Play Services integration
    • Compatibility improvements
    • Testing
    • Robolectric support
    • Worker unit testing
    • Next:
    • foreground service support

    View Slide

  10. Room
    • Coroutines support
    • Extension function .withTransaction
    • Full text search
    • Database views
    • Expanded Rx support

    View Slide

  11. Paging
    Soon in EAP:
    • Network support with error handling
    • Header & footers
    • Better RxJava and coroutines integration

    View Slide

  12. Navigation
    • ViewModel scoped to navigation graphs
    • Navigation by URI
    • Dialog as destinations

    View Slide

  13. Thanks.
    @lariki
    Lara Martín

    View Slide