| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 | plugins {    id 'com.android.application'    id 'org.jetbrains.kotlin.android'    id 'kotlin-android-extensions'    id 'kotlin-kapt'}kapt {    arguments {        arg("AROUTER_MODULE_NAME", project.getName())    }}//多渠道打包apply plugin: 'walle'def appId = "com.yingyangfly"android {    signingConfigs {        debug {            storeFile file(RELEASE_STOREFILE)            storePassword RELEASE_STORE_PASSWORD            keyAlias RELEASE_KEY_ALIAS            keyPassword RELEASE_KEY_PASSWORD        }        release {            storeFile file(RELEASE_STOREFILE)            storePassword RELEASE_STORE_PASSWORD            keyAlias RELEASE_KEY_ALIAS            keyPassword RELEASE_KEY_PASSWORD        }    }    compileSdkVersion rootProject.ext.android.compileSdkVersion    defaultConfig {        applicationId appId        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"        vectorDrawables.useSupportLibrary = true        multiDexEnabled true        // 只保留指定和默认的资源        resConfigs "zh"//去掉无用的国际语言        ndkVersion '22.1.7171670'        ndk {            //选择要添加的对应 cpu 类型的 .so 库。            abiFilters 'armeabi', 'armeabi-v7a', 'arm64-v8a'            // 还可以添加 'x86', 'x86_64', 'mips', 'mips64'        }        manifestPlaceholders = [                JPUSH_PKGNAME: applicationId,                JPUSH_APPKEY : "d353d35b7a05a9d6a353c33e", //JPush 上注册的包名对应的 Appkey.                JPUSH_CHANNEL: "developer-default", //暂时填写默认值即可.        ]    }    buildTypes {        debug {            minifyEnabled false // 打开混淆            shrinkResources false // 是否清理无用资源,依赖于minifyEnabled            zipAlignEnabled false // 是否启用zipAlign压缩            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'            signingConfig signingConfigs.debug            debuggable true            resValue "string", "app_name", "鹰扬科技dev"            manifestPlaceholders = [ENVIRONMENT: "appdebug",                                    app_icon   : "@mipmap/ic_launcher", package_name: appId]        }        release {            minifyEnabled false // 打开混淆            shrinkResources false // 是否清理无用资源,依赖于minifyEnabled            zipAlignEnabled false // 是否启用zipAlign压缩            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'            signingConfig signingConfigs.release            debuggable true            resValue "string", "app_name", "鹰扬科技"            manifestPlaceholders = [ENVIRONMENT: "appdebug",                                    app_icon   : "@mipmap/ic_launcher", package_name: appId]        }    }    compileOptions {        sourceCompatibility JavaVersion.VERSION_1_8        targetCompatibility JavaVersion.VERSION_1_8    }    kotlinOptions {        jvmTarget = '1.8'    }    lintOptions {        checkReleaseBuilds false        abortOnError false    }    buildFeatures {        dataBinding true    }}dependencies {    implementation project(path: ':baselib')    implementation project(path: ':webview')    implementation project(path: ':setting')    implementation project(path: ':workbenches')    implementation project(path: ':personalcenter')    implementation project(path: ':livebroadcast')    implementation project(path: ':login')    implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs')    implementation(rootProject.ext.androidx.kotlin_lib)    implementation(rootProject.ext.androidx.kotlin_core)    implementation(rootProject.ext.androidx.appcompat)    implementation(rootProject.ext.androidx.material)    implementation(rootProject.ext.androidx.constraintlayout)    testApi(rootProject.ext.androidx.junit)    androidTestApi(rootProject.ext.androidx.runner)    androidTestApi(rootProject.ext.androidx.espresso_core)    // 此处以JPush 5.0.0 版本为例,5.0.0 版本开始可以自动拉取 JCore 包,无需另外配置    implementation(rootProject.ext.dependencies.jpush)}
 |