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 full-size slide

  2. Used by
    70%
    of professional developers

    View full-size slide

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

    View full-size 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 full-size 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 full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size 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 full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

  13. Thanks.
    @lariki
    Lara Martín

    View full-size slide