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.

70 lines
2.2 KiB

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