build.gradle 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. flavorDimensions "versionCode"
  12. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  13. }
  14. signingConfigs {
  15. efunbox {
  16. keyAlias "edufound_key"
  17. keyPassword "edufound321"
  18. storeFile file("C:/Users/Candy/Desktop/edufound.keystore")
  19. storePassword "edufound123"
  20. }
  21. }
  22. buildTypes {
  23. release {
  24. minifyEnabled false
  25. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  26. signingConfig signingConfigs.efunbox
  27. zipAlignEnabled true
  28. }
  29. }
  30. sourceSets {
  31. main {
  32. jniLibs.srcDirs = ["libs"]
  33. }
  34. }
  35. productFlavors {
  36. // 语文预习
  37. yuwen_prepare {
  38. applicationId 'com.edufound.bytedance.yuwen.prepare'
  39. // manifestPlaceholders = [app_name: "app", app_icon: "@mipmap/ic_launcher"]
  40. }
  41. // 语文复习
  42. yuwen_review {
  43. applicationId 'com.edufound.bytedance.yuwen.review'
  44. // manifestPlaceholders = [app_name: "app1", app_icon: "@mipmap/ic_launcher"]
  45. }
  46. // 数学预习
  47. mathematics_prepare {
  48. applicationId 'com.edufound.bytedance.mathematics.prepare'
  49. // manifestPlaceholders = [app_name: "app", app_icon: "@mipmap/ic_launcher"]
  50. }
  51. // 数学复习
  52. mathematics_review {
  53. applicationId 'com.edufound.bytedance.mathematics.review'
  54. // manifestPlaceholders = [app_name: "app1", app_icon: "@mipmap/ic_launcher"]
  55. }
  56. }
  57. // productFlavors.all {
  58. // flavor -> flavor.manifestPlaceholders = []
  59. // }
  60. }
  61. repositories {
  62. flatDir {
  63. dirs 'libs'
  64. }
  65. }
  66. dependencies {
  67. implementation fileTree(dir: "libs", include: ["*.jar"])
  68. implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  69. implementation 'androidx.core:core-ktx:1.3.1'
  70. implementation 'androidx.appcompat:appcompat:1.2.0'
  71. testImplementation 'junit:junit:4.12'
  72. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  73. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  74. //okhttp3
  75. implementation 'com.squareup.okhttp3:okhttp:4.8.0'
  76. implementation 'com.squareup.okio:okio:2.7.0'
  77. //gson
  78. implementation 'com.google.code.gson:gson:2.8.6'
  79. //umeng
  80. implementation 'com.umeng.umsdk:common:9.3.0' // (必选)版本号
  81. implementation 'com.umeng.umsdk:asms:1.1.3' // asms包依赖(必选)
  82. implementation 'com.umeng.umsdk:crash:0.0.5' // native crash包依赖(必选)
  83. }