12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- plugins {
- id 'com.android.library'
- id 'org.jetbrains.kotlin.android'
- }
- def version = '1.0.4'
- def releaseTime() {
- return new Date().format("yyyy-MM-dd", TimeZone.getTimeZone("UTC"))
- }
- android {
- compileSdk = rootProject.ext.compileSdkVersion
- buildToolsVersion rootProject.ext.buildToolsVersion
- defaultConfig {
- minSdkVersion rootProject.ext.minSdkVersion
- targetSdkVersion rootProject.ext.targetSdkVersion
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- consumerProguardFiles "consumer-rules.pro"
- setProperty("archivesBaseName", "ad_gromore_${version}_${releaseTime()}")
- }
- buildTypes {
- debug {
- libraryVariants.all { variant ->
- variant.outputs.all { output ->
- if (outputFile != null && outputFileName.endsWith('.aar')) {
- outputFileName = "ad_gromore_${version}_${releaseTime()}_debug.aar"
- }
- }
- }
- }
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- libraryVariants.all { variant ->
- variant.outputs.all { output ->
- if (outputFile != null && outputFileName.endsWith('.aar')) {
- outputFileName = "ad_gromore_${version}_${releaseTime()}_release.aar"
- }
- }
- }
- }
- }
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- kotlinOptions {
- jvmTarget = '1.8'
- }
- }
- dependencies {
- compileOnly fileTree(include: ['*.jar', '*.aar'], dir: 'libs')
- api project(':lib_ad_core')
- /*GroMore*/
- api 'com.pangle.cn:mediation-sdk:5.8.1.8'
- }
|