// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    ext.kotlin_version = '1.6.21'
    ext.min_support_version = 14

    // sdk_version(31)需要java11编译
    ext.compile_sdk_version = 30
    ext.target_sdk_version = 30

    repositories {
        maven { url uri(rootProject.rootDir.path + '/.aar/maven/libs-release')}
        maven { url uri('https://s01.oss.sonatype.org/content/repositories/releases/')}

        mavenCentral()
        google()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:4.2.2'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

        // DRouter Plugin
        classpath 'io.github.didi:drouter-plugin:1.3.5'   // apg 1.x-7.x
//        classpath 'io.github.didi:drouter-plugin:1.4.0'   // agp 8.x
    }
}

allprojects {
    repositories {
        maven { url uri(rootProject.rootDir.path + '/.aar/maven')}
        maven { url uri('https://s01.oss.sonatype.org/content/repositories/releases/')}
        mavenCentral()
        google()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}
