-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
74 lines (65 loc) · 2.44 KB
/
build.gradle
File metadata and controls
74 lines (65 loc) · 2.44 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply from: "versions.gradle"
/**
* This block encapsulates custom properties and makes them available to all modules in the project.
*/
ext {
customValue = 30
customValue2 = "value2"
}
/**
* The buildScript block is where you configure the repositories and
* dependencies for Gradle itself—meaning, you should not include dependencies
* for your modules here
*
* For example, this block includes the Android plugin for Gradle as a dependency
* because it provides the additional instructions Gradle needs to build Android app modules.
*/
buildscript {
ext.kotlin_version = "1.4.10"
ext.greendao = "3.3.0"
repositories {
maven { url "https://maven.aliyun.com/nexus/content/groups/public" }
maven { url "https://maven.aliyun.com/nexus/content/groups/google" }
google()
mavenCentral()
maven { url "https://jitpack.io" }
maven {
url "$rootDir/node_modules/react-native/android"
}
// Paho Android Service MQTT使用
maven {
url "https://repo.eclipse.org/content/repositories/paho-snapshots/"
}
}
dependencies {
classpath "com.android.tools.build:gradle:7.0.3"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.greenrobot:greendao-gradle-plugin:$greendao"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
/**
* The allprojects block is where you configure the repositories and
* dependencies used by all modules in your project, such as third-party plugins
* or libraries. However, you should configure module-specific dependencies in
* each module-level build.gradle file. For new projects, Android Studio
* includes JCenter and Google's Maven repository by default, but it does not
* configure any dependencies (unless you select a template that requires some).
*/
allprojects {
repositories {
maven { url "https://maven.aliyun.com/nexus/content/groups/public" }
maven { url "https://maven.aliyun.com/nexus/content/groups/google" }
google()
mavenCentral()
maven { url "https://jitpack.io" }
maven {
url "$rootDir/node_modules/react-native/android"
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}