build.gradle 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'kotlin-android'
  3. apply from: "../config.gradle"
  4. apply from: "../flutter.gradle"
  5. android {
  6. compileSdkVersion versions.targetSDK
  7. buildToolsVersion "${versions.buildTools}"
  8. defaultConfig {
  9. minSdkVersion versions.minSDK
  10. targetSdkVersion versions.targetSDK
  11. applicationId "$appInfo.applicationID"
  12. versionCode appInfo.build
  13. versionName "${appInfo.version}"
  14. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  15. }
  16. lintOptions {
  17. disable 'InvalidPackage'
  18. }
  19. buildTypes {
  20. release {
  21. // TODO: Add your own signing config for the release build.
  22. // Signing with the debug keys for now, so `flutter run --release` works.
  23. signingConfig signingConfigs.debug
  24. }
  25. }
  26. }
  27. dependencies {
  28. implementation fileTree(dir: 'libs', include: ['*.jar'])
  29. // kotlin
  30. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${versions.kotlin}"
  31. // google
  32. implementation "com.android.support:appcompat-v7:${versions.googleSupport}"
  33. implementation "com.android.support:support-v13:${versions.googleSupport}"
  34. implementation "com.android.support:support-v4:${versions.googleSupport}"
  35. // testing
  36. androidTestImplementation "com.android.support:support-annotations:${versions.googleSupport}"
  37. androidTestImplementation 'com.android.support.test:runner:1.0.1'
  38. androidTestImplementation 'com.android.support.test:rules:1.0.1'
  39. }