学习机 新
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.

build.gradle 2.1KB

2 maanden geleden
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. }