123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- buildscript {
- /**
- * Kotlin统一版本
- */
- ext.kotlin_version = '1.5.10'
- /**
- * Aop编制版本
- */
- ext.aspectj_version = '1.8.9'
- /**
- * 是否开启单独Module编译
- */
- ext.componentTag = false
- /**
- * 路由注解处理器版本
- */
- ext.router_version = '1.0.2'
- /**
- * kawo组件化框架版本
- */
- ext.kawo_version = '1.0.9'
- /**
- * SDK最小支持版本
- */
- ext.min_sdk_version = 24
- /**
- * SDK目标支持版本
- */
- ext.target_sdk_version = 30
- /**
- * SDK编译版本
- */
- ext.build_tools_version = "30.0.2"
- /**
- * 支持库版本
- */
- ext.support_library_version = "28.0.0"
- /**
- * 配置要打包的模块
- */
- ext.android_bed = true
- /**
- * 配置默认是否启动的设备
- */
- //是否开启服务 (床垫/cdb)
- ext.open_sleep = true
- //设备类型 0 医院 1 月子中心 2 养老院 3 公寓 4 CBD
- ext.device_type = "4"
-
- //设备类型 0 4g 1 串口 2 蓝牙 3 wifi 4 关闭
- ext.sleep_type = "1"
- ext.app_version_code =1
- ext.app_version = "1.0.0"
- /**
- * 项目依赖库
- */
- dependencies {
- repositories {
- /**
- * 依赖仓储
- */
- maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
- maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
- maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
- //jcenter()
- mavenCentral()
- google()
- }
- /**
- * Gradle插件
- */
- classpath 'com.android.tools.build:gradle:4.2.2'
- /**
- * Kawo组件化插件
- */
- classpath "com.enation.geamtear.gradle:kawo:$kawo_version"
- /**
- * KotlinGradle插件
- */
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
- /**
- * Kotlin辅助工具
- */
- classpath "org.jetbrains.kotlin:kotlin-android-extensions:$kotlin_version"
- /**
- * Aop埋点相关
- */
- classpath "org.aspectj:aspectjtools:$aspectj_version"
- }
- repositories {
- maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
- maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
- maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
- maven { url "https://jitpack.io" }
- jcenter()
- mavenCentral()
- google()
- }
- }
- /**
- * 统一依赖仓储
- */
- allprojects {
- repositories {
- maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
- maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
- maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
- maven { url "https://jitpack.io" }
- maven {
- // Replace snapshots by releases for releases !
- url "https://linphone.org/maven_repository"
- }
- jcenter()
- mavenCentral()
- google()
- flatDir {
- dirs '../common/libs' //申明本地库
- }
- }
- tasks.withType(Javadoc) { // 新增
- options.addStringOption('Xdoclint:none', '-quiet')
- options.addStringOption('encoding', 'UTF-8')
- }
- }
- /**
- * 清除Build配置时 删除根目录Build文件夹
- */
- task clean(type: Delete) {
- delete rootProject.buildDir
- }
|