12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- // Top-level build file where you can add configuration options common to all sub-projects/modules.
- buildscript {
- ext {
- compose_version = '1.4.2'
- kotlin_version = '1.8.10'
- }
- }
- plugins {
- id 'com.android.application' version '7.4.2' apply false
- id 'com.android.library' version '7.4.2' apply false
- id 'org.jetbrains.kotlin.android' version '1.8.10' apply false
- id 'org.jetbrains.kotlin.jvm' version '1.8.10' apply false
- }
- project.ext {
- // SDK and Tools
- compileSdkVersion = 33
- targetSdkVersion = 33
- buildToolsVersion = "30.0.3"
- minSdkVersion = 21
- versionCode = 1
- versionName = "1.0"
- setDefaultConfig = {
- extension ->
- extension.compileSdkVersion project.ext.compileSdkVersion
- extension.buildToolsVersion project.ext.buildToolsVersion
- extension.defaultConfig {
- // applicationId project.ext.applicationId
- // 使用project.ext.minSdkVersion 代替minsdkVersion,直接使用minsdkVersion 引不到
- minSdkVersion project.ext.minSdkVersion
- targetSdkVersion project.ext.targetSdkVersion
- versionCode project.ext.versionCode
- versionName project.ext.versionName
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- }
- }
- }
- task clean(type: Delete) {
- delete rootProject.buildDir
- }
- task assembleAllModules {
- doLast {
- // 在这里执行你希望的命令
- exec {
- commandLine './gradlew', 'lib_ad_core:assemble', 'lib_ad_admob:assemble','lib_ad_applovinmax:assemble','lib_ad_gromore:assemble', 'lib_ad_gromore_adn:assemble'
- }
- }
- }
|