build.gradle 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  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. //
  53. // productFlavors {
  54. //
  55. // defaultTest {
  56. // applicationId "com.kdanmobile.android.pdfreader.google.pad"
  57. //
  58. // signingConfig signingConfigs.release
  59. //
  60. // }
  61. //
  62. // appLovinMaxTest {
  63. // applicationId "com.pdftechnologies.pdfreaderpro"
  64. // signingConfig signingConfigs.release
  65. //
  66. // }
  67. //
  68. // }
  69. compileOptions {
  70. sourceCompatibility JavaVersion.VERSION_1_8
  71. targetCompatibility JavaVersion.VERSION_1_8
  72. }
  73. kotlinOptions {
  74. jvmTarget = '1.8'
  75. }
  76. buildFeatures {
  77. viewBinding = true
  78. dataBinding = true
  79. }
  80. buildFeatures {
  81. compose true
  82. }
  83. composeOptions {
  84. kotlinCompilerExtensionVersion compose_version
  85. }
  86. }
  87. dependencies {
  88. implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs')
  89. //mintegral
  90. api("com.mbridge.msdk.support:videojs:16.3.27")
  91. api("com.mbridge.msdk.support:mbjscommon:16.3.27")
  92. api("com.mbridge.msdk.support:playercommon:16.3.27")
  93. api("com.mbridge.msdk.support:reward:16.3.27")
  94. api("com.mbridge.msdk.support:videocommon:16.3.27")
  95. api("com.mbridge.msdk.support:chinasame:16.3.27")
  96. api("com.mbridge.msdk.support:interstitialvideo:16.3.27")
  97. api("com.mbridge.msdk.support:mbnative:16.3.27")
  98. api("com.mbridge.msdk.support:nativeex:16.3.27")
  99. api("com.mbridge.msdk.support:mbnativeadvanced:16.3.27")
  100. api("com.mbridge.msdk.support:interstitial:16.3.27")
  101. api("com.mbridge.msdk.support:mbbanner:16.3.27")
  102. api("com.mbridge.msdk.support:mbsplash:16.3.27")
  103. api("com.mbridge.msdk.support:mbbid:16.3.27")
  104. api("com.mbridge.msdk.support:newinterstitial:16.3.27")
  105. api fileTree(dir: "libs", include: ["*.jar", "*.aar"])
  106. implementation project(':lib_common')
  107. //compose依赖
  108. implementation "androidx.compose.ui:ui:$compose_version"
  109. implementation 'androidx.compose.material3:material3:1.1.0-rc01'
  110. implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
  111. implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.6.1'
  112. implementation 'androidx.activity:activity-compose:1.7.1'
  113. implementation "androidx.constraintlayout:constraintlayout-compose:1.0.1"
  114. // compose 图片加载
  115. implementation("io.coil-kt:coil-compose:2.1.0")
  116. implementation "com.google.accompanist:accompanist-systemuicontroller:0.23.1"
  117. implementation "com.google.accompanist:accompanist-insets:0.23.1"
  118. implementation "com.google.accompanist:accompanist-insets-ui:0.23.1"
  119. implementation "com.google.accompanist:accompanist-systemuicontroller:0.23.1"
  120. implementation "androidx.navigation:navigation-compose:2.5.3"
  121. implementation "androidx.compose.runtime:runtime-livedata:1.4.2"
  122. implementation "androidx.lifecycle:lifecycle-viewmodel-compose:2.6.1"
  123. implementation 'androidx.appcompat:appcompat:1.6.1'
  124. implementation 'com.google.android.material:material:1.8.0'
  125. testImplementation 'junit:junit:4.13.2'
  126. androidTestImplementation 'androidx.test.ext:junit:1.1.5'
  127. androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
  128. androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version"
  129. debugImplementation "androidx.compose.ui:ui-tooling:$compose_version"
  130. debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_version"
  131. //广告
  132. implementation project(':lib_ad_core')
  133. implementation project(':lib_ad_admob')
  134. implementation project(':lib_ad_csj')
  135. implementation project(':lib_ad_applovinmax')
  136. implementation project(':lib_ad_gromore')
  137. implementation project(':lib_ad_gromore_beizis')
  138. implementation project(':lib_pdf_base')
  139. implementation 'com.pangle.cn:mediation-sdk:5.1.7.3'
  140. implementation 'com.pangle.cn:mediation-test-tools:5.1.7.3'//测试工具
  141. implementation "com.pangle.cn:mediation-gdt-adapter:4.520.1390.1"
  142. implementation "com.pangle.cn:mediation-baidu-adapter:9.271.1"
  143. implementation "com.pangle.cn:mediation-klevin-adapter:2.11.0.3.5"//游可赢 adapter
  144. implementation "com.pangle.cn:mediation-mintegral-adapter:16.4.17.2"//mintegral adapter
  145. implementation "com.pangle.cn:mediation-sigmob-adapter:4.10.1.0"
  146. }