12

What do you need to know before upgrading to Android Compose 1.1.0

 2 years ago
source link: https://medium.com/@alexzaitsev/what-do-you-need-to-know-before-upgrading-to-android-compose-1-1-0-942cf4545ac9
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

What do you need to know before upgrading to Android Compose 1.1.0

Source

Recently Google released a new stable Compose 1.1.0.

I do recommend reading thoroughly the changes list. The most important you need to know:

  1. One of the most important changes is that some view elements become bigger than before (mandatory paddings were added). That means that you’ll have to go through all your screens and check if everything looks good. Be prepared for this work!
    Most of my attention I had to pay to Checkbox and Switch views. Other views seem to look as before. (But at your project the situation may differ).
  2. Another important change — you’ll have to bump the Kotlinversion to 1.6.10.
  3. One more thing — a lot of APIs become stable and that means that you’ll have to go over your Compose code and remove unnecessary annotations (e.g. @ExperimentalAnimationApi).

I do recommend doing the upgrade ASAP. Compose evolves fast and it’s better to jump to each next stable version than wait half a year. In that case, doing an upgrade will be a much harder job.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK