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.

58 lines
1.7 KiB

  1. plugins {
  2. id 'com.android.library'
  3. }
  4. android {
  5. compileSdkVersion 29
  6. defaultConfig {
  7. minSdkVersion 16
  8. targetSdkVersion 28
  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. }
  21. //导入aar需要的配置
  22. repositories {
  23. flatDir {
  24. dirs 'libs'
  25. }
  26. }
  27. dependencies {
  28. // implementation 'androidx.appcompat:appcompat:1.1.0'
  29. // implementation 'com.google.android.material:material:1.1.0'
  30. // testImplementation 'junit:junit:4.+'
  31. // androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  32. // androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  33. //
  34. // //必须添加的依赖
  35. //// compileOnly 'com.android.support:recyclerview-v7:28.0.0'
  36. //// compileOnly 'com.android.support:support-v4:28.0.0'
  37. //// compileOnly 'com.android.support:appcompat-v7:28.0.0'
  38. // compileOnly 'com.alibaba:fastjson:1.1.46.android'
  39. //
  40. // compileOnly fileTree(include: ['uniapp-v8-release.aar'], dir: '../app/libs')
  41. compileOnly fileTree(dir: 'libs', include: ['*.jar'])
  42. compileOnly 'androidx.recyclerview:recyclerview:1.0.0'
  43. compileOnly 'androidx.legacy:legacy-support-v4:1.0.0'
  44. compileOnly 'androidx.appcompat:appcompat:1.0.0'
  45. compileOnly 'com.alibaba:fastjson:1.1.46.android'
  46. compileOnly fileTree(dir: '../app/libs', include: ['uniapp-v8-release.aar'])
  47. compileOnly 'com.alibaba:fastjson:1.1.46.android'
  48. }