No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.gradle 2.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. def localProperties = new Properties()
  2. def localPropertiesFile = rootProject.file('local.properties')
  3. if (localPropertiesFile.exists()) {
  4. localPropertiesFile.withReader('UTF-8') {
  5. reader -> localProperties.load(reader)
  6. }
  7. }
  8. def flutterRoot = localProperties.getProperty('flutter.sdk')
  9. if (flutterRoot == null) {
  10. //throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
  11. throw FileNotFoundException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
  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. apply plugin: 'com.google.gms.google-services'
  22. apply plugin: 'com.android.application'
  23. apply plugin: 'kotlin-android'
  24. apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
  25. apply plugin: 'com.google.firebase.crashlytics'
  26. android {
  27. compileSdkVersion flutter.compileSdkVersion
  28. compileSdkVersion 33
  29. ndkVersion flutter.ndkVersion
  30. compileOptions {
  31. sourceCompatibility JavaVersion.VERSION_1_8
  32. targetCompatibility JavaVersion.VERSION_1_8
  33. }
  34. defaultConfig {
  35. // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
  36. applicationId "com.icp.tower"
  37. // You can update the following values to match your application needs.
  38. // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
  39. //minSdkVersion flutter.minSdkVersion
  40. minSdkVersion 28
  41. //compiledSdkVersion 33
  42. targetSdkVersion flutter.targetSdkVersion
  43. versionCode flutterVersionCode.toInteger()
  44. versionName flutterVersionName
  45. multiDexEnabled true
  46. }
  47. signingConfigs {
  48. release {
  49. storeFile file('D:/Android Studio Projects/tower/tower_keystore.jks')
  50. storePassword '123123'
  51. keyAlias 'tower_keystore'
  52. keyPassword '123123'
  53. }
  54. }
  55. buildTypes {
  56. release {
  57. // TODO: Add your own signing config for the release build.
  58. // Signing with the debug keys for now, so `flutter run --release` works.
  59. //signingConfig signingConfigs.debug
  60. signingConfig signingConfigs.release
  61. }
  62. }
  63. }
  64. flutter {
  65. source '../..'
  66. }
  67. dependencies{
  68. implementation 'com.android.support:multidex:1.0.3'
  69. implementation platform('com.google.firebase:firebase-bom:30.2.0')
  70. implementation 'com.google.firebase:firebase-analytics'
  71. }