build.gradle 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion target_sdk_version
  4. buildToolsVersion build_tools_version
  5. defaultConfig {
  6. minSdkVersion min_sdk_version
  7. targetSdkVersion target_sdk_version
  8. versionCode app_version_code
  9. versionName app_version
  10. compileOptions {
  11. sourceCompatibility JavaVersion.VERSION_1_8
  12. targetCompatibility JavaVersion.VERSION_1_8
  13. }
  14. }
  15. buildTypes {
  16. release {
  17. minifyEnabled false
  18. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  19. }
  20. debug {
  21. minifyEnabled false
  22. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  23. }
  24. sourceSets {
  25. main { jni.srcDirs = [] }
  26. }
  27. }
  28. }
  29. dependencies {
  30. compile fileTree(dir: 'libs', include: ['*.jar'])
  31. androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
  32. exclude group: 'com.android.support', module: 'support-annotations'
  33. })
  34. compile 'com.android.support.constraint:constraint-layout:1.0.2'
  35. testCompile 'junit:junit:4.12'
  36. }