build.gradle 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. plugins {
  2. id 'com.android.application'
  3. id 'com.huawei.agconnect'
  4. }
  5. android {
  6. compileSdkVersion 29
  7. buildToolsVersion "29.0.3"
  8. defaultConfig {
  9. applicationId "cn.seecoder.courselearningdemo"
  10. minSdkVersion 29
  11. targetSdkVersion 29
  12. versionCode 1
  13. versionName "1.0"
  14. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  15. }
  16. signingConfigs {
  17. config {
  18. keyAlias 'HMS_demo_key'
  19. keyPassword 'seecoder'
  20. storeFile file('MyApplicationKey.jks')
  21. storePassword 'seecoder'
  22. v1SigningEnabled true
  23. v2SigningEnabled true
  24. }
  25. }
  26. buildTypes {
  27. debug {
  28. signingConfig signingConfigs.config
  29. debuggable true
  30. }
  31. release {
  32. signingConfig signingConfigs.config
  33. minifyEnabled false
  34. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  35. }
  36. }
  37. compileOptions {
  38. sourceCompatibility JavaVersion.VERSION_1_8
  39. targetCompatibility JavaVersion.VERSION_1_8
  40. }
  41. }
  42. dependencies {
  43. implementation 'com.huawei.hms:hwid:5.0.5.301'
  44. implementation 'com.huawei.hms:iap:5.0.1.300'
  45. implementation 'com.huawei.hms:push:5.0.2.300'
  46. implementation 'androidx.recyclerview:recyclerview:1.1.0'
  47. implementation 'com.squareup.retrofit2:retrofit:2.7.0'
  48. implementation 'com.squareup.retrofit2:converter-gson:2.7.0'
  49. // 生成圆形的头像图片
  50. implementation 'de.hdodenhof:circleimageview:3.1.0'
  51. // 用于加载图片的框架
  52. implementation 'com.github.bumptech.glide:glide:4.11.0'
  53. annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
  54. // 用于刷新列表的框架
  55. implementation 'com.lcodecorex:tkrefreshlayout:1.0.7'
  56. // View注入框架,不用再写findViewById
  57. implementation 'com.jakewharton:butterknife:10.2.1'
  58. annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.1'
  59. implementation 'androidx.appcompat:appcompat:1.2.0'
  60. implementation 'com.google.android.material:material:1.2.1'
  61. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  62. implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
  63. testImplementation 'junit:junit:4.+'
  64. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  65. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  66. androidTestImplementation 'androidx.test.espresso:espresso-contrib:3.3.0'
  67. }