android端
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 

92 satır
3.4 KiB

  1. plugins {
  2. id 'com.android.application'
  3. }
  4. android {
  5. compileSdkVersion 30
  6. defaultConfig {
  7. applicationId "com.nsgk.ruralWeb"
  8. minSdkVersion 24
  9. targetSdkVersion 30
  10. versionCode 1
  11. versionName "1.0"
  12. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  13. // App首页链接地址
  14. buildConfigField "String", "APP_HOME_URL", "\"${project.properties.appHomeUrl}\""
  15. // App启动页版权文本
  16. buildConfigField "String", "APP_COMPYRIGHT", "\"${project.properties.appCopyright}\""
  17. // App启动页厂商名称
  18. buildConfigField "String", "APP_VENDOR", "\"${project.properties.appVendor}\""
  19. // App图标
  20. buildConfigField "String", "APP_ICON", "\"${project.properties.appIconKey}\""
  21. // AndroidManifest.xml占位符
  22. manifestPlaceholders = [
  23. // App名称
  24. APP_NAME: "${project.properties.appName}",
  25. // App图标
  26. APP_ICON: "@mipmap/ic_launcher_${project.properties.appIconKey}",
  27. // App圆角图标
  28. APP_ROUND_ICON: "@mipmap/ic_launcher_${project.properties.appIconKey}_round"
  29. ]
  30. }
  31. signingConfigs {
  32. release {
  33. v1SigningEnabled true
  34. v2SigningEnabled true
  35. storeFile file(project.properties.storeFile)
  36. storePassword project.properties.storePassword
  37. keyAlias project.properties.keyAlias
  38. keyPassword project.properties.keyPassword
  39. }
  40. }
  41. buildTypes {
  42. release {
  43. minifyEnabled false
  44. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  45. signingConfig signingConfigs.release
  46. resValue("string", "app_home_url", "\"${project.properties.appHomeUrl}\"")
  47. resValue("string", "app_copyright", "\"${project.properties.appCopyright}\"")
  48. resValue("string", "app_vendor", "\"${project.properties.appVendor}\"")
  49. resValue("string", "app_name2", "\"${project.properties.appName}\"")
  50. }
  51. debug {
  52. signingConfig signingConfigs.release
  53. resValue("string", "app_home_url", "\"${project.properties.appHomeUrl}\"")
  54. resValue("string", "app_copyright", "\"${project.properties.appCopyright}\"")
  55. resValue("string", "app_vendor", "\"${project.properties.appVendor}\"")
  56. resValue("string", "app_name2", "\"${project.properties.appName}\"")
  57. }
  58. }
  59. compileOptions {
  60. sourceCompatibility JavaVersion.VERSION_1_8
  61. targetCompatibility JavaVersion.VERSION_1_8
  62. }
  63. buildFeatures {
  64. viewBinding true
  65. }
  66. }
  67. dependencies {
  68. implementation 'androidx.appcompat:appcompat:1.2.0'
  69. implementation 'com.google.android.material:material:1.2.1'
  70. testImplementation 'junit:junit:4.+'
  71. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  72. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  73. implementation 'com.github.Justson.AgentWeb:agentweb-core:v4.1.9-androidx' // (必选)
  74. implementation 'com.github.Justson.AgentWeb:agentweb-filechooser:v4.1.9-androidx'
  75. implementation 'androidx.preference:preference:1.1.1'
  76. implementation 'cn.hutool:hutool-all:5.5.4'
  77. compile fileTree(include: ['*.jar'], dir: 'libs')
  78. //compile 'com.amap.api:location:latest.integration'
  79. }