build.gradle 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. group 'com.anji.aj_flutter_appsp_push'
  2. version '1.0'
  3. buildscript {
  4. repositories {
  5. google()
  6. jcenter()
  7. }
  8. dependencies {
  9. classpath 'com.android.tools.build:gradle:4.1.0'
  10. }
  11. }
  12. rootProject.allprojects {
  13. repositories {
  14. google()
  15. jcenter()
  16. }
  17. }
  18. apply plugin: 'com.android.library'
  19. android {
  20. compileSdkVersion 30
  21. defaultConfig {
  22. minSdkVersion 16
  23. }
  24. packagingOptions {
  25. doNotStrip '*/mips/*.so'
  26. doNotStrip '*/mips64/*.so'
  27. merge 'classes.jar'
  28. merge 'res/values/values.xml'
  29. merge 'AndroidManifest.xml'
  30. merge 'R.txt'
  31. }
  32. sourceSets {
  33. main {
  34. jniLibs.srcDir 'libs'
  35. jni.srcDirs = [] //disable automatic ndk-build
  36. }
  37. }
  38. compileOptions {
  39. sourceCompatibility = 1.8
  40. targetCompatibility = 1.8
  41. }
  42. }
  43. dependencies {
  44. provided fileTree(dir: 'libs', include: ['*.jar'])
  45. provided fileTree(dir: 'libs', include: ['*.aar'])
  46. implementation 'androidx.appcompat:appcompat:1.0.2'
  47. // push kit
  48. implementation 'com.huawei.hms:push:4.0.3.301'
  49. implementation files('libs\\MiPush_SDK_Client_3_8_5.jar')
  50. implementation 'cn.jiguang.sdk:jpush:3.9.0' // 此处以JPush 3.9.0 版本为例。
  51. implementation 'cn.jiguang.sdk:jcore:2.6.0' // 此处以JCore 2.6.0 版本为例。
  52. implementation 'com.google.code.gson:gson:2.7'
  53. implementation "androidx.annotation:annotation:1.1.0"
  54. }