/Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/MainActivity.java:331: Warning: Implicitly using the default locale is a common source of bugs: Use toLowerCase(Locale) instead. For strings meant to be internal use Locale.ROOT, otherwise Locale.getDefault(). [DefaultLocale] aVoid -> Toast.makeText(this, "Consulta " + newStatus.toLowerCase(), Toast.LENGTH_SHORT).show()) ~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/MainActivity.java:433: Warning: Implicitly using the default locale is a common source of bugs: Use toLowerCase(Locale) instead. For strings meant to be internal use Locale.ROOT, otherwise Locale.getDefault(). [DefaultLocale] && c.getType().toLowerCase().contains(doctorName.toLowerCase().split(" ")[0])) { ~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/MainActivity.java:433: Warning: Implicitly using the default locale is a common source of bugs: Use toLowerCase(Locale) instead. For strings meant to be internal use Locale.ROOT, otherwise Locale.getDefault(). [DefaultLocale] && c.getType().toLowerCase().contains(doctorName.toLowerCase().split(" ")[0])) { ~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/MainActivity.java:508: Warning: Implicitly using the default locale is a common source of bugs: Use toLowerCase(Locale) instead. For strings meant to be internal use Locale.ROOT, otherwise Locale.getDefault(). [DefaultLocale] && c.getType().toLowerCase().contains(doctorName.toLowerCase().split(" ")[0])) { ~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/MainActivity.java:508: Warning: Implicitly using the default locale is a common source of bugs: Use toLowerCase(Locale) instead. For strings meant to be internal use Locale.ROOT, otherwise Locale.getDefault(). [DefaultLocale] && c.getType().toLowerCase().contains(doctorName.toLowerCase().split(" ")[0])) { ~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/ui/adapters/PacienteAdapter.java:42: Warning: Implicitly using the default locale is a common source of bugs: Use toLowerCase(Locale) instead. For strings meant to be internal use Locale.ROOT, otherwise Locale.getDefault(). [DefaultLocale] text = text.toLowerCase().trim(); ~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/ui/adapters/PacienteAdapter.java:44: Warning: Implicitly using the default locale is a common source of bugs: Use toLowerCase(Locale) instead. For strings meant to be internal use Locale.ROOT, otherwise Locale.getDefault(). [DefaultLocale] if ((item.getNome() != null && item.getNome().toLowerCase().contains(text)) || ~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/ui/adapters/PacienteAdapter.java:45: Warning: Implicitly using the default locale is a common source of bugs: Use toLowerCase(Locale) instead. For strings meant to be internal use Locale.ROOT, otherwise Locale.getDefault(). [DefaultLocale] (item.getEmail() != null && item.getEmail().toLowerCase().contains(text))) { ~~~~~~~~~~~ Explanation for issues of type "DefaultLocale": Calling String#toLowerCase() or #toUpperCase() without specifying an explicit locale is a common source of bugs. The reason for that is that those methods will use the current locale on the user's device, and even though the code appears to work correctly when you are developing the app, it will fail in some locales. For example, in the Turkish locale, the uppercase replacement for i is not I. If you want the methods to just perform ASCII replacement, for example to convert an enum name, call String#toUpperCase(Locale.ROOT) instead. If you really want to use the current locale, call String#toUpperCase(Locale.getDefault()) instead. https://developer.android.com/reference/java/util/Locale.html#default_locale /Users/230405/Desktop/med Cuida+/app/build.gradle:13: Warning: Not targeting the latest versions of Android; compatibility modes apply. Consider testing and updating this version. Consult the android.os.Build.VERSION_CODES javadoc for details. [OldTargetApi] targetSdk 35 ~~~~~~~~~~~~ Explanation for issues of type "OldTargetApi": When your application or sdk runs on a version of Android that is more recent than your targetSdk specifies that it has been tested with, various compatibility modes kick in. This ensures that your application continues to work, but it may look out of place. For example, if the targetSdk is less than 14, your app may get an option button in the UI. To fix this issue, set the targetSdk to the highest available value. Then test your app to make sure everything works correctly. You may want to consult the compatibility notes to see what changes apply to each version you are adding support for: https://developer.android.com/reference/android/os/Build.VERSION_CODES.html as well as follow this guide: https://developer.android.com/distribute/best-practices/develop/target-sdk. html https://developer.android.com/distribute/best-practices/develop/target-sdk.html /Users/230405/Desktop/med Cuida+/gradle/wrapper/gradle-wrapper.properties:3: Warning: A newer version of Gradle than 9.4.1 is available: 9.5.0 [AndroidGradlePluginVersion] distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.1-bin.zip ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Explanation for issues of type "AndroidGradlePluginVersion": This detector looks for usage of the Android Gradle Plugin where the version you are using is not the current stable release. Using older versions is fine, and there are cases where you deliberately want to stick with an older version. However, you may simply not be aware that a more recent version is available, and that is what this lint check helps find. /Users/230405/Desktop/med Cuida+/app/build.gradle:8: Warning: A newer version of compileSdk than 35 is available: 37 [GradleDependency] compileSdk 35 ~~~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/build.gradle:39: Warning: A newer version of androidx.appcompat:appcompat than 1.6.1 is available: 1.7.1 [GradleDependency] implementation 'androidx.appcompat:appcompat:1.6.1' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/build.gradle:40: Warning: A newer version of com.google.android.material:material than 1.11.0 is available: 1.13.0 [GradleDependency] implementation 'com.google.android.material:material:1.11.0' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/build.gradle:41: Warning: A newer version of androidx.constraintlayout:constraintlayout than 2.1.4 is available: 2.2.1 [GradleDependency] implementation 'androidx.constraintlayout:constraintlayout:2.1.4' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/build.gradle:42: Warning: A newer version of androidx.lifecycle:lifecycle-livedata-ktx than 2.7.0 is available: 2.10.0 [GradleDependency] implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.7.0' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/build.gradle:43: Warning: A newer version of androidx.lifecycle:lifecycle-viewmodel-ktx than 2.7.0 is available: 2.10.0 [GradleDependency] implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.7.0' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/build.gradle:44: Warning: A newer version of androidx.navigation:navigation-fragment than 2.7.7 is available: 2.9.8 [GradleDependency] implementation 'androidx.navigation:navigation-fragment:2.7.7' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/build.gradle:45: Warning: A newer version of androidx.navigation:navigation-ui than 2.7.7 is available: 2.9.8 [GradleDependency] implementation 'androidx.navigation:navigation-ui:2.7.7' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/build.gradle:48: Warning: A newer version of androidx.credentials:credentials than 1.5.0 is available: 1.6.0 [GradleDependency] implementation 'androidx.credentials:credentials:1.5.0' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/build.gradle:49: Warning: A newer version of androidx.credentials:credentials-play-services-auth than 1.5.0 is available: 1.6.0 [GradleDependency] implementation 'androidx.credentials:credentials-play-services-auth:1.5.0' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/build.gradle:51: Warning: A newer version of com.google.android.libraries.identity.googleid:googleid than 1.1.1 is available: 1.2.0 [GradleDependency] implementation 'com.google.android.libraries.identity.googleid:googleid:1.1.1' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/build.gradle:55: Warning: A newer version of androidx.test.ext:junit than 1.1.5 is available: 1.3.0 [GradleDependency] androidTestImplementation 'androidx.test.ext:junit:1.1.5' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/build.gradle:56: Warning: A newer version of androidx.test.espresso:espresso-core than 3.5.1 is available: 3.7.0 [GradleDependency] androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/build.gradle:59: Warning: A newer version of com.google.android.gms:play-services-location than 21.0.1 is available: 21.3.0 [GradleDependency] implementation 'com.google.android.gms:play-services-location:21.0.1' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/build.gradle:73: Warning: A newer version of com.google.firebase:firebase-bom than 32.7.2 is available: 34.12.0 [GradleDependency] implementation platform('com.google.firebase:firebase-bom:32.7.2') ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Explanation for issues of type "GradleDependency": This detector looks for usages of libraries where the version you are using is not the current stable release. Using older versions is fine, and there are cases where you deliberately want to stick with an older version. However, you may simply not be aware that a more recent version is available, and that is what this lint check helps find. /Users/230405/Desktop/med Cuida+/app/build.gradle:62: Warning: Avoid using + in version numbers; can lead to unpredictable and unrepeatable builds (com.google.ai.client.generativeai:generativeai:+) [GradleDynamicVersion] implementation 'com.google.ai.client.generativeai:generativeai:+' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Explanation for issues of type "GradleDynamicVersion": Using + in dependencies lets you automatically pick up the latest available version rather than a specific, named version. However, this is not recommended; your builds are not repeatable; you may have tested with a slightly different version than what the build server used. (Using a dynamic version as the major version number is more problematic than using it in the minor version position.) /Users/230405/Desktop/med Cuida+/app/build.gradle:65: Warning: A newer version of com.google.guava:guava than 31.1-android is available: 33.6.0-android [NewerVersionAvailable] implementation 'com.google.guava:guava:31.1-android' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/build.gradle:68: Warning: A newer version of com.squareup.retrofit2:retrofit than 2.9.0 is available: 3.0.0 [NewerVersionAvailable] implementation 'com.squareup.retrofit2:retrofit:2.9.0' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/build.gradle:69: Warning: A newer version of com.squareup.retrofit2:converter-gson than 2.9.0 is available: 3.0.0 [NewerVersionAvailable] implementation 'com.squareup.retrofit2:converter-gson:2.9.0' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/build.gradle:70: Warning: A newer version of com.squareup.okhttp3:okhttp than 4.10.0 is available: 5.3.2 [NewerVersionAvailable] implementation 'com.squareup.okhttp3:okhttp:4.10.0' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/build.gradle:81: Warning: A newer version of com.github.bumptech.glide:glide than 4.16.0 is available: 5.0.7 [NewerVersionAvailable] implementation 'com.github.bumptech.glide:glide:4.16.0' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/build.gradle:82: Warning: A newer version of com.github.bumptech.glide:compiler than 4.16.0 is available: 5.0.7 [NewerVersionAvailable] annotationProcessor 'com.github.bumptech.glide:compiler:4.16.0' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Explanation for issues of type "NewerVersionAvailable": This detector checks with a central repository to see if there are newer versions available for the dependencies used by this project. This is similar to the GradleDependency check, which checks for newer versions available in the Android SDK tools and libraries, but this works with any MavenCentral dependency, and connects to the library every time, which makes it more flexible but also much slower. /Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/ui/adapters/ConsultaAdapter.java:40: Warning: It will always be more efficient to use more specific change events if you can. Rely on notifyDataSetChanged as a last resort. [NotifyDataSetChanged] notifyDataSetChanged(); ~~~~~~~~~~~~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/ui/adapters/PacienteAdapter.java:34: Warning: It will always be more efficient to use more specific change events if you can. Rely on notifyDataSetChanged as a last resort. [NotifyDataSetChanged] notifyDataSetChanged(); ~~~~~~~~~~~~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/ui/adapters/PacienteAdapter.java:50: Warning: It will always be more efficient to use more specific change events if you can. Rely on notifyDataSetChanged as a last resort. [NotifyDataSetChanged] notifyDataSetChanged(); ~~~~~~~~~~~~~~~~~~~~~~ Explanation for issues of type "NotifyDataSetChanged": The RecyclerView adapter's onNotifyDataSetChanged method does not specify what about the data set has changed, forcing any observers to assume that all existing items and structure may no longer be valid. `LayoutManager`s will be forced to fully rebind and relayout all visible views. /Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_editar_perfil.xml:107: Warning: Set android:baselineAligned="false" on this element for better performance [DisableBaselineAlignment] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_forgot_password.xml:8: Warning: Possible overdraw: Root element paints background @color/background_color with a theme that also paints a background (inferred theme is @style/Theme.Cuida) [Overdraw] android:background="@color/background_color"> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_login.xml:7: Warning: Possible overdraw: Root element paints background @color/background_color with a theme that also paints a background (inferred theme is @style/Theme.Cuida) [Overdraw] android:background="@color/background_color"> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_main.xml:6: Warning: Possible overdraw: Root element paints background @color/background_color with a theme that also paints a background (inferred theme is @style/Theme.Cuida) [Overdraw] android:background="@color/background_color"> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_register.xml:7: Warning: Possible overdraw: Root element paints background @color/background_color with a theme that also paints a background (inferred theme is @style/Theme.Cuida) [Overdraw] android:background="@color/background_color"> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Explanation for issues of type "Overdraw": If you set a background drawable on a root view, then you should use a custom theme where the theme background is null. Otherwise, the theme background will be painted first, only to have your custom background completely cover it; this is called "overdraw". NOTE: This detector relies on figuring out which layouts are associated with which activities based on scanning the Java code, and it's currently doing that using an inexact pattern matching algorithm. Therefore, it can incorrectly conclude which activity the layout is associated with and then wrongly complain that a background-theme is hidden. If you want your custom background on multiple pages, then you should consider making a custom theme with your custom background and just using that theme instead of a root element background. Of course it's possible that your custom drawable is translucent and you want it to be mixed with the background. However, you will get better performance if you pre-mix the background with your drawable and use that resulting image or color as a custom theme background instead. /Users/230405/Desktop/med Cuida+/app/src/main/res/menu/bottom_nav_menu.xml:2: Warning: The resource R.menu.bottom_nav_menu appears to be unused [UnusedResources] ^ /Users/230405/Desktop/med Cuida+/app/src/main/res/drawable/btn_outline_error.xml:2: Warning: The resource R.drawable.btn_outline_error appears to be unused [UnusedResources] ^ /Users/230405/Desktop/med Cuida+/app/src/main/res/drawable/circle_bg_large.xml:2: Warning: The resource R.drawable.circle_bg_large appears to be unused [UnusedResources] #93C5FD ~~~~~~~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/src/main/res/values/colors.xml:19: Warning: The resource R.color.purple_500 appears to be unused [UnusedResources] #3B82F6 ~~~~~~~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/src/main/res/values/colors.xml:20: Warning: The resource R.color.purple_700 appears to be unused [UnusedResources] #1D4ED8 ~~~~~~~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/src/main/res/values/colors.xml:21: Warning: The resource R.color.teal_200 appears to be unused [UnusedResources] #60A5FA ~~~~~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/src/main/res/values/colors.xml:22: Warning: The resource R.color.teal_700 appears to be unused [UnusedResources] #1E40AF ~~~~~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/src/main/res/values/colors.xml:23: Warning: The resource R.color.black appears to be unused [UnusedResources] #000000 ~~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/src/main/res/layout/dialog_change_password.xml:2: Warning: The resource R.layout.dialog_change_password appears to be unused [UnusedResources] ^ /Users/230405/Desktop/med Cuida+/app/src/main/res/drawable/ic_launcher_round.xml:1: Warning: The resource R.drawable.ic_launcher_round appears to be unused [UnusedResources] ^ /Users/230405/Desktop/med Cuida+/app/src/main/res/drawable/ic_nav_contactos.xml:1: Warning: The resource R.drawable.ic_nav_contactos appears to be unused [UnusedResources] Início ~~~~~~~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/src/main/res/values/strings.xml:4: Warning: The resource R.string.title_appointments appears to be unused [UnusedResources] Consultas ~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/src/main/res/values/strings.xml:5: Warning: The resource R.string.title_medication appears to be unused [UnusedResources] Medicação ~~~~~~~~~~~~~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/src/main/res/values/strings.xml:6: Warning: The resource R.string.title_sns24 appears to be unused [UnusedResources] SNS 24 ~~~~~~~~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/src/main/res/values/strings.xml:7: Warning: The resource R.string.title_profile appears to be unused [UnusedResources] Perfil ~~~~~~~~~~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/src/main/res/values/strings.xml:16: Warning: The resource R.string.age_hint appears to be unused [UnusedResources] Idade ~~~~~~~~~~~~~~~ /Users/230405/Desktop/med Cuida+/app/src/main/res/values/themes.xml:46: Warning: The resource R.style.ShapeAppearanceOverlay_App_CornerSize50Percent appears to be unused [UnusedResources]