build.gradle 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. plugins {
  2. id 'com.android.application'
  3. id 'org.jetbrains.kotlin.android'
  4. }
  5. android {
  6. compileSdk = rootProject.ext.compileSdkVersion
  7. buildToolsVersion rootProject.ext.buildToolsVersion
  8. signingConfigs {
  9. release {
  10. if (project.hasProperty("Keystore.properties")) {
  11. String filePath = project.property("Keystore.properties")
  12. File propsFile = new File(filePath)
  13. if (propsFile.exists()) {
  14. Properties props = new Properties()
  15. props.load(propsFile.newDataInputStream())
  16. storeFile file(props['keystore'])
  17. storePassword props['keystore.password']
  18. keyAlias props['keyAlias']
  19. keyPassword props['keyAlias.password']
  20. }
  21. }
  22. }
  23. }
  24. defaultConfig {
  25. applicationId "com.kdanmobile.android.pdfreader.google.pad"
  26. minSdkVersion rootProject.ext.minSdkVersion
  27. targetSdkVersion rootProject.ext.targetSdkVersion
  28. versionCode rootProject.ext.versionCode
  29. versionName rootProject.ext.versionName
  30. // flavorDimensions "lib"
  31. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  32. ndk {
  33. abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
  34. }
  35. }
  36. buildTypes {
  37. release {
  38. signingConfig signingConfigs.release
  39. minifyEnabled false
  40. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  41. }
  42. debug {
  43. // debuggable true
  44. // //混淆
  45. // minifyEnabled true
  46. // //Zipalign优化
  47. // zipAlignEnabled true
  48. signingConfig signingConfigs.release
  49. // proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  50. }
  51. }
  52. compileOptions {
  53. sourceCompatibility JavaVersion.VERSION_1_8
  54. targetCompatibility JavaVersion.VERSION_1_8
  55. }
  56. kotlinOptions {
  57. jvmTarget = '1.8'
  58. }
  59. buildFeatures {
  60. viewBinding = true
  61. dataBinding = true
  62. }
  63. buildFeatures {
  64. compose true
  65. }
  66. composeOptions {
  67. kotlinCompilerExtensionVersion compose_version
  68. }
  69. }
  70. dependencies {
  71. implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs')
  72. api fileTree(dir: "libs", include: ["*.jar", "*.aar"])
  73. implementation project(':lib_common')
  74. //compose依赖
  75. implementation "androidx.compose.ui:ui:$compose_version"
  76. implementation 'androidx.compose.material3:material3:1.1.0-rc01'
  77. implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
  78. implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.6.1'
  79. implementation 'androidx.activity:activity-compose:1.7.1'
  80. implementation "androidx.constraintlayout:constraintlayout-compose:1.0.1"
  81. // compose 图片加载
  82. implementation("io.coil-kt:coil-compose:2.1.0")
  83. implementation "com.google.accompanist:accompanist-systemuicontroller:0.23.1"
  84. implementation "com.google.accompanist:accompanist-insets:0.23.1"
  85. implementation "com.google.accompanist:accompanist-insets-ui:0.23.1"
  86. implementation "com.google.accompanist:accompanist-systemuicontroller:0.23.1"
  87. implementation "androidx.navigation:navigation-compose:2.5.3"
  88. implementation "androidx.compose.runtime:runtime-livedata:1.4.2"
  89. implementation "androidx.lifecycle:lifecycle-viewmodel-compose:2.6.1"
  90. implementation 'androidx.appcompat:appcompat:1.6.1'
  91. implementation 'com.google.android.material:material:1.8.0'
  92. testImplementation 'junit:junit:4.13.2'
  93. androidTestImplementation 'androidx.test.ext:junit:1.1.5'
  94. androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
  95. androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version"
  96. debugImplementation "androidx.compose.ui:ui-tooling:$compose_version"
  97. debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_version"
  98. //广告
  99. implementation project(':lib_ad_core')
  100. implementation project(':lib_ad_admob')
  101. // implementation project(':lib_ad_csj')
  102. implementation project(':lib_ad_applovinmax')
  103. implementation project(':lib_ad_gromore')
  104. implementation project(':lib_ad_gromore_adn')
  105. implementation "com.pangle.cn:mediation-sdk:5.8.1.8"
  106. implementation "com.pangle.cn:mediation-gdt-adapter:4.550.1420.2"
  107. implementation "com.pangle.cn:mediation-baidu-adapter:9.324.0"
  108. implementation "com.pangle.cn:mediation-klevin-adapter:2.11.0.3.14"//游可赢 adapter
  109. implementation "com.pangle.cn:mediation-mintegral-adapter:16.5.47.0"//mintegral adapter
  110. implementation "com.pangle.cn:mediation-sigmob-adapter:4.12.9.0"
  111. //mintegral
  112. api("com.mbridge.msdk.support:videojs:16.5.47")
  113. api("com.mbridge.msdk.support:mbjscommon:16.5.47")
  114. api("com.mbridge.msdk.support:playercommon:16.5.47")
  115. api("com.mbridge.msdk.support:reward:16.5.47")
  116. api("com.mbridge.msdk.support:videocommon:16.5.47")
  117. api("com.mbridge.msdk.support:chinasame:16.5.47")
  118. api("com.mbridge.msdk.support:interstitialvideo:16.5.47")
  119. api("com.mbridge.msdk.support:mbnative:16.5.47")
  120. api("com.mbridge.msdk.support:nativeex:16.5.47")
  121. api("com.mbridge.msdk.support:mbnativeadvanced:16.5.47")
  122. api("com.mbridge.msdk.support:interstitial:16.5.47")
  123. api("com.mbridge.msdk.support:mbbanner:16.5.47")
  124. api("com.mbridge.msdk.support:mbsplash:16.5.47")
  125. api("com.mbridge.msdk.support:mbbid:16.5.47")
  126. api("com.mbridge.msdk.support:newinterstitial:16.5.47")
  127. }