2022-11-05 13:34:47 +01:00
|
|
|
import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform
|
|
|
|
|
2022-08-12 17:23:51 +02:00
|
|
|
apply plugin: 'com.android.library'
|
2013-10-25 17:19:00 +02:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2018-07-30 04:07:02 +02:00
|
|
|
google()
|
2013-10-25 17:19:00 +02:00
|
|
|
}
|
|
|
|
|
2016-10-11 13:57:01 +02:00
|
|
|
configurations {
|
|
|
|
compile.exclude module: 'support-v4'
|
|
|
|
}
|
|
|
|
|
2019-05-14 14:08:05 +02:00
|
|
|
configurations.all {
|
|
|
|
exclude group: 'com.google.firebase', module: 'firebase-core'
|
2020-12-23 08:48:30 +01:00
|
|
|
exclude group: 'androidx.recyclerview', module: 'recyclerview'
|
2019-05-14 14:08:05 +02:00
|
|
|
}
|
|
|
|
|
2013-10-25 17:19:00 +02:00
|
|
|
dependencies {
|
2021-07-15 16:24:57 +02:00
|
|
|
implementation 'androidx.core:core:1.6.0'
|
2019-05-14 14:08:05 +02:00
|
|
|
implementation 'androidx.palette:palette:1.0.0'
|
2021-08-07 01:55:04 +02:00
|
|
|
implementation 'androidx.exifinterface:exifinterface:1.3.3'
|
2020-04-24 11:21:58 +02:00
|
|
|
implementation 'androidx.dynamicanimation:dynamicanimation:1.0.0'
|
2020-07-26 10:03:38 +02:00
|
|
|
implementation 'androidx.multidex:multidex:2.0.1'
|
2022-11-20 22:12:39 +01:00
|
|
|
implementation "androidx.sharetarget:sharetarget:1.2.0"
|
2019-05-14 14:08:05 +02:00
|
|
|
|
2019-01-23 18:03:33 +01:00
|
|
|
compileOnly 'org.checkerframework:checker-qual:2.5.2'
|
2018-08-27 10:33:11 +02:00
|
|
|
compileOnly 'org.checkerframework:checker-compat-qual:2.5.0'
|
2021-06-25 02:43:10 +02:00
|
|
|
implementation 'com.google.firebase:firebase-messaging:22.0.0'
|
2021-08-31 21:06:39 +02:00
|
|
|
implementation 'com.google.firebase:firebase-config:21.0.1'
|
2021-11-05 11:06:49 +01:00
|
|
|
implementation 'com.google.firebase:firebase-datatransport:18.1.0'
|
2021-06-25 02:43:10 +02:00
|
|
|
implementation 'com.google.firebase:firebase-appindexing:20.0.0'
|
2022-12-06 20:13:44 +01:00
|
|
|
implementation 'com.google.android.gms:play-services-maps:18.1.0'
|
|
|
|
implementation 'com.google.android.gms:play-services-auth:20.4.0'
|
2021-11-05 11:06:49 +01:00
|
|
|
implementation 'com.google.android.gms:play-services-vision:20.1.3'
|
2022-12-06 20:13:44 +01:00
|
|
|
implementation 'com.google.android.gms:play-services-wearable:18.0.0'
|
|
|
|
implementation 'com.google.android.gms:play-services-location:21.0.1'
|
|
|
|
implementation 'com.google.android.gms:play-services-wallet:19.1.0'
|
2023-02-03 20:11:36 +01:00
|
|
|
implementation 'com.google.android.gms:play-services-safetynet:18.0.1'
|
2018-08-27 10:33:11 +02:00
|
|
|
implementation 'com.googlecode.mp4parser:isoparser:1.0.6'
|
|
|
|
implementation 'com.stripe:stripe-android:2.0.2'
|
2021-12-30 11:52:40 +01:00
|
|
|
implementation 'com.google.mlkit:language-id:16.1.1'
|
2022-12-06 20:13:44 +01:00
|
|
|
implementation 'com.android.billingclient:billing:5.1.0'
|
2022-11-06 02:16:18 +01:00
|
|
|
implementation 'com.google.code.gson:gson:2.10'
|
2020-08-14 18:58:22 +02:00
|
|
|
|
2021-03-19 11:25:58 +01:00
|
|
|
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
|
2013-10-25 17:19:00 +02:00
|
|
|
}
|
|
|
|
|
2022-11-05 13:34:47 +01:00
|
|
|
def isWindows = String.valueOf(DefaultNativePlatform.currentOperatingSystem.toFamilyName() == OperatingSystemFamily.WINDOWS)
|
2013-10-25 17:19:00 +02:00
|
|
|
android {
|
2021-07-19 17:56:43 +02:00
|
|
|
compileSdkVersion 31
|
|
|
|
buildToolsVersion '31.0.0'
|
2021-06-25 02:43:10 +02:00
|
|
|
ndkVersion "21.4.7075529"
|
2017-12-08 18:35:59 +01:00
|
|
|
|
2016-10-11 13:57:01 +02:00
|
|
|
sourceSets.main.jniLibs.srcDirs = ['./jni/']
|
|
|
|
|
|
|
|
externalNativeBuild {
|
2020-09-30 15:48:47 +02:00
|
|
|
cmake {
|
|
|
|
path 'jni/CMakeLists.txt'
|
2016-10-11 13:57:01 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-30 04:07:02 +02:00
|
|
|
lintOptions {
|
|
|
|
disable 'MissingTranslation'
|
|
|
|
disable 'ExtraTranslation'
|
2019-09-10 12:56:11 +02:00
|
|
|
disable 'BlockedPrivateApi'
|
2018-07-30 04:07:02 +02:00
|
|
|
}
|
|
|
|
|
2017-03-31 01:58:05 +02:00
|
|
|
dexOptions {
|
|
|
|
jumboMode = true
|
|
|
|
}
|
|
|
|
|
2015-01-02 23:15:07 +01:00
|
|
|
compileOptions {
|
2018-08-27 10:33:11 +02:00
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
2020-08-14 18:58:22 +02:00
|
|
|
|
|
|
|
coreLibraryDesugaringEnabled true
|
2015-01-02 23:15:07 +01:00
|
|
|
}
|
2014-03-22 23:31:55 +01:00
|
|
|
|
2022-09-18 19:02:37 +02:00
|
|
|
defaultConfig.versionCode = Integer.parseInt(APP_VERSION_CODE)
|
2013-12-20 20:25:49 +01:00
|
|
|
|
2022-08-12 17:23:51 +02:00
|
|
|
defaultConfig {
|
2022-11-20 22:12:39 +01:00
|
|
|
minSdkVersion 19
|
|
|
|
targetSdkVersion 31
|
2022-08-12 17:23:51 +02:00
|
|
|
versionName "8.9.0"
|
|
|
|
|
|
|
|
vectorDrawables.generatedDensities = ['mdpi', 'hdpi', 'xhdpi', 'xxhdpi']
|
|
|
|
|
|
|
|
multiDexEnabled true
|
|
|
|
|
|
|
|
externalNativeBuild {
|
|
|
|
cmake {
|
|
|
|
version '3.10.2'
|
|
|
|
arguments '-DANDROID_STL=c++_static', '-DANDROID_PLATFORM=android-16', "-j=16"
|
|
|
|
}
|
2013-12-20 20:25:49 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
debug {
|
|
|
|
debuggable true
|
2014-11-10 12:05:22 +01:00
|
|
|
jniDebuggable true
|
2020-12-23 08:48:30 +01:00
|
|
|
minifyEnabled false
|
|
|
|
shrinkResources false
|
2020-04-24 11:21:58 +02:00
|
|
|
multiDexEnabled true
|
2022-08-12 17:23:51 +02:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), '../TMessagesProj/proguard-rules.pro'
|
2020-12-23 08:48:30 +01:00
|
|
|
ndk.debugSymbolLevel = 'FULL'
|
2022-09-21 16:20:30 +02:00
|
|
|
buildConfigField "String", "APP_CENTER_HASH", "\"\""
|
|
|
|
buildConfigField "boolean", "DEBUG_VERSION", "true"
|
2022-11-05 13:34:47 +01:00
|
|
|
buildConfigField "boolean", "DEBUG_PRIVATE_VERSION", "true"
|
|
|
|
buildConfigField "boolean", "BUILD_HOST_IS_WINDOWS", isWindows
|
2013-12-20 20:25:49 +01:00
|
|
|
}
|
|
|
|
|
2022-09-21 16:20:30 +02:00
|
|
|
HA_private {
|
2019-01-23 18:03:33 +01:00
|
|
|
debuggable false
|
|
|
|
jniDebuggable false
|
|
|
|
minifyEnabled true
|
2020-04-24 11:21:58 +02:00
|
|
|
multiDexEnabled true
|
2022-08-12 17:23:51 +02:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), '../TMessagesProj/proguard-rules.pro'
|
2020-12-23 08:48:30 +01:00
|
|
|
ndk.debugSymbolLevel = 'FULL'
|
2022-09-21 16:20:30 +02:00
|
|
|
buildConfigField "String", "APP_CENTER_HASH", "\"" + getProps("APP_CENTER_HASH_PRIVATE") + "\""
|
|
|
|
buildConfigField "boolean", "DEBUG_VERSION", "true"
|
|
|
|
buildConfigField "boolean", "DEBUG_PRIVATE_VERSION", "true"
|
2022-11-05 13:34:47 +01:00
|
|
|
buildConfigField "boolean", "BUILD_HOST_IS_WINDOWS", isWindows
|
2022-09-21 16:20:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
HA_public {
|
|
|
|
debuggable false
|
|
|
|
jniDebuggable false
|
|
|
|
minifyEnabled true
|
|
|
|
multiDexEnabled true
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), '../TMessagesProj/proguard-rules.pro'
|
|
|
|
ndk.debugSymbolLevel = 'FULL'
|
|
|
|
buildConfigField "String", "APP_CENTER_HASH", "\"" + getProps("APP_CENTER_HASH_PUBLIC") + "\""
|
|
|
|
buildConfigField "boolean", "DEBUG_VERSION", "true"
|
|
|
|
buildConfigField "boolean", "DEBUG_PRIVATE_VERSION", "false"
|
2022-11-05 13:34:47 +01:00
|
|
|
buildConfigField "boolean", "BUILD_HOST_IS_WINDOWS", isWindows
|
2019-01-23 18:03:33 +01:00
|
|
|
}
|
|
|
|
|
2021-04-14 03:44:46 +02:00
|
|
|
standalone {
|
|
|
|
debuggable false
|
|
|
|
jniDebuggable false
|
|
|
|
minifyEnabled true
|
|
|
|
multiDexEnabled true
|
2022-08-12 17:23:51 +02:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), '../TMessagesProj/proguard-rules.pro'
|
2021-04-14 03:44:46 +02:00
|
|
|
ndk.debugSymbolLevel = 'FULL'
|
2022-09-21 16:20:30 +02:00
|
|
|
buildConfigField "String", "APP_CENTER_HASH", "\"\""
|
|
|
|
buildConfigField "boolean", "DEBUG_VERSION", "false"
|
|
|
|
buildConfigField "boolean", "DEBUG_PRIVATE_VERSION", "false"
|
2022-11-05 13:34:47 +01:00
|
|
|
buildConfigField "boolean", "BUILD_HOST_IS_WINDOWS", isWindows
|
2021-04-14 03:44:46 +02:00
|
|
|
}
|
|
|
|
|
2013-12-20 20:25:49 +01:00
|
|
|
release {
|
|
|
|
debuggable false
|
2014-11-10 12:05:22 +01:00
|
|
|
jniDebuggable false
|
2018-07-30 04:07:02 +02:00
|
|
|
minifyEnabled true
|
2017-03-31 01:58:05 +02:00
|
|
|
shrinkResources false
|
2020-04-24 11:21:58 +02:00
|
|
|
multiDexEnabled true
|
2022-08-12 17:23:51 +02:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), '../TMessagesProj/proguard-rules.pro'
|
2020-12-23 08:48:30 +01:00
|
|
|
ndk.debugSymbolLevel = 'FULL'
|
2022-09-21 16:20:30 +02:00
|
|
|
buildConfigField "String", "APP_CENTER_HASH", "\"\""
|
|
|
|
buildConfigField "boolean", "DEBUG_VERSION", "false"
|
|
|
|
buildConfigField "boolean", "DEBUG_PRIVATE_VERSION", "false"
|
2022-11-05 13:34:47 +01:00
|
|
|
buildConfigField "boolean", "BUILD_HOST_IS_WINDOWS", isWindows
|
2013-12-20 20:25:49 +01:00
|
|
|
}
|
2014-03-22 23:31:55 +01:00
|
|
|
}
|
2013-10-25 17:19:00 +02:00
|
|
|
}
|
2016-04-22 15:49:00 +02:00
|
|
|
|
2022-09-21 16:20:30 +02:00
|
|
|
|
|
|
|
def getProps(String propName) {
|
|
|
|
def propsFile = rootProject.file('local.properties')
|
|
|
|
if (propsFile.exists()) {
|
|
|
|
def props = new Properties()
|
|
|
|
props.load(new FileInputStream(propsFile))
|
|
|
|
return props[propName]
|
|
|
|
} else {
|
|
|
|
return "";
|
|
|
|
}
|
|
|
|
}
|
2016-04-22 15:49:00 +02:00
|
|
|
apply plugin: 'com.google.gms.google-services'
|