123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- buildscript {
- def miniAppConfigFilePath = "$rootDir/miniapp.json"
- def jsonFile = new File(miniAppConfigFilePath)
- def miniAppConfig = new groovy.json.JsonSlurper().parseText(jsonFile.text)
- ext.miniAppConfig = miniAppConfig
- def miniAppPluginConfigFilePath = "$rootDir/miniapp.plugin.json"
- def pluginJsonFile = new File(miniAppPluginConfigFilePath)
- def miniAppPluginConfig = new groovy.json.JsonSlurper().parseText(pluginJsonFile.text)
- ext.miniAppPluginConfig = miniAppPluginConfig
- ext.saaaSDKVersionDepend = miniAppPluginConfig.debugSaaAVersion // 依赖的主模块版本
- ext.versionName = miniAppPluginConfig.pluginVersion // 构建的插件版本
- ext {
- buildToolsVersion = "29.0.2"
- minSdkVersion = 21
- compileSdkVersion = 29
- targetSdkVersion = miniAppConfig.targetSdkVersion
- javaVersion = JavaVersion.VERSION_1_7
- kotlin_version = '1.6.21'
- }
- repositories {
- mavenLocal()
- maven {
- url "http://mirrors.tencent.com/nexus/repository/maven-public/"
- }
- maven { url 'https://repo1.maven.org/maven2/' }
- mavenCentral()
- google()
- }
- dependencies {
- classpath "com.android.tools.build:gradle:4.1.3"
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
- classpath 'de.undercouch:gradle-download-task:5.3.0'
- // classpath "com.tencent.android.tpns:tpnsplugin:1.8.0"
- }
- }
- subprojects {
- repositories {
- mavenLocal()
- maven {
- url "file://${rootProject.file("app/libs")}"
- }
- maven {
- url "http://mirrors.tencent.com/nexus/repository/maven-public/"
- }
- maven { url 'https://repo1.maven.org/maven2/' }
- mavenCentral()
- google()
- if (rootProject.file('localAar').exists()) {
- maven {
- url "file://${rootProject.file('localAar')}"
- }
- }
- }
- }
|