学习机 新
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

77 行
2.1KB

  1. plugins {
  2. id 'com.android.application'
  3. }
  4. android {
  5. namespace 'com.telpo.devicedinder'
  6. compileSdk 33
  7. defaultConfig {
  8. applicationId "com.telpo.devicedinder"
  9. minSdk 26
  10. targetSdk 33
  11. versionCode 1
  12. versionName "1.0.19"
  13. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  14. archivesBaseName("Devicedinder_${versionName}")
  15. }
  16. signingConfigs {
  17. /* debug {
  18. keyAlias 'IoTTestKey'
  19. keyPassword 'test1234'
  20. storeFile file('config/test.release.keystore.jks')
  21. storePassword 'admin1234'
  22. }
  23. release {
  24. keyAlias 'IoTTestKey'
  25. keyPassword 'test1234'
  26. storeFile file('config/test.release.keystore.jks')
  27. storePassword 'admin1234'
  28. }*/
  29. //系统应用调试
  30. debug {
  31. keyAlias 'platform'
  32. keyPassword '123456'
  33. storeFile file('config/platform.keystore')
  34. storePassword '123456'
  35. }
  36. release {
  37. keyAlias 'platform'
  38. keyPassword '123456'
  39. storeFile file('config/platform.keystore')
  40. storePassword '123456'
  41. }
  42. }
  43. buildTypes {
  44. release {
  45. minifyEnabled false
  46. signingConfig signingConfigs.release
  47. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  48. }
  49. }
  50. compileOptions {
  51. sourceCompatibility JavaVersion.VERSION_16
  52. targetCompatibility JavaVersion.VERSION_16
  53. }
  54. }
  55. dependencies {
  56. implementation 'androidx.appcompat:appcompat:1.4.1'
  57. implementation 'com.google.android.material:material:1.5.0'
  58. implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
  59. testImplementation 'junit:junit:4.13.2'
  60. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  61. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  62. implementation 'com.blankj:utilcodex:1.31.1'
  63. implementation 'com.google.zxing:core:3.3.3' // 引入库
  64. implementation 'com.google.android.gms:play-services-location:19.0.1'
  65. }