| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184 |
- plugins {
- id 'com.android.application'
- id 'kotlin-android'
- }
- apply plugin: 'kotlin-android-extensions'
- android {
- signingConfigs {
- udapda {
- keyAlias 'punaier_wms_alias'
- keyPassword 'pdakeystone'
- storeFile file('C:\\sigin\\punaier_wms.jks')
- storePassword 'pdakeystone'
- }
- }
- compileSdkVersion rootProject.ext.android.compileSdkVersion
- buildToolsVersion rootProject.ext.android.buildToolsVersion
- defaultConfig {
- applicationId "erp.erp.punaier_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
- }
- }
- lintOptions {
- disable 'MissingTranslation'
- checkReleaseBuilds false
- }
- buildTypes {
- release {
- minifyEnabled false // 是否启用代码混淆,默认是false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- // debug {
- // }
- // release {
- // // 混淆
- // minifyEnabled true
- // // Zipalign优化
- // zipAlignEnabled true
- // // 移除无用的resource文件
- // shrinkResources true
- // // 前一部分代表系统默认的android程序的混淆文件,该文件已经包含了基本的混淆声明,后一个文件是自己的定义混淆文件
- // proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
- // signingConfig signingConfigs.udapda
- // applicationVariants.all { variant ->
- // variant.outputs.all { output ->
- // def outputFile = output.outputFile
- // def fileName
- // if (outputFile != null && outputFile.name.endsWith('.apk')) {
- // def releaseInfo = getVersionName()
- // fileName = "普耐尔WMS_RELEASE_${releaseInfo}.apk"
- // outputFileName = fileName
- // }
- // }
- // }
- // }
- }
- 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 = "行之成_产线UAS_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 = "普耐尔WMS_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.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' //列表经典刷新头
- //权限工具
- implementation 'com.permissionx.guolindev:permissionx:1.3.0'
- // 友盟基础组件库(所有友盟业务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 'org.greenrobot:eventbus:3.1.1' //eventBus
- implementation 'org.apache.commons:commons-text:1.9'
- implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
- // api files('android-common-sdk-v1.00.00.aar')
- // api files('lzo-sdk-v1.00.00.aar')
- }
|