uni_android_plugin_project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.8 KiB

  1. plugins {
  2. id 'com.android.library'
  3. }
  4. android {
  5. compileSdkVersion 29
  6. defaultConfig {
  7. minSdkVersion 19
  8. targetSdkVersion 29
  9. versionCode 1
  10. versionName "1.0"
  11. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  12. consumerProguardFiles "consumer-rules.pro"
  13. }
  14. buildTypes {
  15. release {
  16. minifyEnabled false
  17. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  18. }
  19. }
  20. compileOptions {
  21. sourceCompatibility JavaVersion.VERSION_1_8
  22. targetCompatibility JavaVersion.VERSION_1_8
  23. }
  24. }
  25. //导入aar需要的配置
  26. repositories {
  27. flatDir {
  28. dirs 'libs'
  29. }
  30. }
  31. dependencies {
  32. compileOnly fileTree(dir: 'libs', include: ['*.jar'])
  33. compileOnly fileTree(dir: '../app/libs', include: ['uniapp-v8-release.aar'])
  34. compileOnly 'androidx.recyclerview:recyclerview:1.0.0'
  35. compileOnly 'androidx.legacy:legacy-support-v4:1.0.0'
  36. compileOnly 'androidx.appcompat:appcompat:1.0.0'
  37. implementation 'com.alibaba:fastjson:1.1.46.android'
  38. implementation 'com.facebook.fresco:fresco:1.13.0'
  39. // implementation 'androidx.appcompat:appcompat:1.1.0'
  40. // implementation 'com.google.android.material:material:1.1.0'
  41. // testImplementation 'junit:junit:4.+'
  42. // androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  43. // androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  44. //
  45. // //必须添加的依赖
  46. //// compileOnly 'com.android.support:recyclerview-v7:28.0.0'
  47. //// compileOnly 'com.android.support:support-v4:28.0.0'
  48. //// compileOnly 'com.android.support:appcompat-v7:28.0.0'
  49. // compileOnly 'com.alibaba:fastjson:1.1.46.android'
  50. //
  51. // compileOnly fileTree(include: ['uniapp-v8-release.aar'], dir: '../app/libs')
  52. }