build.gradle 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. plugins {
  2. id "com.android.application"
  3. id "kotlin-android"
  4. // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
  5. id "dev.flutter.flutter-gradle-plugin"
  6. id "com.google.gms.google-services"
  7. }
  8. def keystoreProperties = new Properties()
  9. def keystorePropertiesFile = rootProject.file('key.properties')
  10. if (keystorePropertiesFile.exists()) {
  11. keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
  12. }
  13. android {
  14. namespace = "com.datacomsolusindo.telnow2.telnow_mobile2"
  15. compileSdk = flutter.compileSdkVersion
  16. ndkVersion = flutter.ndkVersion
  17. compileOptions {
  18. coreLibraryDesugaringEnabled true
  19. sourceCompatibility = JavaVersion.VERSION_1_8
  20. targetCompatibility = JavaVersion.VERSION_1_8
  21. }
  22. kotlinOptions {
  23. jvmTarget = JavaVersion.VERSION_1_8
  24. }
  25. defaultConfig {
  26. // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
  27. applicationId = "com.datacomsolusindo.telnow2.telnow_mobile2"
  28. // You can update the following values to match your application needs.
  29. // For more information, see: https://flutter.dev/to/review-gradle-config.
  30. minSdk = 23
  31. targetSdk = flutter.targetSdkVersion
  32. versionCode = flutter.versionCode
  33. versionName = flutter.versionName
  34. ndkVersion "25.1.8937393"
  35. }
  36. signingConfigs {
  37. release {
  38. keyAlias keystoreProperties['keyAlias']
  39. keyPassword keystoreProperties['keyPassword']
  40. storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
  41. storePassword keystoreProperties['storePassword']
  42. }
  43. }
  44. buildTypes {
  45. release {
  46. // TODO: Add your own signing config for the release build.
  47. // Signing with the debug keys for now, so `flutter run --release` works.
  48. signingConfig = signingConfigs.debug
  49. }
  50. }
  51. }
  52. flutter {
  53. source = "../.."
  54. }
  55. dependencies{
  56. coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.4'
  57. implementation('com.google.firebase:firebase-auth') {
  58. exclude module: "play-services-safetynet"
  59. }
  60. }