build.gradle 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. plugins {
  2. id 'com.android.library'
  3. id 'org.jetbrains.kotlin.android'
  4. }
  5. def version = '1.0.4'
  6. def releaseTime() {
  7. return new Date().format("yyyy-MM-dd", TimeZone.getTimeZone("UTC"))
  8. }
  9. android {
  10. namespace 'com.composition.android.ad.gromore.beizis'
  11. compileSdk = rootProject.ext.compileSdkVersion
  12. buildToolsVersion rootProject.ext.buildToolsVersion
  13. defaultConfig {
  14. minSdkVersion rootProject.ext.minSdkVersion
  15. targetSdkVersion rootProject.ext.targetSdkVersion
  16. setProperty("archivesBaseName", "ad_gromore_adn_${version}_${releaseTime()}")
  17. }
  18. buildTypes {
  19. debug {
  20. }
  21. release {
  22. minifyEnabled false
  23. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  24. }
  25. }
  26. compileOptions {
  27. sourceCompatibility JavaVersion.VERSION_1_8
  28. targetCompatibility JavaVersion.VERSION_1_8
  29. }
  30. kotlinOptions {
  31. jvmTarget = '1.8'
  32. }
  33. }
  34. dependencies {
  35. compileOnly fileTree(include: ['*.jar', '*.aar'], dir: 'libs')
  36. api project(':lib_ad_gromore')
  37. // https://developers.adnet.qq.com/doc/android/union/union_version
  38. compileOnly 'com.qq.e.union:union:4.551.1421'
  39. }