mirror of
https://github.com/DrKLO/Telegram.git
synced 2024-12-22 14:35:03 +01:00
270 lines
8 KiB
Groovy
270 lines
8 KiB
Groovy
apply plugin: 'com.android.application'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
google()
|
|
}
|
|
|
|
configurations {
|
|
compile.exclude module: 'support-v4'
|
|
}
|
|
|
|
configurations.all {
|
|
exclude group: 'com.google.firebase', module: 'firebase-core'
|
|
exclude group: 'androidx.recyclerview', module: 'recyclerview'
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'androidx.core:core:1.6.0'
|
|
implementation 'androidx.palette:palette:1.0.0'
|
|
implementation 'androidx.exifinterface:exifinterface:1.3.3'
|
|
implementation 'androidx.dynamicanimation:dynamicanimation:1.0.0'
|
|
implementation 'androidx.multidex:multidex:2.0.1'
|
|
implementation "androidx.sharetarget:sharetarget:1.1.0"
|
|
|
|
compileOnly 'org.checkerframework:checker-qual:2.5.2'
|
|
compileOnly 'org.checkerframework:checker-compat-qual:2.5.0'
|
|
implementation 'com.google.firebase:firebase-messaging:22.0.0'
|
|
implementation 'com.google.firebase:firebase-config:21.0.1'
|
|
implementation 'com.google.firebase:firebase-datatransport:18.1.0'
|
|
implementation 'com.google.firebase:firebase-appindexing:20.0.0'
|
|
implementation 'com.google.android.gms:play-services-maps:17.0.1'
|
|
implementation 'com.google.android.gms:play-services-auth:19.2.0'
|
|
implementation 'com.google.android.gms:play-services-vision:20.1.3'
|
|
implementation 'com.google.android.gms:play-services-wearable:17.1.0'
|
|
implementation 'com.google.android.gms:play-services-location:18.0.0'
|
|
implementation 'com.google.android.gms:play-services-wallet:18.1.3'
|
|
implementation 'com.googlecode.mp4parser:isoparser:1.0.6'
|
|
implementation 'com.stripe:stripe-android:2.0.2'
|
|
implementation 'com.google.mlkit:language-id:16.1.1'
|
|
implementation 'com.android.billingclient:billing:5.0.0'
|
|
implementation files('libs/libgsaverification-client.aar')
|
|
|
|
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion 31
|
|
buildToolsVersion '31.0.0'
|
|
ndkVersion "21.4.7075529"
|
|
|
|
defaultConfig.applicationId = "org.telegram.messenger"
|
|
|
|
sourceSets.main.jniLibs.srcDirs = ['./jni/']
|
|
|
|
externalNativeBuild {
|
|
cmake {
|
|
path 'jni/CMakeLists.txt'
|
|
}
|
|
}
|
|
|
|
lintOptions {
|
|
disable 'MissingTranslation'
|
|
disable 'ExtraTranslation'
|
|
disable 'BlockedPrivateApi'
|
|
}
|
|
|
|
dexOptions {
|
|
jumboMode = true
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
coreLibraryDesugaringEnabled true
|
|
}
|
|
|
|
signingConfigs {
|
|
debug {
|
|
storeFile file("config/release.keystore")
|
|
storePassword RELEASE_STORE_PASSWORD
|
|
keyAlias RELEASE_KEY_ALIAS
|
|
keyPassword RELEASE_KEY_PASSWORD
|
|
}
|
|
|
|
release {
|
|
storeFile file("config/release.keystore")
|
|
storePassword RELEASE_STORE_PASSWORD
|
|
keyAlias RELEASE_KEY_ALIAS
|
|
keyPassword RELEASE_KEY_PASSWORD
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
debug {
|
|
debuggable true
|
|
jniDebuggable true
|
|
signingConfig signingConfigs.debug
|
|
applicationIdSuffix ".beta"
|
|
minifyEnabled false
|
|
shrinkResources false
|
|
multiDexEnabled true
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
ndk.debugSymbolLevel = 'FULL'
|
|
}
|
|
|
|
/*debugAsan {
|
|
debuggable true
|
|
jniDebuggable true
|
|
signingConfig signingConfigs.debug
|
|
applicationIdSuffix ".beta"
|
|
minifyEnabled true
|
|
multiDexEnabled true
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
|
|
packagingOptions {
|
|
doNotStrip "**.so"
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
jniLibs {
|
|
srcDir {
|
|
'jniLibs'
|
|
}
|
|
}
|
|
resources {
|
|
srcDir {
|
|
'jniRes'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}*/
|
|
|
|
HA {
|
|
debuggable false
|
|
jniDebuggable false
|
|
signingConfig signingConfigs.debug
|
|
applicationIdSuffix ".beta"
|
|
minifyEnabled true
|
|
multiDexEnabled true
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
ndk.debugSymbolLevel = 'FULL'
|
|
}
|
|
|
|
standalone {
|
|
debuggable false
|
|
jniDebuggable false
|
|
signingConfig signingConfigs.release
|
|
applicationIdSuffix ".web"
|
|
minifyEnabled true
|
|
multiDexEnabled true
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), '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'), 'proguard-rules.pro'
|
|
ndk.debugSymbolLevel = 'FULL'
|
|
}
|
|
}
|
|
|
|
sourceSets.debug {
|
|
manifest.srcFile 'config/debug/AndroidManifest.xml'
|
|
}
|
|
|
|
/*sourceSets.debugAsan {
|
|
manifest.srcFile 'config/debug/AndroidManifest.xml'
|
|
}*/
|
|
|
|
sourceSets.HA {
|
|
manifest.srcFile 'config/debug/AndroidManifest.xml'
|
|
}
|
|
|
|
sourceSets.standalone {
|
|
manifest.srcFile 'config/release/AndroidManifest.xml'
|
|
}
|
|
|
|
sourceSets.release {
|
|
manifest.srcFile 'config/release/AndroidManifest.xml'
|
|
}
|
|
|
|
flavorDimensions "minApi"
|
|
|
|
productFlavors {
|
|
bundleAfat {
|
|
ndk {
|
|
abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
|
|
}
|
|
ext {
|
|
abiVersionCode = 1
|
|
}
|
|
}
|
|
bundleAfat_SDK23 {
|
|
ndk {
|
|
abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
|
|
}
|
|
sourceSets.debug {
|
|
manifest.srcFile 'config/debug/AndroidManifest_SDK23.xml'
|
|
}
|
|
sourceSets.release {
|
|
manifest.srcFile 'config/release/AndroidManifest_SDK23.xml'
|
|
}
|
|
sourceSets.standalone {
|
|
manifest.srcFile 'config/release/AndroidManifest_standalone.xml'
|
|
}
|
|
minSdkVersion 23
|
|
ext {
|
|
abiVersionCode = 2
|
|
}
|
|
}
|
|
afat {
|
|
ndk {
|
|
abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
|
|
}
|
|
sourceSets.debug {
|
|
manifest.srcFile 'config/debug/AndroidManifest_SDK23.xml'
|
|
}
|
|
sourceSets.release {
|
|
manifest.srcFile 'config/release/AndroidManifest_SDK23.xml'
|
|
}
|
|
sourceSets.standalone {
|
|
manifest.srcFile 'config/release/AndroidManifest_standalone.xml'
|
|
}
|
|
ext {
|
|
abiVersionCode = 9
|
|
}
|
|
}
|
|
}
|
|
|
|
defaultConfig.versionCode = 2721
|
|
|
|
applicationVariants.all { variant ->
|
|
variant.outputs.all { output ->
|
|
outputFileName = "app.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 16
|
|
targetSdkVersion 30
|
|
versionName "8.8.5"
|
|
|
|
vectorDrawables.generatedDensities = ['mdpi', 'hdpi', 'xhdpi', 'xxhdpi']
|
|
|
|
externalNativeBuild {
|
|
cmake {
|
|
version '3.10.2'
|
|
arguments '-DANDROID_STL=c++_static', '-DANDROID_PLATFORM=android-16', "-j=16"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
apply plugin: 'com.google.gms.google-services'
|