统一IM方案,Android端sdk
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

69 wiersze
1.9KB

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