-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
40 lines (32 loc) · 992 Bytes
/
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
38
39
40
apply plugin: 'com.android.library'
// 分别上传到本地仓库和远程仓库 (gradlew uploadArchives)
// apply from : 'localRepositories.gradle'
// apply from : 'remoteRepositories.gradle'
android {
compileSdkVersion 26
defaultConfig {
minSdkVersion 10
targetSdkVersion 26
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
compileOnly 'com.android.support:appcompat-v7:26.1.0'
}
// 在终端执行 gradlew makeJar 生成jar包
//task makeJar(type: copy){
// delete 'build/libs/huyuLibrary.jar'
// from ('build/intermediates/bundles/release/')
// into ('build/libs/')
// include ('classes.jar')
// rename ('classes.jar', 'huyuLibrary.jar')
//}
//makeJar.dependsOn(build)