123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
- // plugins {
- // id "com.android.application"
- // id "kotlin-android"
- // // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
- // id "dev.flutter.flutter-gradle-plugin"
- // id "com.google.gms.google-services"
- // }
- // def keystoreProperties = new Properties()
- // def keystorePropertiesFile = rootProject.file('key.properties')
- // if (keystorePropertiesFile.exists()) {
- // keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
- // }
- // android {
- // namespace = "com.datacomsolusindo.telnow2.telnow_mobile2"
- // compileSdk = flutter.compileSdkVersion
- // ndkVersion = flutter.ndkVersion
- // compileOptions {
- // coreLibraryDesugaringEnabled true
- // sourceCompatibility = JavaVersion.VERSION_1_8
- // targetCompatibility = JavaVersion.VERSION_1_8
- // }
- // kotlinOptions {
- // jvmTarget = JavaVersion.VERSION_1_8
- // }
- // defaultConfig {
- // // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
- // applicationId = "com.datacomsolusindo.telnow2.telnow_mobile2"
- // // You can update the following values to match your application needs.
- // // For more information, see: https://flutter.dev/to/review-gradle-config.
- // minSdk = 23
- // targetSdk = flutter.targetSdkVersion
- // versionCode = flutter.versionCode
- // versionName = flutter.versionName
- // ndkVersion "25.1.8937393"
- // }
- // signingConfigs {
- // release {
- // keyAlias keystoreProperties['keyAlias']
- // keyPassword keystoreProperties['keyPassword']
- // storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
- // storePassword keystoreProperties['storePassword']
- // }
- // }
- // buildTypes {
- // release {
- // // TODO: Add your own signing config for the release build.
- // // Signing with the debug keys for now, so `flutter run --release` works.
- // signingConfig = signingConfigs.release
- // }
- // }
- // }
- // flutter {
- // source = "../.."
- // }
- // dependencies{
- // coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.4'
- // implementation('com.google.firebase:firebase-auth') {
- // exclude module: "play-services-safetynet"
- // }
- // }
- import java.util.Properties
- import java.io.FileInputStream
- val keystoreProperties = Properties()
- val keystorePropertiesFile = rootProject.file("key.properties")
- if (keystorePropertiesFile.exists()) {
- keystoreProperties.load(FileInputStream(keystorePropertiesFile))
- }
- plugins {
- id("com.android.application")
- // START: FlutterFire Configuration
- id("com.google.gms.google-services")
- // END: FlutterFire Configuration
- id("kotlin-android")
- // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
- id("dev.flutter.flutter-gradle-plugin")
- }
- android {
- namespace = "com.datacomsolusindo.telnow2.telnow_mobile2"
- compileSdk = flutter.compileSdkVersion
- ndkVersion = "27.0.12077973" //flutter.ndkVersion
- compileOptions {
- isCoreLibraryDesugaringEnabled = true
- sourceCompatibility = JavaVersion.VERSION_11
- targetCompatibility = JavaVersion.VERSION_11
- }
- kotlinOptions {
- jvmTarget = JavaVersion.VERSION_11.toString()
- }
- defaultConfig {
- // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
- applicationId = "com.datacomsolusindo.telnow2.telnow_mobile2"
- // You can update the following values to match your application needs.
- // For more information, see: https://flutter.dev/to/review-gradle-config.
- minSdk = 23//flutter.minSdkVersion
- targetSdk = flutter.targetSdkVersion
- versionCode = flutter.versionCode
- versionName = flutter.versionName
- }
- signingConfigs {
- create("release") {
- keyAlias = keystoreProperties["keyAlias"] as String
- keyPassword = keystoreProperties["keyPassword"] as String
- storeFile = keystoreProperties["storeFile"]?.let { file(it) }
- storePassword = keystoreProperties["storePassword"] as String
- }
- }
- buildTypes {
- release {
- // TODO: Add your own signing config for the release build.
- // Signing with the debug keys for now, so `flutter run --release` works.
- // signingConfig = signingConfigs.getByName("debug")
- signingConfig = signingConfigs.getByName("release")
- }
- }
- }
- dependencies {
- // For AGP 7.4+
- coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.4")
- // For AGP 7.3
- // coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:1.2.3")
- // For AGP 4.0 to 7.2
- // coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:1.1.9")
- }
- flutter {
- source = "../.."
- }
|