build.gradle 1002 B

123456789101112131415161718192021222324252627282930313233
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion ANDROID_COMPILE_SDK_VERSION as int
  4. buildToolsVersion ANDROID_BUILD_TOOLS_VERSION
  5. defaultConfig {
  6. minSdkVersion ANDROID_MIN_SDK_VERSION as int
  7. targetSdkVersion ANDORID_TARGET_SDK_VERSION as int
  8. versionCode VERSION_CODE as int
  9. versionName VERSION_NAME
  10. }
  11. buildTypes {
  12. release {
  13. minifyEnabled false
  14. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  15. }
  16. }
  17. compileOptions {
  18. sourceCompatibility JavaVersion.VERSION_1_8
  19. targetCompatibility JavaVersion.VERSION_1_8
  20. }
  21. }
  22. dependencies {
  23. implementation fileTree(include: ['*.jar'], dir: 'libs')
  24. androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
  25. exclude group: 'com.android.support', module: 'support-annotations'
  26. })
  27. implementation "com.android.support:appcompat-v7:$supportLibVersion"
  28. }