-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy pathbuild.gradle
37 lines (34 loc) · 1.08 KB
/
build.gradle
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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
kotlin_version = '2.0.21'
}
repositories {
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'https://maven.aliyun.com/repository/google' }
maven {
url 'http://maven.aliyun.com/nexus/content/groups/public/'
allowInsecureProtocol = true // Allow HTTP
}
maven { url 'https://jitpack.io' }
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.7.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
//Realm:数据库,取代SQLite和ORMs
classpath "io.realm:realm-gradle-plugin:10.19.0"
}
}
allprojects {
repositories {
mavenCentral()
google()
maven { url 'https://jitpack.io' }
maven {
url 'http://maven.aliyun.com/nexus/content/groups/public/'
allowInsecureProtocol = true // Allow HTTP
}
}
}