build.gradle 935 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 28
  4. buildToolsVersion "28.0.3"
  5. defaultConfig {
  6. minSdkVersion 16
  7. targetSdkVersion 28
  8. versionCode 1
  9. versionName "1.0"
  10. }
  11. buildTypes {
  12. release {
  13. minifyEnabled false
  14. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  15. }
  16. }
  17. }
  18. dependencies {
  19. implementation fileTree(dir: 'libs', include: ['*.jar'])
  20. // 华为 HMS push sdk
  21. api 'com.huawei.android.hms:base:2.6.0.301'
  22. api 'com.huawei.android.hms:push:2.6.0.301'
  23. // api 'com.huawei.android.hms:push:2.6.3.301'
  24. // implementation(name:'base-2.6.1.301', ext:'aar')
  25. // implementation(name:'push-2.6.1.301', ext:'aar')
  26. }
  27. // ADD THIS AT THE BOTTOM
  28. //apply plugin: 'com.google.gms.google-services'
  29. //repositories {
  30. // jcenter()
  31. // flatDir{
  32. // dirs 'libs'
  33. // }
  34. //}