{"id":2166244,"date":"2022-05-11T21:23:00","date_gmt":"2022-05-11T19:23:00","guid":{"rendered":"http:\/\/nhub.news\/?p=2166244"},"modified":"2022-05-11T23:06:52","modified_gmt":"2022-05-11T21:06:52","slug":"everything-new-for-developers-at-google-i-o-android-studio-jetpack-compose-and-more","status":"publish","type":"post","link":"http:\/\/nhub.news\/fr\/2022\/05\/everything-new-for-developers-at-google-i-o-android-studio-jetpack-compose-and-more\/","title":{"rendered":"Everything new for developers at Google I\/O: Android Studio, Jetpack Compose, and more"},"content":{"rendered":"<p style=\"text-align: justify;\"><b>The biggest announcements Google made during the I\/O developer keynote and beyond, with news from Android, Jetpack, Flutter, &#038; Firebase.<\/b><br \/>\nAt its core, Google I\/O has always been a developer-focused event. Here are the biggest announcements that Google made during the I\/O developer keynote and beyond. This post will be steadily updated over the course of the Google I\/O 2022 developer keynote with the latest news from all of the company\u2019s various avenues of development, as well as news from the What\u2019s New sessions afterward. We\u2019re expecting news from Android, Flutter, Jetpack, Firebase, and more. With Android 12L earlier this year and this fall\u2019s Android 13, Google has been focused on improving the experience of using Android on \u201clarge screen\u201d devices like tablets and foldables. One thing some developers \u2014 especially those just starting out \u2014 like to do is take inspiration from how companies like Google design their apps. To that end, Google is leading by example with Android\u2019s large screen ambitions by updating over 20 of their own apps to look and act better on tablets and foldables. Of course, the gateway to Android development has always been Android Studio, the official IDE designed to make Android app creation easier. During the I\/O developer keynote, Google showed the next steps for Android Studio, with a look at the upcoming \u201cDolphin\u201d release, which is moving into Beta testing phase. Looking further ahead, the latest Canary release, dubbed Electric Eel, is testing out a variety of new features. For starters, Google has launched a new \u201cGoogle Play SDK Index\u201d that offers public information about the versions of Android dependencies and SDKs. This SDK Index is being integrated into Android Studio to offer lint warnings about outdated and deprecated packages early on, allowing you to easily fix them before publishing your app. First unveiled alongside Android 12L, Android Studio\u2019s resizable emulator is staying in Canary testing for a while longer rather than graduating to Beta. Just like before, there are four layout presets for rapidly checking your app in various common display shapes \u2014 phone, unfolded foldable, tablet, and desktop. Of course, while emulators have their advantages including keeping your app and code visible on the same screen, running on real hardware is always beneficial. To that end, Android Studio Electric Eel includes a new, experimental \u201cDevice Mirroring\u201d tool that can show your phone\u2019s display on your computer. Additionally, for Jetpack Compose developers, Android Studio Electric Eel includes an optional \u201cLive Edit\u201d feature that allows changes to your code to be reflected in emulators and previews of your app in real time. This should go a long way toward making design iteration faster. The previous version of live editing for Jetpack Compose was limited to changing literals such as in-app text and dimensions. For a few years now, Google has been steadily crafting Jetpack Compose, a new UI framework for Android, built to use the advantages of Kotlin while also taking inspiration from Flutter\u2019s (another Google project) declarative UI creation. Since its stable launch nearly a year ago, Jetpack Compose has seen significant adoption from the Android community, with over 100 of the top 1000 Play Store apps using the framework, including Twitter. The biggest announcement for Compose is that Jetpack Compose for Wear OS has now reached beta testing phase, with Google often considering beta to be ready for production applications. More details of this launch are coming on Thursday as part of a dedicated session. Additionally, IO 2022 marks the launch of Jetpack Compose 1.2 Beta. The first highlight of this release is that font padding for text is now optional, one of the most hotly requested features from Compose developers. In a future release, padding will default to being disabled, so it\u2019s definitely worth playing with it in your own app. On a related note, Compose 1.2 now allows your app to download the fonts it needs, rather than needing to ship it in your APK. This feature is powered by Google Fonts, allowing your Jetpack Compose app to have easy access to over 1000 free fonts. Another textual improvement in Compose 1.2 makes more of your app\u2019s text compatible with Android\u2019s built-in magnifier tool. Other improvements with Jetpack Compose 1.2 include a new customizable \u201cLazyLayout,\u201d stable lazy grid layouts, WindowInsets to better add Compose to an existing app, and recommended \u201cwindow size\u201d layouts for testing. Google is also making it easier to get from one particular part of a Jetpack Compose app to another, with a new Compose-specific adder for the Navigation library, allowing for your compose functions to be set as navigation destinations. Google\u2019s goals for Jetpack have always focused on making the lives of Android developers easier, be it through APIs to bridge new features to the many versions of Android or unique new libraries to improve apps. On the latter front, Google has unveiled the concept of \u201cBaseline Profiles\u201d for Jetpack, which take usage data from your app to optimize the most commonly used parts. Those parts are then compiled by the system first, allowing for them to be ready to run faster. To create a Baseline Profile for your own app, you can use the Jetpack Macrobenchmark library. Google themselves have begun using Baseline Profiles in their apps, with the Play Store\u2019s search results page loading as much as 40% faster. In other instances, Google has seen some apps receive a 30% initial speed boost just by using Baseline Profiles. Across Android 12L and Android 13 this year, Google has been emphasizing large screens like foldables and tablets, which have more screen real estate for features not as easily possible on phones. To better run your app across multiple windows and on foldables, Jetpack offers the WindowManager library to solve common problems like physical display size changes. WindowManager pairs well with another library, DragAndDrop, which makes it all too easy to accept dragged contents, either from your own app or another. Jetpack\u2019s new JankStats library does just what it says on the tin, tracking down and offering statistics about instances of \u201cjank\u201d or dropped frames. These moments are recorded along with helpful context of what the user was doing that could help explain inconsistent instances of jank. For Room, a data persistence library and one of the foundational pieces of the Jetpack suite, Google is readying an update to version 2.5, which begins the effort of rewriting Room in Kotlin. Room 2.5 will also bring support for the newer \u201cPaging 3.0\u201d way of reading and saving data that\u2019s enhanced for Kotlin use. Other Room improvements include easier JOIN queries and AutoMigration changes. If your project hasn\u2019t yet made the jump to Kotlin, the Jetpack team is preparing a Paging 3.1 update that integrates Guava and Rx for Java alternatives to Kotlin coroutines. The Google I\/O developer keynote also brings news of a new release of Flutter. The company\u2019s cross-platform app creation suite is expanding even further with newly stable support for macOS and Linux. You\u2019ll also find deeper support for Google\u2019s Material You design language. As always, Firebase is focused on its mission to make app creators more successful by making development easier and faster. During Google I\/O 2022, the Firebase team shared a suite of new features for Android and Web developers, as well as improvements to security and third-party services. For many, the most crucial tool that Firebase offers is Crashlytics, a purpose-built tool for identifying issues that users of your app are experiencing and precisely where in your code that issue is occurring. However, until now, that data has been primarily accessed through the Firebase Console in your browser. With the upcoming release of Android Studio Electric Eel, currently in Canary, your data from Crashlytics is now available in a new \u201cApp Quality Insights\u201d window. This makes it even easier to dive into each crash and the parts of your code likely to be responsible. For now, Android Studio\u2019s Crashlytics integration only works with Android applications written in Kotlin or Java, but Firebase Product Lead Francis Ma confirmed to us that additional support for Flutter applications is coming soon. Elsewhere in Crashlytics for Flutter developers, the Firebase team has vastly improved adding the plugin to your Flutter app, now making it a simple two-step process. Other improvements to Crashlytics for Flutter include better automatic grouping and logging &#038; alerts for critical errors. More broadly, the various Flutter plugins for Firebase are now moving to \u201cgeneral availability\u201d and are being developed more directly by the Firebase team. For web developers who use Firebase to host their applications, the \u201cfirebase deploy\u201d command is being massively upgraded to deeply support two popular frameworks, Next.js and Angular Universal. These improvements will help bring the power of Firebase\u2019s security and CDN to your app with little effort on your part. On the security front, Firebase App Check is a recently launched service \u2014 moving today from beta to general availability \u2014 that works to protect your app\u2019s backend from being accessed by illegitimate apps and devices. It does so through, among other things, the Play Integrity API, which checks against common forms of abuse and rooted devices. For those who want to integrate their apps with third-party services, Firebase is expanding their system of \u201cExtensions.\u201d In addition to new supported partners like Snapchat, some Extensions can now be deeply customized through the use of \u201cevents\u201d that let you run your own code in response to workflows from third-party services. To learn more about what Firebase has launched, including the newly launched App Distribution and real-time alerts for Performance Monitoring, check out the full Firebase blog post. Check out 9to5Google on YouTube for more news:<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The biggest announcements Google made during the I\/O developer keynote and beyond, with news from Android, Jetpack, Flutter, &#038; Firebase. At its core, Google I\/O has always been a developer-focused event. Here are the biggest announcements that Google made during the I\/O developer keynote and beyond. This post will be steadily updated over the course [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2166243,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[90],"tags":[],"_links":{"self":[{"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/posts\/2166244"}],"collection":[{"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/comments?post=2166244"}],"version-history":[{"count":0,"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/posts\/2166244\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/media\/2166243"}],"wp:attachment":[{"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/media?parent=2166244"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/categories?post=2166244"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/tags?post=2166244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}