build.gradle 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 34
  4. defaultConfig {
  5. minSdkVersion 21
  6. targetSdkVersion 34
  7. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  8. manifestPlaceholders = [
  9. MI_APP_ID : "2882303761517722456",
  10. MI_APP_KEY : "5731772292456",
  11. HMS_APP_ID : "100221325",
  12. MEIZU_APP_ID : "113616",
  13. MEIZU_APP_KEY: "fcd886f51c144b45b87a67a28e2934d1",
  14. VIVO_APP_ID : "12918",
  15. VIVO_APP_KEY : "c42feb05-de6c-427d-af55-4f902d9e0a75",
  16. OPPO_APP_KEY : "16c6afe503b24259928e082ef01a6bf2",
  17. OPPO_APP_SECRET : "16c6afe503b24259928e082ef01a6bf2"
  18. ]
  19. }
  20. buildTypes {
  21. release {
  22. minifyEnabled false
  23. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  24. }
  25. }
  26. compileOptions {
  27. sourceCompatibility 1.8
  28. targetCompatibility 1.8
  29. }
  30. namespace 'cn.wildfirechat.push'
  31. }
  32. dependencies {
  33. implementation fileTree(dir: 'libs', include: ['*.jar'])
  34. compileOnly fileTree(dir: '../push-aar-dep', include: ['*.aar'])
  35. implementation 'com.huawei.hms:push:6.12.0.300'
  36. implementation 'androidx.appcompat:appcompat:1.7.0'
  37. implementation project(':client')
  38. // implementation 'com.meizu.flyme.internet:push-internal:3.4.2@aar'
  39. implementation platform('com.google.firebase:firebase-bom:33.2.0')
  40. implementation 'com.google.firebase:firebase-messaging:24.0.1'
  41. implementation 'com.google.android.gms:play-services-base:18.5.0'
  42. def lifecycle_version = '2.2.0'
  43. implementation "androidx.lifecycle:lifecycle-extensions:$lifecycle_version"
  44. }