build.gradle 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. plugins {
  2. id 'com.android.library'
  3. id 'org.jetbrains.kotlin.android'
  4. }
  5. def version = '1.0.1'
  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. release {
  20. minifyEnabled false
  21. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  22. libraryVariants.all { variant->
  23. variant.outputs.all { output->
  24. if (outputFile != null && outputFileName.endsWith('.aar')) {
  25. outputFileName = "ad_app_lovin_max_${version}_${releaseTime()}_release.aar"
  26. }
  27. }
  28. }
  29. }
  30. }
  31. compileOptions {
  32. sourceCompatibility JavaVersion.VERSION_1_8
  33. targetCompatibility JavaVersion.VERSION_1_8
  34. }
  35. kotlinOptions {
  36. jvmTarget = '1.8'
  37. }
  38. }
  39. dependencies {
  40. implementation project(':lib_ad_core')
  41. api 'com.applovin:applovin-sdk:11.6.1'
  42. api "com.google.android.gms:play-services-ads-identifier:18.0.1"
  43. }