build.gradle 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 29
  4. namespace 'uni.dcloud.io.uniplugin_module'
  5. defaultConfig {
  6. minSdkVersion 16
  7. targetSdkVersion 28
  8. versionCode 1
  9. versionName "1.0"
  10. testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
  11. }
  12. buildTypes {
  13. release {
  14. minifyEnabled false
  15. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  16. }
  17. }
  18. compileOptions {
  19. sourceCompatibility JavaVersion.VERSION_1_8
  20. targetCompatibility JavaVersion.VERSION_1_8
  21. }
  22. }
  23. repositories {
  24. flatDir {
  25. dirs 'libs'
  26. }
  27. }
  28. dependencies {
  29. compileOnly fileTree(dir: 'libs', include: ['*.jar'])
  30. compileOnly fileTree(dir: '../app/libs', include: ['uniapp-v8-release.aar'])
  31. compileOnly 'androidx.recyclerview:recyclerview:1.0.0'
  32. compileOnly 'androidx.legacy:legacy-support-v4:1.0.0'
  33. compileOnly 'androidx.appcompat:appcompat:1.0.0'
  34. implementation 'com.alibaba:fastjson:1.2.83'
  35. implementation 'com.facebook.fresco:fresco:1.13.0'
  36. /*implementation 'com.android.support:appcompat-v7:28.0.0'
  37. testImplementation 'junit:junit:4.12'
  38. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  39. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'*/
  40. }