统一IM方案,Android端sdk
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.

72 lines
2.0KB

  1. plugins {
  2. id 'com.android.application'
  3. id 'org.jetbrains.kotlin.android'
  4. id 'com.huawei.agconnect'
  5. }
  6. android {
  7. namespace 'cn.org.bjca.trust.pushdemo'
  8. compileSdk 33
  9. buildFeatures.dataBinding = true
  10. defaultConfig {
  11. applicationId "cn.org.bjca.trust.pushdemo"
  12. minSdk 24
  13. targetSdk 33
  14. versionCode 1
  15. versionName "1.0"
  16. multiDexEnabled true
  17. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  18. manifestPlaceholders = [
  19. XIAOMI_APP_ID : "2882303761520224743",
  20. XIAOMI_APP_KEY: "5762022470743",
  21. ]
  22. }
  23. signingConfigs {
  24. debug {
  25. storeFile file(signing.storeFile)
  26. storePassword signing.storePassword
  27. keyAlias signing.keyAlias
  28. keyPassword signing.keyPassword
  29. }
  30. }
  31. buildTypes {
  32. debug {
  33. signingConfig signingConfigs.debug
  34. }
  35. release {
  36. signingConfig signingConfigs.debug
  37. minifyEnabled false
  38. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  39. }
  40. }
  41. compileOptions {
  42. sourceCompatibility JavaVersion.VERSION_11
  43. targetCompatibility JavaVersion.VERSION_11
  44. }
  45. kotlinOptions {
  46. jvmTarget = '11'
  47. }
  48. }
  49. dependencies {
  50. implementation fileTree(dir: 'libs', includes: ['*.jar', '*.aar'])
  51. implementation 'androidx.core:core-ktx:1.7.0'
  52. implementation 'androidx.appcompat:appcompat:1.4.1'
  53. implementation 'com.google.android.material:material:1.5.0'
  54. implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
  55. testImplementation 'junit:junit:4.13.2'
  56. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  57. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  58. implementation 'com.xuqm.android:base:0.0.5'
  59. // implementation 'cn.org.bjca.trus:push:0.0.1.011'
  60. implementation project(path: ':push')
  61. }