123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- apply plugin: 'com.android.library'
- apply plugin: 'com.huawei.agconnect' // HMS SDK gradle 插件
- android {
- compileSdkVersion 29
- buildToolsVersion "29.0.3"
- defaultConfig {
- minSdkVersion 19
- targetSdkVersion 29
- versionCode 1
- versionName "1.0"
- multiDexEnabled true
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- javaCompileOptions {
- annotationProcessorOptions {
- arguments = [AROUTER_MODULE_NAME: project.getName()]
- }
- }
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- debug {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- }
- }
- repositories {
- flatDir {
- dirs 'libs', '../libs'
- }
- }
- dependencies {
- implementation fileTree(include: ['*.jar'], dir: 'libs')
- androidTestImplementation 'com.android.support.test:runner:1.0.2'
- androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
- annotationProcessor 'com.alibaba:arouter-compiler:1.5.2'
- api 'com.alibaba:arouter-api:1.5.2'
- implementation project(':KlcCommonView')
- // 金刚扫描库
- api 'com.tencent.jg:jg:1.1'
- api 'com.tencent.tpns:tpns:1.2.3.0'
- api 'com.tencent.tpns:huawei:1.2.2.0-release'
- // 华为推送 [VERSION] 为当前最新 SDK 版本号,版本号可在 Android SDK 发布动态 查看
- api 'com.huawei.hms:push:5.1.1.300' // HMS Core Push 模块依赖包
- api 'com.tencent.tpns:xiaomi:1.2.2.0-release'//小米推送
- api 'com.tencent.tpns:meizu:1.2.2.0-release'//meizu 推送
- api 'com.tencent.tpns:vivo:1.2.2.0-release' // vivo 推送
- api 'com.tencent.tpns:oppo:1.2.2.0-release'//OPPO 推送
- api 'com.android.support:multidex:1.0.3'
- }
|