build.gradle 4.52 KB
apply plugin: 'com.alipay.apollo.optimize'// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    ext.mpaas_artifact = "mpaas-baseline"
    ext.mpaas_baseline = "10.1.68-49"
//    ext.kotlin_version = "1.3.72"
     ext.kotlin_version = '1.5.30'


    repositories {

        maven {url "https://mvn.mob.com/android"}
        //友盟
//        maven { url 'https://dl.bintray.com/umsdk/release' }
        maven { url 'https://repo1.maven.org/maven2/' }
        //华为厂商离线推送通道相关
        maven { url 'https://developer.huawei.com/repo/' }
        maven {
            url 'https://mvn.cloud.alipay.com/nexus/content/repositories/releases/'
            name 'alipay'
            credentials {
                username 'glemas@1312972928453148.onaliyun.com'
                password 'jm4IVOXxjAuM'
            }
        }

        mavenLocal()


        maven {url 'https://maven.aliyun.com/nexus/content/groups/public/'}


        maven {url 'https://maven.aliyun.com/repository/central'}
        maven {url 'https://maven.aliyun.com/repository/gradle-plugin'}
        maven {url 'https://maven.aliyun.com/repository/apache-snapshots'}

        maven { url 'https://jitpack.io' }
//        maven { url "https://jcenter.bintray.com"}

        maven {url 'https://maven.aliyun.com/repository/google'}
        maven {url 'https://maven.aliyun.com/repository/jcenter'}
        maven {url 'https://maven.aliyun.com/repository/public'}

        maven { url 'https://mvn.tencent.com/repository/maven-public/' } // 腾讯 Maven 仓库
        maven { url 'https://sdkrepo.amap.com/repository/maven/' } // 高德 SDK 仓库
//        google()
//        mavenCentral()
//        jcenter()
//        maven {url 'https://maven.google.com'}

//        maven {url 'http://mvn.mob.com/android'}
        maven { url 'https://repo1.maven.org/maven2/' }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.5.4'
//          classpath 'com.android.tools.build:gradle:4.1.2'
        classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'

        classpath 'org.greenrobot:greendao-gradle-plugin:3.3.0'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
        // 注册MobSDK
//        classpath "com.mob.sdk:MobSDK2:+"
        classpath "com.mob.sdk:MobSDK:2018.0319.1724"
//        classpath "com.mob.sdk:MobSDK2022:2024.1230.1553"
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        classpath 'com.android.boost.easyconfig:easyconfig:2.4.5'
        
        classpath 'com.alipay.android:android-gradle-plugin:3.5.14'

        //华为厂商通道相关
        classpath 'com.huawei.agconnect:agcp:1.4.2.300'
        /*

        * */
    }
}

allprojects {
    repositories {
        maven {url 'https://mvn.mob.com/android'}
//        maven { url 'https://mvn.mob.com/repository/mob_sdk/' }
        maven {url 'https://maven.aliyun.com/nexus/content/groups/public/'}


        maven { url 'https://developer.huawei.com/repo/' }
        maven {
            url 'https://mvn.cloud.alipay.com/nexus/content/repositories/releases/'
            name 'alipay'
            credentials {
                username 'glemas@1312972928453148.onaliyun.com'
                password 'jm4IVOXxjAuM'
            }
        }
        mavenLocal()

        maven {url 'https://maven.aliyun.com/repository/central'}
        maven {url 'https://maven.aliyun.com/repository/gradle-plugin'}
        maven {url 'https://maven.aliyun.com/repository/apache-snapshots'}

        maven { url 'https://jitpack.io' }
//        maven { url "https://jcenter.bintray.com"}

        maven {url 'https://maven.aliyun.com/repository/google'}
        maven {url 'https://maven.aliyun.com/repository/jcenter'}
        maven {url 'https://maven.aliyun.com/repository/public'}

        maven { url 'https://mvn.tencent.com/repository/maven-public/' } // 腾讯 Maven 仓库
        maven { url 'https://sdkrepo.amap.com/repository/maven/' } // 高德 SDK 仓库
//        google()
//        mavenCentral()
//        jcenter()
//        maven {url 'https://maven.google.com'}

//        maven {url 'http://mvn.mob.com/android'}
        maven { url 'https://repo1.maven.org/maven2/' }

    }

    gradle.projectsEvaluated {
        tasks.withType(JavaCompile) {
            options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
        }
    }
    
    ext {
        // 初始化VersionCode为1
        currentVersionCode = 5
    }

}