build.gradle 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion rootProject.ext.compileSdkVersion
  4. buildToolsVersion rootProject.ext.buildToolsVersion
  5. defaultConfig {
  6. minSdkVersion rootProject.ext.minSdkVersion
  7. targetSdkVersion rootProject.ext.targetSdkVersion
  8. versionCode 1
  9. versionName "1.0"
  10. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  11. }
  12. buildTypes {
  13. release {
  14. minifyEnabled false
  15. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  16. }
  17. }
  18. }
  19. dependencies {
  20. implementation fileTree(dir: 'libs', include: ['*.jar'])
  21. implementation("com.android.support:appcompat-v7:${support}")
  22. implementation("com.android.support:recyclerview-v7:${support}")
  23. implementation("com.android.support.constraint:constraint-layout:${constraint}")
  24. testImplementation 'junit:junit:4.12'
  25. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  26. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  27. implementation 'com.github.SilenceDut:jpinyin:v1.0'
  28. }