build.gradle 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. plugins {
  2. id 'com.android.library'
  3. id 'org.jetbrains.kotlin.android'
  4. }
  5. def version = '1.0.0'
  6. def releaseTime() {
  7. return new Date().format("yyyy-MM-dd", TimeZone.getTimeZone("UTC"))
  8. }
  9. android {
  10. compileSdk = rootProject.ext.compileSdkVersion
  11. buildToolsVersion rootProject.ext.buildToolsVersion
  12. defaultConfig {
  13. minSdkVersion rootProject.ext.minSdkVersion
  14. targetSdkVersion rootProject.ext.targetSdkVersion
  15. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  16. consumerProguardFiles "consumer-rules.pro"
  17. }
  18. buildTypes {
  19. debug {
  20. libraryVariants.all { variant->
  21. variant.outputs.all { output->
  22. if (outputFile != null && outputFileName.endsWith('.aar')) {
  23. outputFileName = "ad_gromore_${version}_${releaseTime()}_debug.aar"
  24. }
  25. }
  26. }
  27. }
  28. release {
  29. minifyEnabled false
  30. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  31. libraryVariants.all { variant->
  32. variant.outputs.all { output->
  33. if (outputFile != null && outputFileName.endsWith('.aar')) {
  34. outputFileName = "ad_gromore_${version}_${releaseTime()}_release.aar"
  35. }
  36. }
  37. }
  38. }
  39. }
  40. compileOptions {
  41. sourceCompatibility JavaVersion.VERSION_1_8
  42. targetCompatibility JavaVersion.VERSION_1_8
  43. }
  44. kotlinOptions {
  45. jvmTarget = '1.8'
  46. }
  47. }
  48. dependencies {
  49. implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs')
  50. compileOnly project(':lib_ad_core')
  51. api "com.gromore.cn:gromore-sdk:3.7.0.3"
  52. api "com.gromore.cn:pangle-adapter:4.8.0.8.2"
  53. api 'com.pangle.cn:ads-sdk-pro:4.8.0.8'
  54. implementation 'androidx.core:core-ktx:1.8.0'
  55. implementation 'androidx.appcompat:appcompat:1.5.1'
  56. implementation 'com.google.android.material:material:1.6.1'
  57. testImplementation 'junit:junit:4.13.2'
  58. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  59. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  60. //mintegral
  61. api("com.mbridge.msdk.support:videojs:16.2.27")
  62. api("com.mbridge.msdk.support:mbjscommon:16.2.27")
  63. api("com.mbridge.msdk.support:playercommon:16.2.27")
  64. api("com.mbridge.msdk.support:reward:16.2.27")
  65. api("com.mbridge.msdk.support:videocommon:16.2.27")
  66. api("com.mbridge.msdk.support:chinasame:16.2.27")
  67. api("com.mbridge.msdk.support:interstitialvideo:16.2.27")
  68. api("com.mbridge.msdk.support:mbnative:16.2.27")
  69. api("com.mbridge.msdk.support:nativeex:16.2.27")
  70. api("com.mbridge.msdk.support:mbnativeadvanced:16.2.27")
  71. api("com.mbridge.msdk.support:interstitial:16.2.27")
  72. api("com.mbridge.msdk.support:mbbanner:16.2.27")
  73. api("com.mbridge.msdk.support:mbsplash:16.2.27")
  74. api("com.mbridge.msdk.support:mbbid:16.2.27")
  75. api("com.mbridge.msdk.support:newinterstitial:16.2.27")
  76. }