build.gradle 5.6 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 fileTree(dir: 'libs', include: ['*.jar','*.aar'])
  82. // implementation 'com.google.android.gms:play-services-ads:21.3.0'
  83. // implementation 'com.pangle.cn:ads-sdk-pro:4.8.0.8'
  84. // implementation "com.gromore.cn:gromore-sdk:3.7.0.3"
  85. // implementation "com.gromore.cn:pangle-adapter:4.8.0.8.2"
  86. //mintegral
  87. // api("com.mbridge.msdk.support:videojs:16.2.27")
  88. // api("com.mbridge.msdk.support:mbjscommon:16.2.27")
  89. // api("com.mbridge.msdk.support:playercommon:16.2.27")
  90. // api("com.mbridge.msdk.support:reward:16.2.27")
  91. // api("com.mbridge.msdk.support:videocommon:16.2.27")
  92. // api("com.mbridge.msdk.support:chinasame:16.2.27")
  93. // api("com.mbridge.msdk.support:interstitialvideo:16.2.27")
  94. // api("com.mbridge.msdk.support:mbnative:16.2.27")
  95. // api("com.mbridge.msdk.support:nativeex:16.2.27")
  96. // api("com.mbridge.msdk.support:mbnativeadvanced:16.2.27")
  97. // api("com.mbridge.msdk.support:interstitial:16.2.27")
  98. // api("com.mbridge.msdk.support:mbbanner:16.2.27")
  99. // api("com.mbridge.msdk.support:mbsplash:16.2.27")
  100. // api("com.mbridge.msdk.support:mbbid:16.2.27")
  101. // api("com.mbridge.msdk.support:newinterstitial:16.2.27")
  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. /*GroMore 百度*/
  111. implementation "by.gm_mediation.com:baidu-adapter:9.26.0"
  112. /*GroMore 优量汇*/
  113. implementation "by.gm_mediation.com:gdt-adapter:4.510.1380.0"
  114. //compose依赖
  115. implementation "androidx.compose.ui:ui:$compose_version"
  116. implementation 'androidx.compose.material3:material3:1.1.0-rc01'
  117. implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
  118. implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.6.1'
  119. implementation 'androidx.activity:activity-compose:1.7.1'
  120. implementation "androidx.constraintlayout:constraintlayout-compose:1.0.1"
  121. // compose 图片加载
  122. implementation("io.coil-kt:coil-compose:2.1.0")
  123. implementation "com.google.accompanist:accompanist-systemuicontroller:0.23.1"
  124. implementation "com.google.accompanist:accompanist-insets:0.23.1"
  125. implementation "com.google.accompanist:accompanist-insets-ui:0.23.1"
  126. implementation "com.google.accompanist:accompanist-systemuicontroller:0.23.1"
  127. implementation "androidx.navigation:navigation-compose:2.5.3"
  128. implementation "androidx.compose.runtime:runtime-livedata:1.4.2"
  129. implementation "androidx.lifecycle:lifecycle-viewmodel-compose:2.6.1"
  130. implementation 'androidx.appcompat:appcompat:1.6.1'
  131. implementation 'com.google.android.material:material:1.8.0'
  132. testImplementation 'junit:junit:4.13.2'
  133. androidTestImplementation 'androidx.test.ext:junit:1.1.5'
  134. androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
  135. androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version"
  136. debugImplementation "androidx.compose.ui:ui-tooling:$compose_version"
  137. debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_version"
  138. }