85 lines
3.8 KiB
Groovy
85 lines
3.8 KiB
Groovy
/**
|
|
* ext自定义[App全局环境变量配置]属性
|
|
*
|
|
* @author 曾繁添
|
|
* @version 1.0
|
|
*
|
|
*/
|
|
|
|
|
|
def jdjr_repo_snapshots = '';
|
|
def jdjr_repo_release = '';
|
|
|
|
|
|
ext {
|
|
//app配置
|
|
app = [
|
|
applicationId : "com.zftlive.android",
|
|
versionCode : 3,
|
|
versionName : "1.2",
|
|
releaseVersion: "0"
|
|
]
|
|
|
|
//编译环境配置
|
|
android = [
|
|
compileSdkVersion: 28,
|
|
buildToolsVersion: "28.0.3",
|
|
minSdkVersion : 16,
|
|
targetSdkVersion : 28
|
|
]
|
|
|
|
//maven发布相关配置
|
|
maven = [
|
|
repo_snapshots : jdjr_repo_snapshots,
|
|
repo_release : jdjr_repo_release,
|
|
|
|
bintrayRepo : 'android',
|
|
publishedGroupIdForBm : "com.zftlive.android.bm",
|
|
publishedGroupIdForBmc: "com.zftlive.android.bm.common",
|
|
publishedGroupIdForLib: "com.zftlive.android.library",
|
|
publishedGroupIdForSDK: "com.zftlive.android.sdk",
|
|
|
|
developerId : 'zengfantian',
|
|
developerName : '曾繁添',
|
|
developerEmail : 'zftlive@163.com',
|
|
|
|
allLicenses : '["Apache-2.0"]',
|
|
licenseName : 'The Apache Software License, Version 2.0',
|
|
licenseUrl : 'http://www.apache.com/'
|
|
]
|
|
|
|
//谷歌官方基础配置
|
|
basicDependencies = [
|
|
support_v4 : 'com.android.support:support-v4:28.0.0',
|
|
support_v7 : 'com.android.support:appcompat-v7:28.0.0',
|
|
support_annotations : 'com.android.support:support-annotations:28.0.0',
|
|
support_exif : 'com.android.support:exifinterface:28.0.0',
|
|
recyclerview : 'com.android.support:recyclerview-v7:28.0.0',
|
|
cardview_v7 : 'com.android.support:cardview-v7:28.0.0',
|
|
spring_animation : 'com.android.support:support-dynamic-animation:28.0.0',
|
|
constraint : 'com.android.support.constraint:constraint-layout:1.1.0',
|
|
percent : 'com.android.support:percent:28.0.0',
|
|
design : 'com.android.support:design:28.0.0',
|
|
multidex : 'com.android.support:multidex:1.0.3',
|
|
multidex_instrumentation: 'com.android.support:multidex-instrumentation:1.0.3',
|
|
junit : 'junit:junit:4.12',
|
|
gson : 'com.google.code.gson:gson:2.8.5',
|
|
fastjson : 'com.alibaba:fastjson:1.2.7',
|
|
nineoldandroids : 'com.nineoldandroids:library:2.4.0',
|
|
wheelpicker : 'cn.aigestudio.wheelpicker:WheelPicker:1.1.2',
|
|
greendao : 'org.greenrobot:greendao:3.2.2',
|
|
flexbox : 'com.google.android:flexbox:1.0.0',
|
|
countdownview : 'com.github.iwgang:countdownview:2.1.6',
|
|
eventbus : 'org.greenrobot:eventbus:3.0.0',
|
|
okhttp3 : 'com.squareup.okhttp3:okhttp:3.6.0',
|
|
lifecycle_runtime : 'android.arch.lifecycle:runtime:1.0.3',
|
|
wechatopen : 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:5.1.4',
|
|
flexbox : 'com.google.android:flexbox:1.0.0',
|
|
countdownview : 'com.github.iwgang:countdownview:2.1.6',
|
|
okio : 'com.squareup.okio:okio:1.13.0',
|
|
retrofit : 'com.squareup.retrofit2:retrofit:2.2.0',
|
|
eventbus : 'org.greenrobot:eventbus:3.0.0',
|
|
lottie : 'com.airbnb.android:lottie:2.3.1',
|
|
walle : 'com.meituan.android.walle:library:1.1.6'
|
|
]
|
|
} |