plugins { id "com.android.application" id "kotlin-android" id "com.google.gms.google-services" // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins. id "dev.flutter.flutter-gradle-plugin" } def localProperties = new Properties() def localPropertiesFile = rootProject.file("local.properties") if (localPropertiesFile.exists()) { localPropertiesFile.withReader("UTF-8") { reader -> localProperties.load(reader) } } def flutterVersionCode = localProperties.getProperty("flutter.versionCode") if (flutterVersionCode == null) { flutterVersionCode = "1" } def flutterVersionName = localProperties.getProperty("flutter.versionName") if (flutterVersionName == null) { flutterVersionName = "1.0" } android { namespace = "com.example.jago" compileSdk = 34 ndkVersion = flutter.ndkVersion compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = '1.8' } defaultConfig { applicationId = "com.example.jago" minSdk = 23 targetSdk = 34 versionCode = 1 versionName = "1.0" } buildTypes { release { signingConfig signingConfigs.debug minifyEnabled true shrinkResources true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } debug { minifyEnabled false shrinkResources false } } tasks.withType(JavaCompile) { options.compilerArgs << "-Xlint:deprecation" } } flutter { source = "../.." } dependencies { implementation platform('com.google.firebase:firebase-bom:32.7.4') implementation 'com.google.firebase:firebase-analytics-ktx' implementation 'com.google.firebase:firebase-database-ktx' // Pastikan Firebase Database ada implementation 'com.google.firebase:firebase-storage-ktx' // Jika menggunakan Firebase Storage implementation 'com.google.firebase:firebase-auth-ktx' // Jika menggunakan Firebase Authentication }