build.gradle 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion 30
  4. buildToolsVersion "30.0.1"
  5. defaultConfig {
  6. applicationId "com.edufound.bytedance"
  7. minSdkVersion 14
  8. targetSdkVersion 30
  9. versionCode 1
  10. versionName "1.0"
  11. multiDexEnabled true
  12. flavorDimensions "versionCode"
  13. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  14. manifestPlaceholders = [APP_SCHEME_HOST: "com.edufound.bytedance.yuwen.prepare"]
  15. }
  16. signingConfigs {
  17. efunbox {
  18. keyAlias "edufound_key"
  19. keyPassword "edufound321"
  20. storeFile file("C:/Users/Candy/Desktop/edufound.keystore")
  21. storePassword "edufound123"
  22. }
  23. }
  24. 123123123
  25. buildTypes {
  26. release {
  27. minifyEnabled false
  28. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  29. signingConfig signingConfigs.efunbox
  30. zipAlignEnabled true
  31. }
  32. }
  33. sourceSets {
  34. main {
  35. jniLibs.srcDirs = ["libs"]
  36. }
  37. }
  38. productFlavors {
  39. // 语文预习
  40. yuwen_prepare {
  41. applicationId 'com.edufound.bytedance.yuwen.prepare'
  42. manifestPlaceholders = [schemeHost: "com.edufound.bytedance.yuwen.prepare",
  43. appName : "语文预习"
  44. ]
  45. }
  46. // 语文复习
  47. yuwen_review {
  48. applicationId 'com.edufound.bytedance.yuwen.review'
  49. manifestPlaceholders = [schemeHost: "com.edufound.bytedance.yuwen.review",
  50. appName : "语文复习"
  51. ]
  52. }
  53. // 数学预习
  54. mathematics_prepare {
  55. applicationId 'com.edufound.bytedance.mathematics.prepare'
  56. manifestPlaceholders = [schemeHost: "com.edufound.bytedance.mathematics.prepare",
  57. appName : "数学预习"
  58. ]
  59. }
  60. // 数学复习
  61. mathematics_review {
  62. applicationId 'com.edufound.bytedance.mathematics.review'
  63. manifestPlaceholders = [schemeHost: "com.edufound.bytedance.mathematics.review",
  64. appName : "数学复习"
  65. ]
  66. }
  67. }
  68. productFlavors.all {
  69. flavor ->
  70. flavor.manifestPlaceholders = [
  71. APP_SCHEME_HOST: manifestPlaceholders.schemeHost,
  72. APP_NAME : manifestPlaceholders.appName
  73. ]
  74. }
  75. }
  76. repositories {
  77. flatDir {
  78. dirs 'libs'
  79. }
  80. }
  81. dependencies {
  82. implementation fileTree(dir: "libs", include: ["*.jar"])
  83. implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  84. implementation 'androidx.core:core-ktx:1.3.1'
  85. implementation 'androidx.appcompat:appcompat:1.2.0'
  86. testImplementation 'junit:junit:4.12'
  87. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  88. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  89. //okhttp3
  90. implementation 'com.squareup.okhttp3:okhttp:4.8.0'
  91. implementation 'com.squareup.okio:okio:2.7.0'
  92. //gson
  93. implementation 'com.google.code.gson:gson:2.8.6'
  94. //umeng
  95. implementation 'com.umeng.umsdk:common:9.3.0' // (必选)版本号
  96. implementation 'com.umeng.umsdk:asms:1.1.3' // asms包依赖(必选)
  97. implementation 'com.umeng.umsdk:crash:0.0.5' // native crash包依赖(必选)
  98. }