123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168 |
- apply plugin: 'com.android.application'
- apply plugin: 'com.huawei.agconnect'
- repositories {
- mavenCentral()
- google()
- maven { url 'https://developer.huawei.com/repo/' }
- }
- configurations {
- compile.exclude module: 'support-v4'
- }
- configurations.all {
- exclude group: 'com.google.firebase', module: 'firebase-core'
- exclude group: 'androidx.recyclerview', module: 'recyclerview'
- }
- dependencies {
- implementation project(':TMessagesProj')
- implementation 'androidx.multidex:multidex:2.0.1'
- coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
- implementation files('../TMessagesProj/libs/libgsaverification-client.aar')
- implementation 'com.google.firebase:firebase-messaging:22.0.0'
- implementation 'com.huawei.hms:push:6.5.0.300'
- implementation 'com.huawei.hms:maps:6.6.0.300'
- implementation 'com.huawei.hms:location:6.4.0.300'
- }
- android {
- compileSdkVersion 31
- buildToolsVersion '31.0.0'
- defaultConfig.applicationId = APP_PACKAGE
- sourceSets.main.jniLibs.srcDirs = ['../TMessagesProj/jni/']
- lintOptions {
- disable 'MissingTranslation'
- disable 'ExtraTranslation'
- disable 'BlockedPrivateApi'
- }
- dexOptions {
- preDexLibraries = true
- jumboMode = true
- }
- dataBinding {
- enabled = true
- }
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- coreLibraryDesugaringEnabled true
- }
- // signingConfigs {
- // debug {
- // storeFile file("../TMessagesProj/config/release.keystore")
- // storePassword RELEASE_STORE_PASSWORD
- // keyAlias RELEASE_KEY_ALIAS
- // keyPassword RELEASE_KEY_PASSWORD
- // }
- //
- // release {
- // storeFile file("../TMessagesProj/config/release.keystore")
- // storePassword RELEASE_STORE_PASSWORD
- // keyAlias RELEASE_KEY_ALIAS
- // keyPassword RELEASE_KEY_PASSWORD
- // }
- // }
- // buildTypes {
- // debug {
- // debuggable true
- // jniDebuggable true
- // signingConfig signingConfigs.debug
- // minifyEnabled false
- // shrinkResources false
- // multiDexEnabled true
- // proguardFiles getDefaultProguardFile('proguard-android.txt'), '../TMessagesProj/proguard-rules.pro'
- // ndk.debugSymbolLevel = 'FULL'
- // }
- // release {
- // debuggable false
- // jniDebuggable false
- // signingConfig signingConfigs.release
- // minifyEnabled true
- // shrinkResources false
- // multiDexEnabled true
- // proguardFiles getDefaultProguardFile('proguard-android.txt'), '../TMessagesProj/proguard-rules.pro'
- // ndk.debugSymbolLevel = 'FULL'
- // }
- // }
- sourceSets.debug {
- manifest.srcFile '../TMessagesProj/config/debug/AndroidManifest.xml'
- }
- sourceSets.release {
- manifest.srcFile '../TMessagesProj/config/release/AndroidManifest.xml'
- }
- flavorDimensions "minApi"
- productFlavors {
- afat {
- ndk {
- abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
- }
- sourceSets.debug {
- manifest.srcFile '../TMessagesProj/config/debug/AndroidManifest_SDK23.xml'
- }
- sourceSets.release {
- manifest.srcFile '../TMessagesProj/config/release/AndroidManifest_SDK23.xml'
- }
- ext {
- abiVersionCode = 9
- }
- }
- }
- defaultConfig.versionCode = Integer.parseInt(APP_VERSION_CODE)
- applicationVariants.all { variant ->
- variant.outputs.all { output ->
- outputFileName = "app-huawei.apk"
- output.versionCodeOverride = defaultConfig.versionCode * 10 + variant.productFlavors.get(0).abiVersionCode
- }
- }
- variantFilter { variant ->
- def names = variant.flavors*.name
- if (variant.buildType.name != "release" && !names.contains("afat")) {
- setIgnore(true)
- }
- }
- defaultConfig {
- minSdkVersion 19
- targetSdkVersion 30
- versionName APP_VERSION_NAME
- ndkVersion "21.4.7075529"
- multiDexEnabled true
- vectorDrawables.generatedDensities = ['mdpi', 'hdpi', 'xhdpi', 'xxhdpi']
- externalNativeBuild {
- cmake {
- version '3.10.2'
- arguments '-DANDROID_STL=c++_static', '-DANDROID_PLATFORM=android-16', "-j=16"
- }
- }
- }
- buildFeatures {
- buildConfig = true
- }
- lintOptions {
- checkReleaseBuilds false
- }
- }
- apply plugin: 'com.google.gms.google-services'
|