Android Studio – Devstyler.io https://devstyler.io News for developers from tech to lifestyle Mon, 04 Dec 2023 08:18:58 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.2 Android Releases Latest Version of Android Studio with Many Improvements https://devstyler.io/blog/2023/12/04/android-releases-latest-version-of-android-studio-with-many-improvements/ Mon, 04 Dec 2023 07:56:58 +0000 https://devstyler.io/?p=115343 ...]]> The Android development team has announced the latest version of Android Studio. This update aims to improve app performance and battery life, make it easier to update apps to the latest version of Android, and speed up development using Jetpack Compose.

The release, known as Android Studio Hedgehog, is designed to boost developer productivity, according to the company in a blog post.

The App Quality Insights feature incorporates Android status data from the Google Play Console in addition to the Firebase Crashlytics SDK. This enhancement allows users to analyze
crash reports for any app published to the Google Play Store without additional tools.

The App Quality Insights tool window now empowers users to effortlessly observe, filter, and tackle Android vitals issues. You can gain valuable insights into crashes and navigate seamlessly from stack trace to code, ensuring swift issue resolution.

Furthermore, the newly introduced Power Profiler in Android takes device power consumption analysis to a whole new level. It provides in-depth insights by segmenting information into “Power Rails,” surpassing the capabilities of the previous Energy Profiler. With direct measurement of power consumption, users can now achieve a more precise understanding of the relationship between power usage and app actions, enhancing overall performance.

This feature allows easy identification and resolution of power consumption issues through A/B tests, optimizing apps for better battery and thermal performance. Access Power Rails data on Pixel 6+ devices running Android 10+. Additionally, the SDK Upgrade Assistant in Android Studio Hedgehog simplifies targetSdkVersion upgrades with a user-friendly, documentation-integrated wizard, minimizing time and effort.

Hedgehog introduces support for upgrading projects to Android 14 (API Level 34) and includes enhanced relevance filters to eliminate unnecessary steps. The upgrade assistant can precisely identify code sections where changes are required, further simplifying the upgrade process.

In addition, in this version the IntelliJ platform has been upgraded to version 2023.1.

Additional updates include UI improvements, device mirroring, an embedded layout inspector, and more.

]]>
Kotlin 1.5.0 – the First Big Release of 2021 https://devstyler.io/blog/2021/05/10/kotlin-1-5-0-the-first-big-release-of-2021/ Mon, 10 May 2021 12:58:23 +0000 https://devstyler.io/?p=50402 ...]]> Here is the first feature release in accordance with the new release schedule – Kotlin 1.5.0!

What the release delivers is stable language features such as JVM records, sealed interfaces, online classes, and includes the new default JVM IR compiler.

More than 25,000 developers have already tried the new JVM IR compiler in IntelliJ IDEA.

The new compiler shares a unified pipeline and business logic with Kotlin/Native and Kotlin/JS IR compilers, which will allow developers to implement most features, optimizations, and bug fixes for all platforms simultaneously. It will also allow you to add custom processing and transformations that will automatically work on all platforms.

Auto-update to Kotlin 1.5.0

If you are a user of IntelliJ IDEA or Android Studio, it will give you the option to automatically update to the new Kotlin release as soon as it becomes available.

Stable language features

Kotlin 1.5.0 includes stable versions of the new language features presented for preview in 1.4.30:

  • Support for JVM records to remain interoperable with the latest Java features – record classes. To use a Kotlin class as a record in Java code, make it a data class and mark it with the @JvmRecord annotation.
  • Sealed interfaces. The sealed modifier works on interfaces the same way it works on classes.
  • Sealed class improvements. Previously, all subclasses had to be in the same file with sealed classes.
  • Online classes are a subset of value-based classes that only hold values.

Standard and test library improvements

The standard library provides many helpful features, including:

  • The new stable APIs for unsigned integer types as well as for ranges, progressions, and functions for them.
  • Extension functions for java.nio.file. Path to use the modern non-blocking Java IO in a Kotlin-idiomatic style.
  • String and Chаr API improvements including the new locale-agnostic API for changing the case of strings and characters, a set of new functions for conversion between characters and their integer codes and numeric values, and multiplatform support for more char functions.
  • Duration API changes including using a Long value for the internal representation and providing new properties for retrieving a duration as a Long value.

The test library comes with a set of important improvements:

  • Single kotlin-test dependency in the common source set of multiplatform projects.
  • Automatic choice of a testing framework for Kotlin/JVM source sets when you specify only the kotlin-test dependency.
  • A number of assertion function updates.

Kotlin/JVM

Kotlin 1.5.0 brings the new JVM IR compiler, announced in Kotlin 1.4.0, becomes Stable and default. Compilation of Kotlin plain lambdas is Experimental, New default JVM target: 1.8. (the 1.6 target is deprecated), Improved handling of type nullability information from Java and Deprecation of @JvmDefault and old Xjvm-default modes.

Kotlin 1.5.0 provides support for compiler caches in debug mode for linuxX64 and iosArm64 targets. With compiler caches enabled, most debug compilations complete much faster, except for the first one. Kotlin 1.5.0 also provides deactivation of the built-in memory leak checker to avoid issues that may cause application crashes.

]]>