123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156 |
- plugins {
- id 'com.android.application'
- id 'org.jetbrains.kotlin.android'
- }
- apply plugin: 'kotlin-android-extensions'
- apply plugin: 'kotlin-kapt'
- kapt {
- arguments {
- arg("AROUTER_MODULE_NAME", project.getName())
- // 是否生成路由文档,"enable":生成文档,其他字符串不生成路由文档
- arg("AROUTER_GENERATE_DOC", "enable")
- }
- }
- android {
- compileSdkVersion 31
- defaultConfig {
- applicationId "com.cooleshow.student"
- minSdkVersion 21
- targetSdkVersion 30
- versionCode 171
- versionName "1.7.1"
- ndk {
- abiFilters "armeabi-v7a", "arm64-v8a"
- }
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- manifestPlaceholders = [
- qqappid: "1110018403",
- JPUSH_PKGNAME: applicationId,
- JPUSH_APPKEY : "911d07f359c18a078f29792f", //JPush 上注册的包名对应的 Appkey.
- JPUSH_CHANNEL: "developer-default", //暂时填写默认值即可.
- XIAOMI_APPID : "MI-2882303761520172242",
- XIAOMI_APPKEY : "MI-5692017221242",
- OPPO_APPKEY : "OP-5b2b716e774c45f2bd9a90b242b295e9",
- OPPO_APPID : "OP-30841111",
- OPPO_APPSECRET : "OP-3f1d849d8bce4273be48ca08a2ce320b",
- VIVO_APPKEY : "ebf526d1d61ab3bba65ce30d333189f3",
- VIVO_APPID : "105573871",
- ]
- }
- signingConfigs {
- release {
- v1SigningEnabled true
- v2SigningEnabled true
- storeFile file("../cooleshow.jks")
- //签名文件
- storePassword "cooleshow"
- keyAlias "cooleshow"
- keyPassword "cooleshow" //签名密码
- }
- }
- buildTypes {
- release {
- minifyEnabled false
- signingConfig signingConfigs.release
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- buildConfigField "String", "BASE_H5_URL", RELEASE_BASE_URL_H5
- manifestPlaceholders = [k_appName: "酷乐秀"]
- }
- debug {
- minifyEnabled false
- signingConfig signingConfigs.release
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- buildConfigField "String", "BASE_H5_URL", TEST_BASE_URL_H5
- manifestPlaceholders = [k_appName: "酷乐秀debug"]
- }
- preRelease {
- debuggable true
- minifyEnabled false
- signingConfig signingConfigs.release
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- buildConfigField "String", "BASE_H5_URL", DEV_BASE_URL_H5
- manifestPlaceholders = [k_appName: "酷乐秀dev"]
- }
- }
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- packagingOptions {
- exclude 'META-INF/library_release.kotlin_module'
- }
- kotlinOptions {
- jvmTarget = '1.8'
- }
- buildFeatures {
- viewBinding = true
- }
- repositories {
- flatDir {
- dirs 'libs'
- }
- }
- }
- dependencies {
- api fileTree(dir: 'libs', include: ['*.jar'])
- implementation 'androidx.core:core-ktx:1.6.0'
- implementation 'androidx.appcompat:appcompat:1.3.0'
- implementation 'com.google.android.material:material:1.4.0'
- implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
- testImplementation 'junit:junit:4.13.2'
- androidTestImplementation 'androidx.test.ext:junit:1.1.3'
- androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
- implementation project(path: ':BaseLibrary')
- api project(path: ':usercenter')
- // implementation project(path: ':rong_im:kit')
- // implementation project(path: ':rong_im:common_im_ui')
- // implementation project(path: ':live_teaching')
- implementation project(path: ':metronome')
- implementation project(path: ':musictuner')
- implementation project(path: ':ffmpegCmd')
- implementation project(path: ':chatModule')
- implementation project(path: ':tclive')
- implementation project(path: ':classRoom')
- implementation project(path: ':institution')
- implementation project(path: ':musicMerge')
- implementation project(path: ':accompany')
- implementation "com.alibaba:arouter-api:$rootProject.ext.android.arouter_api_version"
- kapt "com.alibaba:arouter-compiler:$rootProject.ext.android.arouter_api_version"
- // api(name: 'openDefault-10.10.0', ext: 'aar')
- // 极光推送start
- implementation 'cn.jiguang.sdk:jpush:5.3.1' // 此处以JPush 4.7.0 版本为例。
- //若不集成厂商通道,可直接跳过以下依赖
- // 接入华为厂商
- implementation 'com.huawei.hms:push:6.12.0.300'
- // 极光厂商插件版本与接入 JPush 版本保持一致,下同
- implementation 'cn.jiguang.sdk.plugin:huawei:5.3.1'
- // 接入 VIVO 厂商
- implementation 'cn.jiguang.sdk.plugin:vivo:5.3.1'
- // 接入小米厂商
- implementation 'cn.jiguang.sdk.plugin:xiaomi:5.3.1'
- // 接入 OPPO 厂商
- implementation 'cn.jiguang.sdk.plugin:oppo:5.3.1'
- // JPush Android SDK v4.6.0 开始,需要单独引入 oppo 厂商 aar ,请下载官网 SDK 包并把 jpush-android-xxx-release/third-push/oppo/libs 下的 com.heytap.msp-push-x.x.x.aar 文件单独拷贝一份到应用 module/libs 下
- implementation(name: 'com.heytap.msp_3.4.0', ext: 'aar')
- implementation 'commons-codec:commons-codec:1.6'
- // 极光推送end
- implementation(name: 'emoji-ios-release', ext: 'aar')
- implementation(name: 'emoji-release', ext: 'aar')
- implementation(name: 'filedownload-1.0.0', ext: 'aar')
- }
|