|
apply plugin: 'com.android.application'
//apply plugin: 'com.mob.sdk'
//
//MobSDK {
// appKey "304fe66c9be05"
// appSecret "ae05a16e089eef959d32174f4a001637"
// ShareSDK {
// loopShare true
// devInfo {
// // 微信开放平台链接: https://open.weixin.qq.com/cgi-bin/appdetail?t=manage/detail&type=app&lang=zh_CN&token=7d66745466c2986b0e2c10e6dd40ac82672222f5&appid=wx9ce6dfd102de332c
// Wechat {
// appId "wx00bb0933b4fdb159"
// appSecret "801cb11459e2d0fdb06df516cf91755b"
// userName "gh_afb25ac019c9"
// path "pages/index/index.html?id=1"
// withShareTicket true
// miniprogramType 2
// }
// // . . . 还有其他平台配置
// }
// }
//}
android {
compileSdkVersion 29
buildToolsVersion "30.0.1"
defaultConfig {
applicationId "com.junxin.zeropay"
minSdkVersion 19
targetSdkVersion 29
versionCode 7
versionName "1.5.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled true
manifestPlaceholders = [UMENG_CHANNEL_VALUE: "umeng"]//添加一个默认渠道号
flavorDimensions "versionCode"
}
/*
此配置能使Test能够调用Android的Api
*/
testOptions {
unitTests.returnDefaultValues = true
}
signingConfigs {
appkey {
storeFile rootProject.file('app/zeropay.jks')
storePassword "junxin"
keyAlias "zeropay"
keyPassword "junxin"
}
}
buildTypes {
release {
// 开启混淆
minifyEnabled true
// Zipalign压缩优化
zipAlignEnabled true
// 移除无用的资源文件
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.appkey
}
debug {
// 开启混淆
minifyEnabled false
// Zipalign压缩优化
zipAlignEnabled false
// 移除无用的资源文件
shrinkResources false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.appkey
}
}
productFlavors {
yingyongbao {}
xiaomi {}
huawei {}
oppo {}
junxin {}
}
productFlavors.all {
flavor -> flavor.manifestPlaceholders = [UMENG_CHANNEL_VALUE: name]
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.13'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
//material MD
implementation 'com.google.android.material:material:1.1.0'
//recyclerview
implementation "androidx.recyclerview:recyclerview:1.1.0"
// For control over item selection of both touch and mouse driven selection
implementation "androidx.recyclerview:recyclerview-selection:1.1.0-rc01"
//glide
implementation 'com.github.bumptech.glide:glide:4.11.0'
//gson
implementation 'com.google.code.gson:gson:2.8.5'
//eventbus
implementation 'org.greenrobot:eventbus:3.1.1'
//网络请求的依赖
implementation 'com.squareup.retrofit2:retrofit:2.6.0'
implementation 'com.squareup.retrofit2:converter-gson:2.6.0'
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.14.2'
//图片选择器
implementation 'com.github.LuckSiege.PictureSelector:picture_library:v2.5.8'
//banner
implementation "com.youth.banner:banner:2.1.0"
//cardview
implementation "androidx.cardview:cardview:1.0.0"
//友盟基础组件库包含统计SDK
implementation "com.umeng.umsdk:common:9.1.0"
// asms包依赖(必选)
implementation 'com.umeng.umsdk:asms:1.1.3'
// native crash包依赖(必选)
implementation "com.umeng.umsdk:crash:0.0.4"
//如您不在U-App的集成中加入OAID库,可能会导致U-App面向Android Q系统的新增、启动、活跃、留存等指标减少,因此,建议您接入OAID库。
implementation 'com.umeng.umsdk:oaid_lenovo:1.0.0' // (可选)
implementation 'com.umeng.umsdk:oaid_mi:1.0.0' // (可选)
implementation 'com.umeng.umsdk:oaid_oppo:1.0.4' // (可选)
implementation 'com.umeng.umsdk:oaid_vivo:1.0.0.1' // (可选)
//butterknife
implementation 'com.jakewharton:butterknife:10.2.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.1'
//今日头条适配
implementation 'me.jessyan:autosize:1.2.1'
implementation 'com.github.lzyzsd:jsbridge:1.0.4'
//权限申请
implementation 'com.github.tbruyelle:rxpermissions:0.12'
implementation 'io.reactivex.rxjava3:rxjava:3.0.4'
implementation 'io.reactivex.rxjava3:rxandroid:3.0.0'
//状态栏
// implementation 'com.gyf.immersionbar:immersionbar:3.0.0'
//打卡完成对勾控件
implementation 'com.github.ChengangFeng:TickView:v1.0.2'
//S3
implementation 'com.amazonaws:aws-android-sdk-core:2.17.1'
implementation 'com.amazonaws:aws-android-sdk-s3:2.3.8'
//长图大图预览
implementation 'com.github.chrisbanes:PhotoView:2.3.0'
//微信登录
api 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:+'
//下拉刷新
implementation 'com.scwang.smart:refresh-layout-kernel:2.0.1'
implementation 'com.scwang.smart:refresh-header-classics:2.0.1'
implementation 'com.shuyu:GSYVideoPlayer:7.1.6'
compile 'com.contrarywind:Android-PickerView:4.1.9'
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.5'
}
|