build.gradle 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 33
  11. defaultConfig {
  12. minSdk 21
  13. targetSdk 33
  14. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  15. consumerProguardFiles "consumer-rules.pro"
  16. }
  17. buildTypes {
  18. release {
  19. minifyEnabled false
  20. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  21. libraryVariants.all { variant->
  22. variant.outputs.all { output->
  23. if (outputFile != null && outputFileName.endsWith('.aar')) {
  24. outputFileName = "ad_app_lovin_max_${version}_${releaseTime()}_release.aar"
  25. }
  26. }
  27. }
  28. }
  29. }
  30. compileOptions {
  31. sourceCompatibility JavaVersion.VERSION_1_8
  32. targetCompatibility JavaVersion.VERSION_1_8
  33. }
  34. kotlinOptions {
  35. jvmTarget = '1.8'
  36. }
  37. }
  38. dependencies {
  39. implementation project(':lib_ad_core')
  40. implementation 'androidx.core:core-ktx:1.7.0'
  41. implementation 'androidx.appcompat:appcompat:1.5.1'
  42. implementation 'com.google.android.material:material:1.6.1'
  43. testImplementation 'junit:junit:4.13.2'
  44. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  45. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  46. api 'com.applovin:applovin-sdk:11.6.1'
  47. api "com.google.android.gms:play-services-ads-identifier:18.0.1"
  48. }