56 lines
1.2 KiB
Groovy
56 lines
1.2 KiB
Groovy
apply plugin: 'com.android.library'
|
|
|
|
android {
|
|
compileSdkVersion 25
|
|
buildToolsVersion '25.0.2'
|
|
|
|
|
|
defaultConfig {
|
|
minSdkVersion 15
|
|
targetSdkVersion 25
|
|
versionCode 1
|
|
versionName "1.0"
|
|
}
|
|
|
|
buildTypes {
|
|
U807Debug {}
|
|
U807Release {}
|
|
iPlay50SEDebug {}
|
|
iPlay50SERelease {}
|
|
debug {}
|
|
release {}
|
|
}
|
|
|
|
|
|
lintOptions {
|
|
abortOnError false
|
|
}
|
|
|
|
}
|
|
|
|
|
|
dependencies {
|
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
|
implementation 'androidx.appcompat:appcompat:1.3.1'
|
|
}
|
|
|
|
//// 上传 jcenter 的配置
|
|
//apply plugin: 'com.novoda.bintray-release'//添加
|
|
//
|
|
////添加
|
|
//publish {
|
|
// userOrg = 'jacktuotuo'//用户名
|
|
// repoName = 'maven' //仓库的名字
|
|
// groupId = 'com.jacktuotuo.customview'//jcenter上的路径
|
|
// artifactId = 'verificationcodeview'//项目名称
|
|
// publishVersion = '1.0.5'//版本号
|
|
// desc = 'a custom View of the square verification code input box'//描述
|
|
// website = 'http://blog.csdn.net/qq_33553515'//个人网站
|
|
//}
|
|
|
|
|
|
// gradle clean build bintrayUpload -PbintrayUser=jacktuotuo -PbintrayKey=key -PdryRun=false
|
|
// 最终引用路径 compile 'com.jacktuotuo.customview:verificationcodeview:1.0.0
|
|
|
|
|