From fc6eb6159654a049f4b660cf008c3e3b8a7625c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Le=20Goa=C3=ABr?= Date: Fri, 21 Jun 2024 20:10:34 +0200 Subject: [PATCH] Update README.md Update category name --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 27d6000..620b3db 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ problem, or that there might be a better way of writing the code. Therefore, the ## Environmental Code Smells Name | Detailed Description ---|--- - *Optimized API* | + *Substitution* | Fused Location | The fused location provider is one of the location APIs in Google Play services which combines signals from GPS, Wi-Fi, and cell networks, as well as accelerometer, gyroscope, magnetometer and other sensors. It is officially recommended to maximize battery life. Thus, developer has to set up Google Play Service in her gradle file with a dependency to `com.google.android.gms:play-services-location:x.y.z`, and then to import from `com.google.android.gms.location` instead of the `android.location` package of the SDK. Bluetooth Low-Energy | In contrast to classic Bluetooth, Bluetooth Low Energy (BLE) is designed to provide significantly lower power consumption. Its purpose is to save energy on both paired devices but very few developers are aware of this alternative API. From the Android client side, it means append `android.bluetooth.le.*` imports to `android.bluetooth.*` imports in order to benefits from low-energy features. Lazy Loading | When displaying scrollable data on screen, the new Jetpack Compose API introduced lazy views instead of `ListView`, `GridView` and even `RecycleView`. These components use the technique of lazy loading, which consists of loading data only when it arrives at the display area. Import `androidx.compose.foundation.lazy.*` to benefit from objects like `LazyColumn`, `LazyRow`, `LazyVerticalGrid` or `LazyHorizontalGrid`.