flutter plugin for zebra multiplatform sdk

build.gradle 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. plugins {
  2. id "com.android.application"
  3. id "kotlin-android"
  4. id "dev.flutter.flutter-gradle-plugin"
  5. }
  6. def localProperties = new Properties()
  7. def localPropertiesFile = rootProject.file('local.properties')
  8. if (localPropertiesFile.exists()) {
  9. localPropertiesFile.withReader('UTF-8') { reader ->
  10. localProperties.load(reader)
  11. }
  12. }
  13. def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
  14. if (flutterVersionCode == null) {
  15. flutterVersionCode = '1'
  16. }
  17. def flutterVersionName = localProperties.getProperty('flutter.versionName')
  18. if (flutterVersionName == null) {
  19. flutterVersionName = '1.0'
  20. }
  21. android {
  22. namespace "id.kalanusa.flutter_zsdk_example"
  23. compileSdk flutter.compileSdkVersion
  24. ndkVersion "25.1.8937393"
  25. compileOptions {
  26. sourceCompatibility JavaVersion.VERSION_1_8
  27. targetCompatibility JavaVersion.VERSION_1_8
  28. }
  29. defaultConfig {
  30. // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
  31. applicationId "id.kalanusa.flutter_zsdk_example"
  32. // You can update the following values to match your application needs.
  33. // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
  34. minSdkVersion 21
  35. targetSdkVersion flutter.targetSdkVersion
  36. versionCode flutterVersionCode.toInteger()
  37. versionName flutterVersionName
  38. multiDexEnabled true
  39. }
  40. buildTypes {
  41. release {
  42. // TODO: Add your own signing config for the release build.
  43. // Signing with the debug keys for now, so `flutter run --release` works.
  44. signingConfig signingConfigs.debug
  45. }
  46. }
  47. packagingOptions {
  48. exclude 'META-INF/LICENSE.txt'
  49. exclude 'META-INF/NOTICE.txt'
  50. exclude 'META-INF/NOTICE'
  51. exclude 'META-INF/LICENSE'
  52. exclude 'META-INF/DEPENDENCIES'
  53. }
  54. // lintOptions {
  55. // checkReleaseBuilds false
  56. // }
  57. }
  58. dependencies {
  59. implementation("androidx.multidex:multidex:2.0.1") // Add the multidex library
  60. }
  61. flutter {
  62. source '../..'
  63. }