plugins { id 'com.android.application' id 'kotlin-android' } apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' android { signingConfigs { udapda { keyAlias 'as_xinmaiwei_wms' keyPassword 'pdakeystone' storeFile file('C:\\sigin\\xinmaiwei_wms.jks') storePassword 'pdakeystone' } } compileSdkVersion rootProject.ext.android.compileSdkVersion buildToolsVersion rootProject.ext.android.buildToolsVersion defaultConfig { applicationId "uas.erp.xinmaiwei_wms" minSdkVersion rootProject.ext.android.minSdkVersion targetSdkVersion rootProject.ext.android.targetSdkVersion versionCode rootProject.ext.android.versionCode versionName rootProject.ext.android.versionName testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" multiDexEnabled true // 确保启用多DEX支持 javaCompileOptions { annotationProcessorOptions { includeCompileClasspath = true } } ndk { //设置支持的SO库架构(开发者可以根据需要,选择一个或多个平台的so) abiFilters "armeabi", "armeabi-v7a", "arm64-v8a", "x86", "x86_64" } } bundle { language { enableSplit = false } density { enableSplit = false } } buildTypes { release { minifyEnabled false // 是否启用代码混淆,默认是false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } // buildFeatures { // viewBinding true // } // kotlinOptions { // jvmTarget = '1.8' // } packagingOptions { exclude 'META-INF/LICENSE.txt' exclude 'META-INF/NOTICE.txt' } applicationVariants.all { variant -> variant.outputs.all { output -> def outputFile = output.outputFile def fileName if (outputFile != null && outputFile.name.endsWith('.apk')) { if (variant.buildType.name.equals('release')) { def releaseInfo = getVersionName() // def timeR = new Date().format("yyyyMMdd_HH-mm-ss") // fileName = "新迈威_WMS_RELEASE_${releaseInfo}_${timeR}.apk" fileName = "新迈威_WMS_RELEASE_${releaseInfo}.apk" } else if (variant.buildType.name.equals('debug')) { def debugInfo = getVersionName() def timeD = new Date().format("yyyyMMdd_HH-mm-ss") fileName = "UAS_PDA_XZC_PRODUCTIONLINE_DEBUG_${debugInfo}_${timeD}.apk" } outputFileName = fileName } } } } def getVersionName() { return rootProject.ext.android.versionName } dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') implementation 'androidx.appcompat:appcompat:1.2.0' implementation 'com.google.android.material:material:1.2.1' implementation 'androidx.constraintlayout:constraintlayout:2.0.1' api files('libs/volley.jar') api files('libs/gson-2.2.4.jar') api project(':pulltoreflashlibrary') api project(':progresslitelibrary') api project(':lib-zxing') api project(':bluetooth') // implementation deps.appcompatV7 // implementation deps.recyclerview implementation deps.stetho implementation deps.fastjson implementation deps.xUtils implementation deps.okhttp implementation deps.switchView // implementation deps.BaseRecyclerViewAdapterHelper // implementation deps.smartRefreshLayout // implementation deps.smartRefreshHeader // implementation deps.permisson //权限不在兼容 implementation deps.basePopup implementation deps.smartTable // implementation "io.github.cymchad:BaseRecyclerViewAdapterHelper:3.0.14" // implementation "io.github.cymchad:BaseRecyclerViewAdapterHelper:3.0.7" implementation "com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.7" //从3.x.x开始支持AndroidX // implementation "com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.6" //从3.x.x开始支持AndroidX //implementation 'com.androidx.support:multidex:1.0.3' implementation 'androidx.multidex:multidex:2.0.1' //支持AndroidX的版本 // SmartRefreshLayout兼容AndroidX 基础库 // implementation 'com.scwang.smart:refresh-layout-kernel:2.1.0' // // 经典头部 // implementation 'com.scwang.smart:refresh-header-classics:2.1.0' implementation 'io.github.scwang90:refresh-layout-kernel:3.0.0-alpha' //列表核心必须依赖 implementation 'io.github.scwang90:refresh-header-classics:3.0.0-alpha' //列表经典刷新头 // 友盟基础组件库(所有友盟业务SDK都依赖基础组件库) implementation 'com.umeng.umsdk:common:9.4.4' //(必选) implementation 'com.umeng.umsdk:asms:1.4.1' // asms包依赖(必选) implementation 'com.umeng.umsdk:apm:1.5.2' // U-APM包依赖(必选) 错误分析升级为独立SDK,看crash数据请一定集成 //权限工具 implementation 'com.permissionx.guolindev:permissionx:1.3.0' implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation "org.jetbrains.anko:anko-commons:$anko_version" }