地毯厂 成品入库、发货校对扫描系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

152 lines
5.3 KiB

plugins {
id 'com.android.library'
}
android {
namespace 'com.techscan.modulebase'
compileSdk rootProject.ext.version.compileSdkVersion
defaultConfig {
minSdk rootProject.ext.version.minSdkVersion
targetSdk rootProject.ext.version.targetSdkVersion
versionCode rootProject.ext.version.versionCode
versionName rootProject.ext.version.versionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
useSupportLibrary true
}
//Arouter路由配置
javaCompileOptions {
annotationProcessorOptions {
arguments = [AROUTER_MODULE_NAME: project.getName()]
}
}
}
buildTypes {
release {
//minifyEnabled true //是否开启混淆,其实子模块中这个已经没有作用了,由主模块控制
consumerProguardFiles 'proguard-rules.pro' //子模块要用这个命令才能生效
}
debug {
//测试混淆用
consumerProguardFiles 'proguard-rules.pro' //子模块要用这个命令才能生效
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
buildFeatures {
buildConfig = true
}
viewBinding {
enabled = true
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
api(rootProject.ext.libsDependency.appcompat)
api(rootProject.ext.libsDependency.material)
api(rootProject.ext.libsDependency.constraintlayout)
api(rootProject.ext.libsDependency.junit)
api(rootProject.ext.libsDependency.ext_junit)
api(rootProject.ext.libsDependency.espresso_core)
//RxJava3 + Retrofit 相关依赖
api(rootProject.ext.libsDependency.rxandroid)
api(rootProject.ext.libsDependency.adapter_rxjava3)
api(rootProject.ext.libsDependency.retrofit)
api(rootProject.ext.libsDependency.converter_gson)
api(rootProject.ext.libsDependency.okhttp)
api(rootProject.ext.libsDependency.okhttp_logging_interceptor)
api(rootProject.ext.libsDependency.lifecycle_extensions)
api(rootProject.ext.libsDependency.eventbus)
//阿里巴巴路由框架
api(rootProject.ext.libsDependency.arouter_api)
api(rootProject.ext.libsDependency.arouter_compiler)
//权限请求框架https://github.com/getActivity/XXPermissions
api(rootProject.ext.libsDependency.XXPermissions)
//logger日志框架
api(rootProject.ext.libsDependency.logger)
//爱奇艺崩溃日志收集框架
api(rootProject.ext.libsDependency.xcrash_android_lib)
//第三方Adapter封装库
api(rootProject.ext.libsDependency.BaseRecyclerViewAdapter)
//MMKV腾讯本地存储工具
api(rootProject.ext.libsDependency.mmkv)
//二位码扫描方法一:
//生成二维码用到
api(rootProject.ext.libsDependency.zxing)
api(rootProject.ext.libsDependency.MNMLKitScanner)
api(rootProject.ext.libsDependency.barcode_scanning)
api(rootProject.ext.libsDependency.camera_core)
api(rootProject.ext.libsDependency.camera_camera2)
api(rootProject.ext.libsDependency.camera_lifecycle)
api(rootProject.ext.libsDependency.camera_view)
//二位码扫描方法二:
//公共库 (*必须) (1.3.0新增:当使用到MLKit下面的子库时,需依赖公共库)
// api 'com.github.jenly1314.MLKit:mlkit-common:2.2.1'
// //条码识别 (可选)
// api 'com.github.jenly1314.MLKit:mlkit-barcode-scanning:2.2.1'
// api 'com.github.jenly1314:camera-scan:1.2.0'
//dialog
api(rootProject.ext.libsDependency.DialogX)
api(rootProject.ext.libsDependency.DialogXMIUIStyle)
api(rootProject.ext.libsDependency.DialogXIOSStyle)
//日期选择控件
//api(rootProject.ext.libsDependency.CalendarPicker)
//api(rootProject.ext.libsDependency.WheelPicker)
//屏幕适配
//api(rootProject.ext.libsDependency.AndroidAutoSize)
//上拉加载下拉刷新
api(rootProject.ext.libsDependency.SmartRefreshLayout)
api(rootProject.ext.libsDependency.refreshHeader)
api(rootProject.ext.libsDependency.refreshFooter)
//GSON
//api(rootProject.ext.libsDependency.gson)
//debugImplementation(rootProject.ext.libsDependency.leakcanary)
//自动更新app框架
api(rootProject.ext.libsDependency.XUpdate)
api(rootProject.ext.libsDependency.xupdate_easy)
api(rootProject.ext.libsDependency.okhttputils)
//动态切换域名框架RetrofitUrlManager
//api(rootProject.ext.libsDependency.retrofit_url_manager)
//api(rootProject.ext.libsDependency.smartTable)
// //已在module_database添加依赖
// //图片选择器
// api(rootProject.ext.libsDependency.pictureselector)
//图片压缩
api(rootProject.ext.libsDependency.compress)
//BS腾讯X5内核的使用
//api(rootProject.ext.libsDependency.tbssdk)
//工具类
api(rootProject.ext.libsDependency.xutil_core)
api(rootProject.ext.libsDependency.xutil_sub)
//公用依赖包
//Arouter路由 组件必须添加否则跳转页面失败
annotationProcessor(rootProject.ext.libsDependency.arouter_compiler)
//UI框架module
api project(path: ':xui_lib')
//数据库module
api project(path: ':module_database')
}