build.gradle 1.3 KB

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