build.gradle 5.2 KB

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