1 of 21

Migrate to Compose?

Yury Camacho

@camachoyury

2 of 21

why not?

¯\_(ツ)_/¯

3 of 21

4 of 21

What do I need first to migrate to compose?

5 of 21

learn compose!

6 of 21

7 of 21

Jetpack Compose

8 of 21

9 of 21

” Jetpack Compose is a modern toolkit for building native Android UI. Jetpack Compose simplifies and accelerates UI development on Android with less code, powerful tools, and intuitive Kotlin APIs. “

10 of 21

Principles

  • UIs are trees
  • UIs as a Function
  • Positional Memoization
  • State
  • The @Composable annotation

11 of 21

Compose

  • Bases in React, Flutter, litho, etc.
  • Trying solve compatibility issues
  • Less code
  • Reactive UIs
  • Enable preview on real time

12 of 21

13 of 21

Start the migration

14 of 21

It depends!

15 of 21

It depends!

16 of 21

migration

  • team Knowledge
  • check architecture
  • Make a good planning
  • Is the team agree?
  • is the company agree?

17 of 21

Architecture

18 of 21

Architecture matters

  • Evaluate your architecture state
  • Select an architecture
  • good architecture, brings more happiness
  • Select supported architectures

19 of 21

ViewModel

Model

View

Use Case

Repository

Use Case

Case

Data

Domain

Repository

Repository

20 of 21

20

Demo

21 of 21

Yury Camacho

@camachoyury

Thanks