build.gradle 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'kotlin-android'
  3. apply plugin: 'kotlin-android-extensions'
  4. android {
  5. compileSdkVersion getProject().compileSdkVersion
  6. buildToolsVersion getProject().buildToolsVersion
  7. defaultConfig {
  8. applicationId "com.ted.weather"
  9. minSdkVersion getProject().minSdkVersion
  10. targetSdkVersion getProject().targetSdkVersion
  11. versionCode getProject().versionCode
  12. versionName getProject().versionName
  13. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  14. }
  15. buildTypes {
  16. release {
  17. minifyEnabled false
  18. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  19. }
  20. }
  21. }
  22. dependencies {
  23. compile fileTree(dir: 'libs', include: ['*.jar'])
  24. androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
  25. exclude group: 'com.android.support', module: 'support-annotations'
  26. })
  27. compile "com.google.code.gson:gson:2.8.1"
  28. compile getProject().appcompatV7
  29. compile getProject().constraintLayout
  30. compile getProject().design
  31. compile getProject().recycleView
  32. testCompile 'junit:junit:4.12'
  33. compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  34. compile "org.jetbrains.anko:anko-commons:$anko_version"
  35. compile "org.jetbrains.anko:anko-sqlite:$anko_version"
  36. compile "org.jetbrains.anko:anko-coroutines:$anko_version"
  37. compile "com.squareup.picasso:picasso:2.5.2"
  38. }
  39. kotlin {
  40. experimental {
  41. coroutines 'enable'
  42. }
  43. }
  44. repositories {
  45. mavenCentral()
  46. }