123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 |
- plugins {
- id 'com.android.application'
- id 'kotlin-android'
- id 'kotlin-kapt'
- }
- android {
- signingConfigs {
- debug {
- File strFile = new File("debug.keystore")
- storeFile file(strFile)
- }
- debug_g6s {
- storeFile file("watch_g6s.keystore")
- storePassword "111111"
- keyAlias "watch"
- keyPassword "111111"
- }
- }
- compileSdkVersion target_sdk_version
- buildToolsVersion build_tools_version
- aaptOptions.noCompress("mp3","wav")
- defaultConfig {
- if (rootProject.ext.watch_type == "g6s") {
- //g6s腕表
- applicationId "com.health.watch"
- } else if (rootProject.ext.watch_type == "asr"){
- //asr腕表
- applicationId "com.wdkl.app.ncs"
- //applicationId "com.sgtc.launcher"
- } else {
- //通用腕表
- applicationId "com.wdkl.app.ncs"
- }
- minSdkVersion min_sdk_version
- targetSdkVersion target_sdk_version
- versionCode app_version_code
- versionName app_version
- multiDexEnabled true
- dataBinding {
- enabled = true
- }
- ndk {
- //选择要添加的对应cpu类型的.so库。
- //abiFilters 'armeabi', 'armeabi-v7a', 'armeabi-v8a', 'x86', 'x86_64', 'mips', 'mips64'
- abiFilters 'armeabi', 'armeabi-v7a', 'armeabi-v8a'
- }
- }
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- buildTypes {
- release {
- if ("yd_watch_2" == app_device_type) {
- if (rootProject.ext.watch_type == "g6s" || rootProject.ext.watch_type == "asr") {
- signingConfig signingConfigs.debug_g6s
- } else {
- signingConfig signingConfigs.debug
- }
- } else {
- signingConfig signingConfigs.debug
- }
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }
- debug {
- if ("yd_watch_2" == app_device_type) {
- if (rootProject.ext.watch_type == "g6s" || rootProject.ext.watch_type == "asr") {
- signingConfig signingConfigs.debug_g6s
- } else {
- signingConfig signingConfigs.debug
- }
- } else {
- signingConfig signingConfigs.debug
- }
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }
- }
- sourceSets {
- main.java.srcDirs += 'src/main/code'
- if ("yd_watch_2" == app_device_type) {
- if (rootProject.ext.watch_type == "g6s" || rootProject.ext.watch_type == "asr") {
- main.manifest.srcFile 'src/main/sharedUserId/AndroidManifest.xml'
- } else {
- main.manifest.srcFile 'src/main/AndroidManifest.xml'
- }
- } else if ("yd_w_gionee_2" == app_device_type || "yd_w_gionee_2_chile" == app_device_type) {
- main.manifest.srcFile 'src/main/gionee/AndroidManifest.xml'
- } else {
- main.manifest.srcFile 'src/main/AndroidManifest.xml'
- }
- }
- lintOptions{
- checkReleaseBuilds false
- abortOnError false
- }
- dexOptions {
- javaMaxHeapSize "4g"
- jumboMode=true
- preDexLibraries=true
- threadCount=8
- }
- }
- dependencies {
- implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
- implementation 'androidx.core:core-ktx:1.3.1'
- implementation 'androidx.appcompat:appcompat:1.2.0'
- implementation 'com.google.android.material:material:1.2.1'
- implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
- testImplementation 'junit:junit:4.+'
- androidTestImplementation 'androidx.test.ext:junit:1.1.2'
- androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
- implementation project(':middleware')
- implementation project(':android_mobile')
- implementation project(':keepalive')
- }
- ///**
- // * kawo组件化框架配置
- // */
- //kawo {
- // /**
- // * Aop注解排除Jar
- // */
- // aspectExcludeJarFilter 'com.enation.geamtear.pay','AlipaySdk'
- //}
- //
|