buildscript {
    ext.kotlin_version = '1.3.72'
    repositories {
        maven {
            url 'http://artifactory.intra.xiaojukeji.com/artifactory/public/'
        }
        maven {
            url 'http://maven.aliyun.com/nexus/content/groups/public/'
        }
        maven {
            url "https://storage.googleapis.com/download.flutter.io"
        }
        mavenCentral()
        mavenLocal()
//        maven {
//            // 引入rn本地aar
//            url '/Users/didi/AndroidStudioProjects/BeetlesSDK/lib/local'
//        }
//        maven {
//            url "$rootDir/component/local" // 引入rn本地aar
//        }
        maven { url "https://jitpack.io" }
        google()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:4.2.1'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}

allprojects {
    repositories {
        maven {
            url 'http://artifactory.intra.xiaojukeji.com/artifactory/public/'
        }
        maven {
            url 'http://maven.aliyun.com/nexus/content/groups/public/'
        }
        maven {
            url "https://storage.googleapis.com/download.flutter.io"
        }
        mavenCentral()
        mavenLocal()
//        maven {
//            // 引入rn本地aar
//            url '/Users/didi/AndroidStudioProjects/BeetlesSDK/lib/local'
//        }
//        maven {
//            url "$rootDir/component/local" // 引入rn本地aar
//        }
        maven { url "https://jitpack.io" }
        google()
    }
}

rootProject.buildDir = '../build'
subprojects {
    project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
    project.evaluationDependsOn(':app')
}

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