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