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

72 行
2.3 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. // AndroidManifest.xml占位符
  16. manifestPlaceholders = [
  17. // App名称
  18. APP_NAME: "${project.properties.appName}",
  19. // App图标
  20. APP_ICON: "@mipmap/ic_launcher_${project.properties.appIconKey}",
  21. // App圆角图标
  22. APP_ROUND_ICON: "@mipmap/ic_launcher_${project.properties.appIconKey}_round"
  23. ]
  24. }
  25. signingConfigs {
  26. release {
  27. v1SigningEnabled true
  28. v2SigningEnabled true
  29. storeFile file(project.properties.storeFile)
  30. storePassword project.properties.storePassword
  31. keyAlias project.properties.keyAlias
  32. keyPassword project.properties.keyPassword
  33. }
  34. }
  35. buildTypes {
  36. release {
  37. minifyEnabled false
  38. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  39. signingConfig signingConfigs.release
  40. //resValue("string", "app_custom_name", "\"${project.properties.appName}\"")
  41. }
  42. debug {
  43. signingConfig signingConfigs.release
  44. //resValue("string", "app_custom_name", "\"${project.properties.appName}\"")
  45. }
  46. }
  47. compileOptions {
  48. sourceCompatibility JavaVersion.VERSION_1_8
  49. targetCompatibility JavaVersion.VERSION_1_8
  50. }
  51. buildFeatures {
  52. viewBinding true
  53. }
  54. }
  55. dependencies {
  56. implementation 'androidx.appcompat:appcompat:1.2.0'
  57. implementation 'com.google.android.material:material:1.2.1'
  58. testImplementation 'junit:junit:4.+'
  59. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  60. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  61. implementation 'com.github.Justson.AgentWeb:agentweb-core:v4.1.9-androidx' // (必选)
  62. implementation 'com.github.Justson.AgentWeb:agentweb-filechooser:v4.1.9-androidx'
  63. }