统一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.

69 lines
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. ]
  20. }
  21. signingConfigs {
  22. debug {
  23. storeFile file(signing.storeFile)
  24. storePassword signing.storePassword
  25. keyAlias signing.keyAlias
  26. keyPassword signing.keyPassword
  27. }
  28. }
  29. buildTypes {
  30. debug {
  31. signingConfig signingConfigs.debug
  32. }
  33. release {
  34. signingConfig signingConfigs.debug
  35. minifyEnabled false
  36. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  37. }
  38. }
  39. compileOptions {
  40. sourceCompatibility JavaVersion.VERSION_11
  41. targetCompatibility JavaVersion.VERSION_11
  42. }
  43. kotlinOptions {
  44. jvmTarget = '11'
  45. }
  46. }
  47. dependencies {
  48. implementation fileTree(dir: 'libs', includes: ['*.jar', '*.aar'])
  49. implementation 'androidx.core:core-ktx:1.7.0'
  50. implementation 'androidx.appcompat:appcompat:1.4.1'
  51. implementation 'com.google.android.material:material:1.5.0'
  52. implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
  53. testImplementation 'junit:junit:4.13.2'
  54. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  55. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  56. // implementation 'cn.org.bjca.trus:push:0.0.1.011'
  57. implementation project(path: ':push')
  58. }