-
Notifications
You must be signed in to change notification settings - Fork 179
/
Copy pathbuild.gradle
34 lines (28 loc) · 1.19 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
//设置为2.0以上可能会打开instant run,那么补丁要想调试需要进行代码上的更改,具体请看PluginManager.java中的loadHotfixPluginClassLoader()
classpath 'com.android.tools.build:gradle:1.5.0'
//start-----补丁插件--------
//这里是使用远程依赖的gradle插件来执行插庄过程,源码在https://github.com/iReaderAndroid/PatchPluginForZeus
classpath 'zeusplugin:patch-gradle-plugin:1.0.0'
// end------补丁插件---------
//start----------插件相关的,用来生成sdk-jar的------------------
//这是使用buildJar任务的远程依赖,用来打sdk的jar用的,源码在https://github.com/iReaderAndroid/buildJar
classpath 'com.adison.gradleplugin:jar:1.0.1'
// end----------插件相关的,用来生成sdk-jar的------------------
}
}
allprojects {
repositories {
jcenter()
mavenCentral()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}