build.gradle 5.9 KB

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