build.gradle
4.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
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
}
}