build.gradle 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'kotlin-android'
  3. apply plugin: 'kotlin-android-extensions' //扩展插件
  4. android {
  5. compileSdkVersion 30
  6. buildToolsVersion "30.0.3"
  7. defaultConfig {
  8. applicationId "com.xunao.effectdemo"
  9. minSdkVersion 21
  10. targetSdkVersion 30
  11. versionCode 1
  12. versionName "1.0"
  13. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  14. manifestPlaceholders = [
  15. JPUSH_PKGNAME : applicationId,
  16. JPUSH_APPKEY : "ecffb33772bcb5b0a447c70b", //JPush 上注册的包名对应的 Appkey.
  17. JPUSH_CHANNEL : "developer-default", //暂时填写默认值即可.
  18. // MEIZU_APPKEY : "MZ-魅族的APPKEY",
  19. // MEIZU_APPID : "MZ-魅族的APPID",
  20. // XIAOMI_APPID : "MI-小米的APPID",
  21. // XIAOMI_APPKEY : "MI-小米的APPKEY",
  22. // OPPO_APPKEY : "OP-oppo的APPKEY",
  23. // OPPO_APPID : "OP-oppo的APPID",
  24. // OPPO_APPSECRET : "OP-oppo的APPSECRET",
  25. // VIVO_APPKEY : "vivo的APPKEY",
  26. // VIVO_APPID : "vivo的APPID"
  27. ]
  28. }
  29. buildTypes {
  30. release {
  31. minifyEnabled false
  32. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  33. }
  34. }
  35. compileOptions {
  36. sourceCompatibility JavaVersion.VERSION_1_8
  37. targetCompatibility JavaVersion.VERSION_1_8
  38. }
  39. sourceSets {
  40. main {
  41. jniLibs.srcDirs = ['libs']
  42. assets.srcDir "assets"
  43. }
  44. }
  45. buildFeatures {
  46. viewBinding true
  47. }
  48. // compileOptions {
  49. // targetCompatibility JavaVersion.VERSION_1_8
  50. // sourceCompatibility JavaVersion.VERSION_1_8
  51. // }
  52. }
  53. repositories {
  54. flatDir {
  55. dirs 'libs'
  56. }
  57. }
  58. dependencies {
  59. implementation fileTree(dir: "libs", include: ["*.jar"])
  60. implementation 'androidx.appcompat:appcompat:1.3.0'
  61. implementation 'com.google.android.material:material:1.4.0'
  62. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  63. implementation 'androidx.navigation:navigation-fragment:2.3.5'
  64. implementation 'androidx.navigation:navigation-ui:2.3.5'
  65. testImplementation 'junit:junit:4.12'
  66. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  67. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  68. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  69. implementation 'androidx.core:core-ktx:1.3.1'
  70. implementation 'com.github.xuexiangjys:XUI:1.1.6'
  71. implementation 'com.github.huburt-Hu:NewbieGuide:v2.4.0'
  72. implementation 'com.qmuiteam:qmui:2.0.0-alpha10'
  73. implementation 'com.airbnb.android:lottie:5.2.0'
  74. implementation 'com.github.JadeKkang:like_view:v1.0'
  75. implementation 'cn.jiguang.sdk:jcore:3.3.0' // 此处以JCore 3.3.0 版本为例。
  76. implementation 'cn.jiguang.sdk:jpush:4.7.2' // 此处以JPush 4.7.2 版本为例
  77. }