build.gradle 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. plugins {
  2. id 'com.android.library'
  3. id 'org.jetbrains.kotlin.android'
  4. }
  5. def version = '1.0.2'
  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. implementation project(':lib_ad_core')
  51. /*GroMore*/
  52. // api "com.pangle.cn:mediation-sdk:5.1.6.1"
  53. //融合SDK
  54. // implementation "com.pangle.cn:mediation-ks-adapter:3.3.40.3"//ks adapter
  55. //
  56. // implementation "com.pangle.cn:mediation-gdt-adapter:4.514.1384.2" //gdt adapter
  57. //
  58. // implementation "com.pangle.cn:mediation-admob-adapter:17.2.0.42"//admob adapter
  59. //
  60. // implementation "com.pangle.cn:mediation-baidu-adapter:9.271.1"//baidu adapter
  61. //
  62. // implementation "com.pangle.cn:mediation-klevin-adapter:2.11.0.3.4"//游可赢 adapter
  63. //
  64. // implementation "com.pangle.cn:mediation-mintegral-adapter:16.4.17.1"//mintegral adapter
  65. //
  66. // api "com.pangle.cn:mediation-sigmob-adapter:4.9.0.4"//sigmob adapter
  67. //
  68. // implementation "com.pangle.cn:mediation-unity-adapter:4.3.0.10"//unity adapter
  69. }