build.gradle 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 29
  4. namespace 'uni.dcloud.io.uniplugin_component'
  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. buildFeatures {
  23. viewBinding true
  24. }
  25. }
  26. repositories {
  27. flatDir {
  28. dirs 'libs'
  29. }
  30. }
  31. dependencies {
  32. implementation 'com.google.android.material:material:1.2.1'
  33. implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  34. implementation 'androidx.navigation:navigation-fragment:2.3.0'
  35. implementation 'androidx.navigation:navigation-ui:2.3.0'
  36. compileOnly fileTree(dir: 'libs', include: ['*.jar'])
  37. compileOnly fileTree(dir: '../app/libs', include: ['uniapp-v8-release.aar'])
  38. compileOnly 'androidx.recyclerview:recyclerview:1.0.0'
  39. compileOnly 'androidx.legacy:legacy-support-v4:1.0.0'
  40. compileOnly 'androidx.appcompat:appcompat:1.0.0'
  41. implementation 'com.alibaba:fastjson:1.2.83'
  42. implementation 'com.facebook.fresco:fresco:1.13.0'
  43. /*implementation 'com.android.support:appcompat-v7:28.0.0'
  44. testImplementation 'junit:junit:4.12'
  45. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  46. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'*/
  47. }