-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
72 lines (59 loc) · 2.34 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
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
apply plugin: 'com.android.library'
//apply plugin: 'com.android.application'
android {
compileSdkVersion conf.compileSdkVersion
defaultConfig {
minSdkVersion conf.minSdkVersion
targetSdkVersion conf.targetSdkVersion
versionCode 1
versionName "1.0"
}
lintOptions {
abortOnError false
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
debugImplementation "com.android.support:appcompat-v7:$support"
debugImplementation "com.android.support.constraint:constraint-layout:$constraint"
debugImplementation "com.yanzhenjie:permission:$andPermissions"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "org.jetbrains.anko:anko-common:$anko"
}
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
ext {
//Jcenter仓库名称
bintrayRepo = 'dsq'
//Jcenter中package库的名称
bintrayName = 'bankcard-ocr-lib'
publishedGroupId = 'com.stone.kuainiugroup'
//当前AS library module的name
libraryName = 'bankcard-ocr-lib'
//maven依赖路径的artifact,即中间字段
artifact = 'bankcard-ocr-lib'
/*注意:bintrayName,libraryName,artifact 以及AS 工程中的 library module name 最好保持一致。
*
* 可以肯定的是:依照此处的Bintray配置gradle脚本,后三者必须一致,否则会出现无法上传 或者 上传Jcenter后路径错误 或者 依赖路径下匹配不到响应的aar资源等问题
* */
//修改库的代码并发布新的版本时,请升级此处的版本
libraryVersion = '1.0.0'
//库功能的简述
libraryDescription = '银行卡OCR扫描,针对三方库的再封装打包'
siteUrl = 'https://github.com/xiaqu-stone/BankcardOCR'
gitUrl = 'https://github.com/xiaqu-stone/BankcardOCR.git'
developerId = 'stone'
developerName = 'xiaqu-stone'
developerEmail = '[email protected]'
licenseName = 'The Apache Software License, Version 2.0'
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
allLicenses = ["Apache-2.0"]
}
apply from: "../install.gradle"
apply from: "../bintray.gradle"