| 7 |
| 8 | configurations { |
| 9 | compile.exclude module: 'support-v4' |
| 10 | } |
| 11 |
| 12 | configurations.all { |
| 13 | exclude group: 'com.google.firebase', module: 'firebase-core' |
| 14 | exclude group: 'androidx.recyclerview', module: 'recyclerview' |
| 15 | } |
| 16 |
| 17 | dependencies { |
| 18 | implementation project(':TMessagesProj') |
| 19 | implementation 'androidx.multidex:multidex:2.0.1' |
| 20 | implementation 'androidx.core:core:1.10.1' |
| 21 | coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5' |
| 22 | implementation files('../TMessagesProj/libs/libgsaverification-client.aar') |
| 23 |
| 24 | implementation "com.microsoft.appcenter:appcenter-distribute:3.3.1" |
| 25 | implementation "com.microsoft.appcenter:appcenter-crashes:3.3.1" |
| 26 | implementation "com.microsoft.appcenter:appcenter-analytics:3.3.1" |
| 27 | } |
| 28 |
| 29 | android { |
| 30 | compileSdkVersion 33 |
| 31 | buildToolsVersion '33.0.0' |
| 32 |
| 33 | defaultConfig.applicationId = APP_PACKAGE |
| 34 |
| 35 | sourceSets.main.jniLibs.srcDirs = ['../TMessagesProj/jni/'] |
| 36 |
| 37 | lintOptions { |
| 38 | disable 'MissingTranslation' |
| 39 | disable 'ExtraTranslation' |
| 40 | disable 'BlockedPrivateApi' |
| 41 | } |
| 42 |
| 43 | dexOptions { |
| 44 | jumboMode = true |
| 45 | } |
| 46 |
| 47 | compileOptions { |
| 48 | sourceCompatibility JavaVersion.VERSION_1_8 |
| 49 | targetCompatibility JavaVersion.VERSION_1_8 |
| 50 |
| 51 | coreLibraryDesugaringEnabled true |
| 52 | } |
| 53 |
| 54 | signingConfigs { |
| 55 | debug { |
| 56 | storeFile file("../TMessagesProj/config/release.keystore") |
| 57 | storePassword RELEASE_STORE_PASSWORD |
| 58 | keyAlias RELEASE_KEY_ALIAS |
| 59 | keyPassword RELEASE_KEY_PASSWORD |
| 60 | } |
| 61 |
| 62 | release { |
| 63 | storeFile file("../TMessagesProj/config/release.keystore") |
| 64 | storePassword RELEASE_STORE_PASSWORD |
| 65 | keyAlias RELEASE_KEY_ALIAS |
| 66 | keyPassword RELEASE_KEY_PASSWORD |
| 67 | } |
| 68 | } |
| 69 |
| 70 | buildTypes { |
| 71 | HA_private { |
| 72 | debuggable false |
| 73 | jniDebuggable false |
| 74 | signingConfig signingConfigs.debug |
| 75 | applicationIdSuffix ".beta" |
| 76 | minifyEnabled true |
| 77 | multiDexEnabled true |
| 78 | proguardFiles getDefaultProguardFile('proguard-android.txt'), '../TMessagesProj/proguard-rules.pro' |
| 79 | ndk.debugSymbolLevel = 'FULL' |
| 80 | } |
| 81 | HA_public { |
| 82 | debuggable false |
| 83 | jniDebuggable false |
| 84 | signingConfig signingConfigs.debug |
| 85 | applicationIdSuffix ".beta" |
| 86 | minifyEnabled true |
| 87 | multiDexEnabled true |
| 88 | proguardFiles getDefaultProguardFile('proguard-android.txt'), '../TMessagesProj/proguard-rules.pro' |
| 89 | ndk.debugSymbolLevel = 'FULL' |
| 90 | } |
| 91 | HA_hardcore { |
| 92 | debuggable false |
| 93 | jniDebuggable false |
| 94 | signingConfig signingConfigs.debug |
| 95 | applicationIdSuffix ".beta" |
| 96 | minifyEnabled true |
| 97 | multiDexEnabled true |
| 98 | proguardFiles getDefaultProguardFile('proguard-android.txt'), '../TMessagesProj/proguard-rules.pro' |
| 99 | ndk.debugSymbolLevel = 'FULL' |
| 100 | } |
| 101 | } |
| 102 |
| 103 | sourceSets.HA_private { |
| 104 | manifest.srcFile '../TMessagesProj/config/debug/AndroidManifest.xml' |
| 105 | } |
| 106 | sourceSets.HA_public { |
| 107 | manifest.srcFile '../TMessagesProj/config/debug/AndroidManifest.xml' |
| 108 | } |
| 109 | sourceSets.HA_hardcore { |
| 110 | manifest.srcFile '../TMessagesProj/config/debug/AndroidManifest.xml' |
| 111 | } |
| 112 |
| 113 | flavorDimensions "minApi" |
| 114 |
| 115 | productFlavors { |
| 116 | bundleAfat { |
| 117 | ndk { |
| 118 | abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64" |
| 119 | } |
| 120 | ext { |
| 121 | abiVersionCode = 1 |
| 122 | } |
| 123 | } |
| 124 | bundleAfat_SDK23 { |
| 125 | ndk { |
| 126 | abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64" |
| 127 | } |
| 128 | minSdkVersion 23 |
| 129 | ext { |
| 130 | abiVersionCode = 2 |
| 131 | } |
| 132 | } |
| 133 | afat { |
| 134 | ndk { |
| 135 | abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64" |
| 136 | } |
| 137 | ext { |
| 138 | abiVersionCode = 9 |
| 139 | } |
| 140 | } |
| 141 | } |
| 142 |
| 143 | defaultConfig.versionCode = Integer.parseInt(APP_VERSION_CODE) |
| 144 |
| 145 | applicationVariants.all { variant -> |
| 146 | variant.outputs.all { output -> |
| 147 | outputFileName = "app.apk" |
| 148 | output.versionCodeOverride = defaultConfig.versionCode * 10 + variant.productFlavors.get(0).abiVersionCode |
| 149 | } |
| 150 | } |
| 151 |
| 152 | variantFilter { variant -> |
| 153 | def names = variant.flavors*.name |
| 154 | if (variant.buildType.name != "release" && !names.contains("afat")) { |
| 155 | setIgnore(true) |
| 156 | } |
| 157 | } |
| 158 |
| 159 | defaultConfig { |
| 160 | minSdkVersion 19 |
| 161 | targetSdkVersion 33 |
| 162 | versionName APP_VERSION_NAME |
| 163 | ndkVersion "21.4.7075529" |
| 164 |
| 165 | multiDexEnabled true |
| 166 |
| 167 | vectorDrawables.generatedDensities = ['mdpi', 'hdpi', 'xhdpi', 'xxhdpi'] |
| 168 |
| 169 | externalNativeBuild { |
| 170 | cmake { |
| 171 | version '3.10.2' |
| 172 | arguments '-DANDROID_STL=c++_static', '-DANDROID_PLATFORM=android-16', "-j=16" |
| 173 | } |
| 174 | } |
| 175 | } |
| 176 |
| 177 | buildFeatures { |
| 178 | buildConfig = true |
| 179 | } |
| 180 |
| 181 | lintOptions { |
| 182 | checkReleaseBuilds false |
| 183 | } |
| 184 | } |
| 185 |
| 186 | apply plugin: 'com.google.gms.google-services' |
| 187 |