plugins { id 'com.android.application' id 'com.google.gms.google-services' } android { namespace 'com.example.cuida' compileSdk 35 defaultConfig { applicationId "com.example.cuida" minSdk 24 targetSdk 35 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } buildFeatures { viewBinding true } } dependencies { // Importa o Firebase BoM implementation platform('com.google.firebase:firebase-bom:32.7.0') implementation 'androidx.appcompat:appcompat:1.6.1' implementation 'com.google.android.material:material:1.11.0' implementation 'androidx.constraintlayout:constraintlayout:2.1.4' implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.7.0' implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.7.0' implementation 'androidx.navigation:navigation-fragment:2.7.7' implementation 'androidx.navigation:navigation-ui:2.7.7' // Adiciona as bibliotecas para Auth e Firestore (sem versão, geridas pelo BoM) implementation 'com.google.firebase:firebase-auth' implementation 'androidx.credentials:credentials:1.5.0' implementation 'androidx.credentials:credentials-play-services-auth:1.5.0' //noinspection UseIdentifyId implementation 'com.google.android.libraries.identity.googleid:googleid:1.1.1' implementation 'com.google.firebase:firebase-storage' implementation 'com.google.firebase:firebase-database' implementation 'com.google.firebase:firebase-firestore' // Room def room_version = "2.6.1" implementation "androidx.room:room-runtime:$room_version" annotationProcessor "androidx.room:room-compiler:$room_version" testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.5' androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' // Location implementation 'com.google.android.gms:play-services-location:21.0.1' // Biblioteca oficial do Google AI para Java/Android implementation 'com.google.ai.client.generativeai:generativeai:+' // Necessário para lidar com operações assíncronas (Guava) implementation 'com.google.guava:guava:31.1-android' }