Telegram-Android/TMessagesProj_AppHockeyApp/build.gradle

188 lines
5.2 KiB
Groovy
Raw Permalink Normal View History

2022-09-21 16:20:30 +02:00
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 project(':TMessagesProj')
2024-03-31 21:10:51 +02:00
implementation 'androidx.fragment:fragment:1.2.0'
2022-09-21 16:20:30 +02:00
implementation 'androidx.multidex:multidex:2.0.1'
2023-09-22 16:40:36 +02:00
implementation 'androidx.core:core:1.10.1'
2022-09-21 16:20:30 +02:00
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
implementation files('../TMessagesProj/libs/libgsaverification-client.aar')
implementation "com.microsoft.appcenter:appcenter-distribute:3.3.1"
implementation "com.microsoft.appcenter:appcenter-crashes:3.3.1"
2023-07-20 22:15:36 +02:00
implementation "com.microsoft.appcenter:appcenter-analytics:3.3.1"
2022-09-21 16:20:30 +02:00
}
android {
2022-11-20 22:12:39 +01:00
compileSdkVersion 33
buildToolsVersion '33.0.0'
2022-09-21 16:20:30 +02:00
defaultConfig.applicationId = APP_PACKAGE
sourceSets.main.jniLibs.srcDirs = ['../TMessagesProj/jni/']
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("../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 {
HA_private {
2023-10-28 22:52:06 +02:00
debuggable false
jniDebuggable false
2022-09-21 16:20:30 +02:00
signingConfig signingConfigs.debug
applicationIdSuffix ".beta"
minifyEnabled true
multiDexEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), '../TMessagesProj/proguard-rules.pro'
ndk.debugSymbolLevel = 'FULL'
}
HA_public {
debuggable false
jniDebuggable false
signingConfig signingConfigs.debug
applicationIdSuffix ".beta"
minifyEnabled true
multiDexEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), '../TMessagesProj/proguard-rules.pro'
ndk.debugSymbolLevel = 'FULL'
}
2023-09-22 16:40:36 +02:00
HA_hardcore {
debuggable false
jniDebuggable false
signingConfig signingConfigs.debug
applicationIdSuffix ".beta"
minifyEnabled true
multiDexEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), '../TMessagesProj/proguard-rules.pro'
ndk.debugSymbolLevel = 'FULL'
}
2022-09-21 16:20:30 +02:00
}
sourceSets.HA_private {
manifest.srcFile '../TMessagesProj/config/debug/AndroidManifest.xml'
}
sourceSets.HA_public {
manifest.srcFile '../TMessagesProj/config/debug/AndroidManifest.xml'
}
2023-09-22 16:40:36 +02:00
sourceSets.HA_hardcore {
manifest.srcFile '../TMessagesProj/config/debug/AndroidManifest.xml'
}
2022-09-21 16:20:30 +02:00
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"
}
minSdkVersion 23
ext {
abiVersionCode = 2
}
}
afat {
ndk {
abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
}
ext {
abiVersionCode = 9
}
}
}
defaultConfig.versionCode = Integer.parseInt(APP_VERSION_CODE)
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 {
2022-11-20 22:12:39 +01:00
minSdkVersion 19
2023-08-15 00:42:46 +02:00
targetSdkVersion 33
2022-09-21 16:20:30 +02:00
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'