2014-07-02 22:39:05 +00:00
|
|
|
apply plugin: 'com.android.application'
|
2013-10-25 15:19:00 +00:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2018-07-30 02:07:02 +00:00
|
|
|
google()
|
|
|
|
jcenter()
|
2013-10-25 15:19:00 +00:00
|
|
|
}
|
|
|
|
|
2016-10-11 11:57:01 +00:00
|
|
|
configurations {
|
|
|
|
compile.exclude module: 'support-v4'
|
|
|
|
}
|
|
|
|
|
2019-05-14 12:08:05 +00:00
|
|
|
configurations.all {
|
|
|
|
exclude group: 'com.google.firebase', module: 'firebase-core'
|
2020-12-23 07:48:30 +00:00
|
|
|
exclude group: 'androidx.recyclerview', module: 'recyclerview'
|
2019-05-14 12:08:05 +00:00
|
|
|
}
|
|
|
|
|
2013-10-25 15:19:00 +00:00
|
|
|
dependencies {
|
2020-10-04 22:13:31 +00:00
|
|
|
implementation 'androidx.core:core:1.3.2'
|
2019-05-14 12:08:05 +00:00
|
|
|
implementation 'androidx.palette:palette:1.0.0'
|
2020-12-23 07:48:30 +00:00
|
|
|
implementation 'androidx.exifinterface:exifinterface:1.3.2'
|
2020-04-24 09:21:58 +00:00
|
|
|
implementation 'androidx.dynamicanimation:dynamicanimation:1.0.0'
|
2020-07-26 08:03:38 +00:00
|
|
|
implementation 'androidx.multidex:multidex:2.0.1'
|
2021-01-28 14:15:51 +00:00
|
|
|
implementation "androidx.sharetarget:sharetarget:1.1.0"
|
2019-05-14 12:08:05 +00:00
|
|
|
|
2019-01-23 17:03:33 +00:00
|
|
|
compileOnly 'org.checkerframework:checker-qual:2.5.2'
|
2018-08-27 08:33:11 +00:00
|
|
|
compileOnly 'org.checkerframework:checker-compat-qual:2.5.0'
|
2020-12-23 07:48:30 +00:00
|
|
|
implementation 'com.google.firebase:firebase-messaging:21.0.1'
|
2021-03-19 10:25:58 +00:00
|
|
|
implementation 'com.google.firebase:firebase-config:20.0.4'
|
2021-02-23 11:53:38 +00:00
|
|
|
implementation 'com.google.firebase:firebase-datatransport:17.0.11'
|
|
|
|
implementation 'com.google.firebase:firebase-appindexing:19.2.0'
|
2019-07-18 13:01:39 +00:00
|
|
|
implementation 'com.google.android.gms:play-services-maps:17.0.0'
|
2020-12-23 07:48:30 +00:00
|
|
|
implementation 'com.google.android.gms:play-services-auth:19.0.0'
|
2019-01-23 17:03:33 +00:00
|
|
|
implementation 'com.google.android.gms:play-services-vision:16.2.0'
|
2019-07-18 13:01:39 +00:00
|
|
|
implementation 'com.google.android.gms:play-services-wearable:17.0.0'
|
2021-03-19 10:25:58 +00:00
|
|
|
implementation 'com.google.android.gms:play-services-location:18.0.0'
|
2020-10-30 10:26:29 +00:00
|
|
|
implementation 'com.google.android.gms:play-services-wallet:18.1.2'
|
2018-08-27 08:33:11 +00:00
|
|
|
implementation 'com.googlecode.mp4parser:isoparser:1.0.6'
|
|
|
|
implementation 'com.stripe:stripe-android:2.0.2'
|
2019-12-31 13:08:08 +00:00
|
|
|
implementation files('libs/libgsaverification-client.aar')
|
2020-08-14 16:58:22 +00:00
|
|
|
|
2021-03-19 10:25:58 +00:00
|
|
|
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
|
2013-10-25 15:19:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2020-07-26 08:03:38 +00:00
|
|
|
compileSdkVersion 30
|
2020-12-23 07:48:30 +00:00
|
|
|
buildToolsVersion '30.0.3'
|
2020-06-04 16:47:15 +00:00
|
|
|
ndkVersion "21.1.6352462"
|
2017-12-08 17:35:59 +00:00
|
|
|
|
2016-01-11 17:19:48 +00:00
|
|
|
defaultConfig.applicationId = "org.telegram.messenger"
|
2015-10-29 17:10:07 +00:00
|
|
|
|
2016-10-11 11:57:01 +00:00
|
|
|
sourceSets.main.jniLibs.srcDirs = ['./jni/']
|
|
|
|
|
|
|
|
externalNativeBuild {
|
2020-09-30 13:48:47 +00:00
|
|
|
cmake {
|
|
|
|
path 'jni/CMakeLists.txt'
|
2016-10-11 11:57:01 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-30 02:07:02 +00:00
|
|
|
lintOptions {
|
|
|
|
disable 'MissingTranslation'
|
|
|
|
disable 'ExtraTranslation'
|
2019-09-10 10:56:11 +00:00
|
|
|
disable 'BlockedPrivateApi'
|
2018-07-30 02:07:02 +00:00
|
|
|
}
|
|
|
|
|
2017-03-30 23:58:05 +00:00
|
|
|
dexOptions {
|
|
|
|
jumboMode = true
|
|
|
|
}
|
|
|
|
|
2015-01-02 22:15:07 +00:00
|
|
|
compileOptions {
|
2018-08-27 08:33:11 +00:00
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
2020-08-14 16:58:22 +00:00
|
|
|
|
|
|
|
coreLibraryDesugaringEnabled true
|
2015-01-02 22:15:07 +00:00
|
|
|
}
|
2014-03-22 22:31:55 +00:00
|
|
|
|
2013-12-20 19:25:49 +00:00
|
|
|
signingConfigs {
|
|
|
|
debug {
|
2015-11-26 21:04:02 +00:00
|
|
|
storeFile file("config/release.keystore")
|
|
|
|
storePassword RELEASE_STORE_PASSWORD
|
|
|
|
keyAlias RELEASE_KEY_ALIAS
|
|
|
|
keyPassword RELEASE_KEY_PASSWORD
|
2013-12-20 19:25:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
release {
|
2014-03-22 22:31:55 +00:00
|
|
|
storeFile file("config/release.keystore")
|
|
|
|
storePassword RELEASE_STORE_PASSWORD
|
|
|
|
keyAlias RELEASE_KEY_ALIAS
|
|
|
|
keyPassword RELEASE_KEY_PASSWORD
|
2013-12-20 19:25:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
debug {
|
|
|
|
debuggable true
|
2014-11-10 11:05:22 +00:00
|
|
|
jniDebuggable true
|
2013-12-20 19:25:49 +00:00
|
|
|
signingConfig signingConfigs.debug
|
2015-11-26 21:04:02 +00:00
|
|
|
applicationIdSuffix ".beta"
|
2020-12-23 07:48:30 +00:00
|
|
|
minifyEnabled false
|
|
|
|
shrinkResources false
|
2020-04-24 09:21:58 +00:00
|
|
|
multiDexEnabled true
|
2018-07-30 02:07:02 +00:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
2020-12-23 07:48:30 +00:00
|
|
|
ndk.debugSymbolLevel = 'FULL'
|
2013-12-20 19:25:49 +00:00
|
|
|
}
|
|
|
|
|
2019-12-31 13:08:08 +00:00
|
|
|
/*debugAsan {
|
|
|
|
debuggable true
|
|
|
|
jniDebuggable true
|
|
|
|
signingConfig signingConfigs.debug
|
|
|
|
applicationIdSuffix ".beta"
|
|
|
|
minifyEnabled true
|
2020-06-04 16:47:15 +00:00
|
|
|
multiDexEnabled true
|
2019-12-31 13:08:08 +00:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
|
|
|
|
|
|
packagingOptions {
|
|
|
|
doNotStrip "**.so"
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
jniLibs {
|
|
|
|
srcDir {
|
|
|
|
'jniLibs'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
resources {
|
|
|
|
srcDir {
|
|
|
|
'jniRes'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}*/
|
|
|
|
|
2019-01-23 17:03:33 +00:00
|
|
|
HA {
|
|
|
|
debuggable false
|
|
|
|
jniDebuggable false
|
|
|
|
signingConfig signingConfigs.debug
|
|
|
|
applicationIdSuffix ".beta"
|
|
|
|
minifyEnabled true
|
2020-04-24 09:21:58 +00:00
|
|
|
multiDexEnabled true
|
2019-01-23 17:03:33 +00:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
2020-12-23 07:48:30 +00:00
|
|
|
ndk.debugSymbolLevel = 'FULL'
|
2019-01-23 17:03:33 +00:00
|
|
|
}
|
|
|
|
|
2013-12-20 19:25:49 +00:00
|
|
|
release {
|
|
|
|
debuggable false
|
2014-11-10 11:05:22 +00:00
|
|
|
jniDebuggable false
|
2013-12-20 19:25:49 +00:00
|
|
|
signingConfig signingConfigs.release
|
2018-07-30 02:07:02 +00:00
|
|
|
minifyEnabled true
|
2017-03-30 23:58:05 +00:00
|
|
|
shrinkResources false
|
2020-04-24 09:21:58 +00:00
|
|
|
multiDexEnabled true
|
2016-01-11 17:19:48 +00:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
2020-12-23 07:48:30 +00:00
|
|
|
ndk.debugSymbolLevel = 'FULL'
|
2013-12-20 19:25:49 +00:00
|
|
|
}
|
2014-03-22 22:31:55 +00:00
|
|
|
}
|
|
|
|
|
2014-11-21 19:36:21 +00:00
|
|
|
sourceSets.debug {
|
|
|
|
manifest.srcFile 'config/debug/AndroidManifest.xml'
|
|
|
|
}
|
|
|
|
|
2019-12-31 13:08:08 +00:00
|
|
|
/*sourceSets.debugAsan {
|
|
|
|
manifest.srcFile 'config/debug/AndroidManifest.xml'
|
|
|
|
}*/
|
|
|
|
|
2019-01-23 17:03:33 +00:00
|
|
|
sourceSets.HA {
|
|
|
|
manifest.srcFile 'config/debug/AndroidManifest.xml'
|
|
|
|
}
|
|
|
|
|
2014-11-21 19:36:21 +00:00
|
|
|
sourceSets.release {
|
|
|
|
manifest.srcFile 'config/release/AndroidManifest.xml'
|
|
|
|
}
|
|
|
|
|
2017-12-08 17:35:59 +00:00
|
|
|
flavorDimensions "minApi"
|
|
|
|
|
2016-03-16 12:26:32 +00:00
|
|
|
productFlavors {
|
2018-07-30 02:07:02 +00:00
|
|
|
armv7 {
|
|
|
|
ndk {
|
|
|
|
abiFilters "armeabi-v7a"
|
|
|
|
}
|
|
|
|
ext {
|
|
|
|
abiVersionCode = 1
|
|
|
|
}
|
|
|
|
}
|
2016-03-16 12:26:32 +00:00
|
|
|
x86 {
|
|
|
|
ndk {
|
2018-07-30 02:07:02 +00:00
|
|
|
abiFilters "x86"
|
|
|
|
}
|
|
|
|
ext {
|
|
|
|
abiVersionCode = 2
|
2016-03-16 12:26:32 +00:00
|
|
|
}
|
|
|
|
}
|
2018-07-30 02:07:02 +00:00
|
|
|
armv7_SDK23 {
|
2016-03-16 12:26:32 +00:00
|
|
|
ndk {
|
2018-07-30 02:07:02 +00:00
|
|
|
abiFilters "armeabi-v7a"
|
|
|
|
}
|
|
|
|
sourceSets.debug {
|
|
|
|
manifest.srcFile 'config/debug/AndroidManifest_SDK23.xml'
|
|
|
|
}
|
|
|
|
sourceSets.release {
|
|
|
|
manifest.srcFile 'config/release/AndroidManifest_SDK23.xml'
|
|
|
|
}
|
|
|
|
minSdkVersion 23
|
|
|
|
ext {
|
|
|
|
abiVersionCode = 3
|
2016-03-16 12:26:32 +00:00
|
|
|
}
|
|
|
|
}
|
2017-03-30 23:58:05 +00:00
|
|
|
x86_SDK23 {
|
|
|
|
ndk {
|
2018-07-30 02:07:02 +00:00
|
|
|
abiFilters "x86"
|
2017-03-30 23:58:05 +00:00
|
|
|
}
|
|
|
|
sourceSets.debug {
|
|
|
|
manifest.srcFile 'config/debug/AndroidManifest_SDK23.xml'
|
|
|
|
}
|
|
|
|
sourceSets.release {
|
|
|
|
manifest.srcFile 'config/release/AndroidManifest_SDK23.xml'
|
|
|
|
}
|
|
|
|
minSdkVersion 23
|
2018-07-30 02:07:02 +00:00
|
|
|
ext {
|
|
|
|
abiVersionCode = 4
|
|
|
|
}
|
2017-03-30 23:58:05 +00:00
|
|
|
}
|
2018-07-30 02:07:02 +00:00
|
|
|
arm64 {
|
2017-03-30 23:58:05 +00:00
|
|
|
ndk {
|
2018-07-30 02:07:02 +00:00
|
|
|
abiFilters "arm64-v8a"
|
|
|
|
}
|
|
|
|
ext {
|
|
|
|
abiVersionCode = 5
|
|
|
|
}
|
|
|
|
}
|
|
|
|
x64 {
|
|
|
|
ndk {
|
|
|
|
abiFilters "x86_64"
|
|
|
|
}
|
|
|
|
ext {
|
|
|
|
abiVersionCode = 6
|
|
|
|
}
|
|
|
|
}
|
|
|
|
arm64_SDK23 {
|
|
|
|
ndk {
|
|
|
|
abiFilters "arm64-v8a"
|
|
|
|
}
|
|
|
|
sourceSets.debug {
|
|
|
|
manifest.srcFile 'config/debug/AndroidManifest_SDK23.xml'
|
|
|
|
}
|
2019-12-31 13:08:08 +00:00
|
|
|
/*sourceSets.debugAsan {
|
|
|
|
manifest.srcFile 'config/debug/AndroidManifest_SDK23.xml'
|
|
|
|
}*/
|
2018-07-30 02:07:02 +00:00
|
|
|
sourceSets.release {
|
|
|
|
manifest.srcFile 'config/release/AndroidManifest_SDK23.xml'
|
|
|
|
}
|
|
|
|
minSdkVersion 23
|
|
|
|
ext {
|
|
|
|
abiVersionCode = 7
|
|
|
|
}
|
|
|
|
}
|
|
|
|
x64_SDK23 {
|
|
|
|
ndk {
|
|
|
|
abiFilters "x86_64"
|
2017-03-30 23:58:05 +00:00
|
|
|
}
|
|
|
|
sourceSets.debug {
|
|
|
|
manifest.srcFile 'config/debug/AndroidManifest_SDK23.xml'
|
|
|
|
}
|
|
|
|
sourceSets.release {
|
|
|
|
manifest.srcFile 'config/release/AndroidManifest_SDK23.xml'
|
|
|
|
}
|
|
|
|
minSdkVersion 23
|
2018-07-30 02:07:02 +00:00
|
|
|
ext {
|
|
|
|
abiVersionCode = 8
|
|
|
|
}
|
2016-03-16 12:26:32 +00:00
|
|
|
}
|
2018-07-30 02:07:02 +00:00
|
|
|
afat {
|
2020-09-30 13:48:47 +00:00
|
|
|
ndk {
|
|
|
|
abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
|
|
|
|
}
|
2017-03-30 23:58:05 +00:00
|
|
|
sourceSets.debug {
|
|
|
|
manifest.srcFile 'config/debug/AndroidManifest_SDK23.xml'
|
|
|
|
}
|
2019-12-31 13:08:08 +00:00
|
|
|
/*sourceSets.debugAsan {
|
|
|
|
manifest.srcFile 'config/debug/AndroidManifest_SDK23.xml'
|
|
|
|
}*/
|
2017-03-30 23:58:05 +00:00
|
|
|
sourceSets.release {
|
|
|
|
manifest.srcFile 'config/release/AndroidManifest_SDK23.xml'
|
|
|
|
}
|
2018-07-30 02:07:02 +00:00
|
|
|
ext {
|
2020-01-23 12:58:50 +00:00
|
|
|
abiVersionCode = 9
|
2018-07-30 02:07:02 +00:00
|
|
|
}
|
2017-03-30 23:58:05 +00:00
|
|
|
}
|
2016-03-16 12:26:32 +00:00
|
|
|
}
|
|
|
|
|
2021-04-09 13:17:32 +00:00
|
|
|
defaultConfig.versionCode = 2274
|
2019-05-14 12:08:05 +00:00
|
|
|
|
2016-03-16 12:26:32 +00:00
|
|
|
applicationVariants.all { variant ->
|
2017-12-08 17:35:59 +00:00
|
|
|
variant.outputs.all { output ->
|
2019-12-31 13:08:08 +00:00
|
|
|
outputFileName = "app.apk"
|
2020-10-30 10:26:29 +00:00
|
|
|
output.versionCodeOverride = defaultConfig.versionCode * 10 + variant.productFlavors.get(0).abiVersionCode
|
2017-12-08 17:35:59 +00:00
|
|
|
}
|
2016-03-16 12:26:32 +00:00
|
|
|
}
|
|
|
|
|
2019-03-03 20:40:48 +00:00
|
|
|
variantFilter { variant ->
|
|
|
|
def names = variant.flavors*.name
|
2019-05-14 12:08:05 +00:00
|
|
|
if (variant.buildType.name != "release" && !names.contains("afat")) {
|
2019-03-03 20:40:48 +00:00
|
|
|
setIgnore(true)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-10-25 15:19:00 +00:00
|
|
|
defaultConfig {
|
2017-07-23 13:43:02 +00:00
|
|
|
minSdkVersion 16
|
2020-12-23 07:48:30 +00:00
|
|
|
targetSdkVersion 29
|
2021-04-09 13:17:32 +00:00
|
|
|
versionName "7.6.1"
|
2018-07-30 02:07:02 +00:00
|
|
|
|
2019-05-14 12:08:05 +00:00
|
|
|
vectorDrawables.generatedDensities = ['mdpi', 'hdpi', 'xhdpi', 'xxhdpi']
|
2016-10-11 11:57:01 +00:00
|
|
|
|
|
|
|
externalNativeBuild {
|
2020-09-30 13:48:47 +00:00
|
|
|
cmake {
|
|
|
|
version '3.10.2'
|
|
|
|
arguments '-DANDROID_STL=c++_static', '-DANDROID_PLATFORM=android-16', "-j=16"
|
2016-10-11 11:57:01 +00:00
|
|
|
}
|
|
|
|
}
|
2013-10-25 15:19:00 +00:00
|
|
|
}
|
|
|
|
}
|
2016-04-22 13:49:00 +00:00
|
|
|
|
|
|
|
apply plugin: 'com.google.gms.google-services'
|