123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- // Top-level build file where you can add configuration options common to all sub-projects/modules.
- apply plugin: 'com.alibaba.arouter'
- buildscript {
- ext {
- kotlin_version = '1.4.10'
- compile_sdk_version = 30
- build_tools_version = '30.0.2'
- min_sdk_verion = 26
- target_sdk_version = 30
- lib_version_code = 1
- lib_version_name = "1.0.0"
- navigation_version = "2.3.0"//navigation 版本号,需要在dependencies和classpath保持一致
- koin_version = '2.2.2'//依赖注入框架
- }
- repositories {
- google()
- jcenter()
- maven { url 'https://jitpack.io' }
- // 1、filedownloader 下载框架
- maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
- maven { url 'https://dl.bintray.com/javakam/FileOperator' }
- // 极光推送 华为1、
- maven {url 'http://developer.huawei.com/repo/'}
- }
- dependencies {
- classpath 'com.android.tools.build:gradle:4.0.1'
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
- classpath("androidx.navigation:navigation-safe-args-gradle-plugin:$navigation_version")
- // 1、koin 注入框架
- classpath "org.koin:koin-gradle-plugin:$koin_version"
- //阿里 Arouter
- classpath "com.alibaba:arouter-register:1.0.2"
- //doraemonKit 调试辅助工具
- classpath 'com.didichuxing.doraemonkit:doraemonkit-plugin:3.2.0'
- // 极光推送 华为2、
- classpath 'com.huawei.agconnect:agcp:1.2.1.301'
- // NOTE: Do not place your application dependencies here; they belong
- // in the individual module build.gradle files
- }
- }
- // 2、koin 应用插件
- apply plugin: 'koin'
- apply plugin: 'com.didi.dokit'
- allprojects {
- repositories {
- google()
- jcenter()
- maven { url 'https://jitpack.io' }
- // 1、filedownloader 下载框架
- maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
- maven { url 'https://dl.bintray.com/javakam/FileOperator' }
- // 极光推送 华为1、
- maven {url 'http://developer.huawei.com/repo/'}
- }
- }
- task clean(type: Delete) {
- delete rootProject.buildDir
- }
|