当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 0 Fork 194

fadxing/AndroidPicker
暂停

forked from 山野羡民/AndroidPicker 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build.gradle 3.37 KB
一键复制 编辑 原始数据 按行查看 历史
山野羡民 提交于 2019-08-07 11:21 . recover
//参考:https://raw.github.com/dm77/barcodescanner/master/build.gradle
buildscript {
repositories {
jcenter()
maven {
url 'https://dl.google.com/dl/android/maven2/'
name 'Google'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
}
}
allprojects {
group = GROUP
version = VERSION_NAME
repositories {
jcenter() //bintray的maven库
mavenCentral() //sonatype的maven库
mavenLocal() //本地的maven库
maven {
url 'https://dl.google.com/dl/android/maven2/' //谷歌的maven库
name 'Google'
}
maven {
url "https://www.jitpack.io" //jitpack的maven库
}
flatDir {
dirs 'libs' //本地aar文件
}
}
ext {
isLibrary = false
pomArtifactId = project.name
pomVersion = VERSION_NAME
pomDescription = 'This is library description'
}
}
subprojects {
afterEvaluate { Project project ->
ext.pluginContainer = project.getPlugins()
def hasAppPlugin = ext.pluginContainer.hasPlugin("com.android.application")
def hasLibPlugin = ext.pluginContainer.hasPlugin("com.android.library")
if (hasAppPlugin || hasLibPlugin) {
android {
compileSdkVersion COMPILE_SDK_VERSION as int
buildToolsVersion BUILD_TOOL_VERSION
defaultConfig {
minSdkVersion MIN_SDK_VERSION as int
targetSdkVersion TARGET_SDK_VERSION as int
versionCode VERSION_CODE as int
versionName VERSION_NAME
}
buildTypes {
release {
debuggable false
minifyEnabled false //实时构建库项目时若启用混淆,APP模块引用会造成部分方法找不到
}
debug {
debuggable true
minifyEnabled false
}
}
lintOptions {
checkReleaseBuilds false
abortOnError false
}
packagingOptions {
doNotStrip '*/mips/*.so'
doNotStrip '*/mips64/*.so'
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/notice.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/dependencies.txt'
exclude 'META-INF/LGPL2.1'
exclude 'META-INF/ASL2.0'
}
}
dependencies {
compile "com.android.support:support-v4:${ANDROID_SUPPORT_VERSION}"
compile "com.android.support:support-annotations:${ANDROID_SUPPORT_VERSION}"
}
}
if (project.isLibrary) {
configure(project) {
apply from: "${rootDir}/publish.gradle" //调用发布脚本
}
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Android
1
https://gitee.com/yxljl1314/AndroidPicker.git
git@gitee.com:yxljl1314/AndroidPicker.git
yxljl1314
AndroidPicker
AndroidPicker
master

搜索帮助

A270a887 8829481 3d7a4017 8829481