build.gradle 750 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. apply plugin: 'com.android.library'
  2. group='com.github.Jay-Goo'
  3. android {
  4. compileSdkVersion 28
  5. defaultConfig {
  6. minSdkVersion 16
  7. targetSdkVersion 28
  8. testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
  9. }
  10. buildTypes {
  11. release {
  12. minifyEnabled false
  13. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  14. }
  15. }
  16. namespace 'com.jaygoo.widget'
  17. }
  18. dependencies {
  19. implementation fileTree(dir: 'libs', include: ['*.jar'])
  20. implementation "androidx.annotation:annotation:1.1.0"
  21. implementation 'androidx.appcompat:appcompat:1.5.1'
  22. }
  23. // 指定编码
  24. tasks.withType(JavaCompile) {
  25. options.encoding = "UTF-8"
  26. }