| 7 |
| google() |
| 8 | } |
| 9 |
| 10 | configurations { |
| 11 | compile.exclude module: 'support-v4' |
| 12 | } |
| 13 |
| 14 | configurations.all { |
| 15 | exclude group: 'com.google.firebase', module: 'firebase-core' |
| 16 | exclude group: 'androidx.recyclerview', module: 'recyclerview' |
| 17 | } |
| 18 |
| 19 | dependencies { |
| 20 | implementation 'androidx.core:core:1.9.0' |
| 21 | implementation 'androidx.palette:palette:1.0.0' |
| 22 | implementation 'androidx.exifinterface:exifinterface:1.3.3' |
| 23 | implementation 'androidx.dynamicanimation:dynamicanimation:1.0.0' |
| 24 | implementation 'androidx.multidex:multidex:2.0.1' |
| 25 | implementation "androidx.sharetarget:sharetarget:1.2.0" |
| 26 |
| 27 | compileOnly 'org.checkerframework:checker-qual:2.5.2' |
| 28 | compileOnly 'org.checkerframework:checker-compat-qual:2.5.0' |
| 29 | implementation 'com.google.firebase:firebase-messaging:22.0.0' |
| 30 | implementation 'com.google.firebase:firebase-config:21.0.1' |
| 31 | implementation 'com.google.firebase:firebase-datatransport:18.1.0' |
| 32 | implementation 'com.google.firebase:firebase-appindexing:20.0.0' |
| 33 | implementation 'com.google.android.gms:play-services-maps:18.1.0' |
| 34 | implementation 'com.google.android.gms:play-services-auth:20.4.0' |
| 35 | implementation 'com.google.android.gms:play-services-vision:20.1.3' |
| 36 | implementation 'com.google.android.gms:play-services-wearable:18.0.0' |
| 37 | implementation 'com.google.android.gms:play-services-location:21.0.1' |
| 38 | implementation 'com.google.android.gms:play-services-wallet:19.1.0' |
| 39 | implementation 'com.google.android.gms:play-services-safetynet:18.0.1' |
| 40 | implementation 'com.googlecode.mp4parser:isoparser:1.0.6' |
| 41 | implementation 'com.stripe:stripe-android:2.0.2' |
| 42 | implementation 'com.google.mlkit:language-id:16.1.1' |
| 43 | implementation 'com.android.billingclient:billing:5.1.0' |
| 44 | implementation 'com.google.code.gson:gson:2.10' |
| 45 | implementation 'com.google.guava:guava:31.1-android' |
| 46 |
| 47 | coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5' |
| 48 | } |
| 49 |
| 50 | def isWindows = String.valueOf(DefaultNativePlatform.currentOperatingSystem.toFamilyName() == OperatingSystemFamily.WINDOWS) |
| 51 | android { |
| 52 | compileSdkVersion 33 |
| 53 | buildToolsVersion '33.0.0' |
| 54 | ndkVersion "21.4.7075529" |
| 55 |
| 56 | sourceSets.main.jniLibs.srcDirs = ['./jni/'] |
| 57 |
| 58 | externalNativeBuild { |
| 59 | cmake { |
| 60 | path 'jni/CMakeLists.txt' |
| 61 | } |
| 62 | } |
| 63 |
| 64 | lintOptions { |
| 65 | disable 'MissingTranslation' |
| 66 | disable 'ExtraTranslation' |
| 67 | disable 'BlockedPrivateApi' |
| 68 | } |
| 69 |
| 70 | dexOptions { |
| 71 | jumboMode = true |
| 72 | } |
| 73 |
| 74 | compileOptions { |
| 75 | sourceCompatibility JavaVersion.VERSION_1_8 |
| 76 | targetCompatibility JavaVersion.VERSION_1_8 |
| 77 |
| 78 | coreLibraryDesugaringEnabled true |
| 79 | } |
| 80 |
| 81 | defaultConfig.versionCode = Integer.parseInt(APP_VERSION_CODE) |
| 82 |
| 83 | defaultConfig { |
| 84 | minSdkVersion 19 |
| 85 | targetSdkVersion 31 |
| 86 | versionName "8.9.0" |
| 87 |
| 88 | vectorDrawables.generatedDensities = ['mdpi', 'hdpi', 'xhdpi', 'xxhdpi'] |
| 89 |
| 90 | multiDexEnabled true |
| 91 |
| 92 | externalNativeBuild { |
| 93 | cmake { |
| 94 | version '3.10.2' |
| 95 | arguments '-DANDROID_STL=c++_static', '-DANDROID_PLATFORM=android-16', "-j=16" |
| 96 | } |
| 97 | } |
| 98 | } |
| 99 |
| 100 | buildTypes { |
| 101 | debug { |
| 102 | debuggable true |
| 103 | jniDebuggable true |
| 104 | minifyEnabled false |
| 105 | shrinkResources false |
| 106 | multiDexEnabled true |
| 107 | proguardFiles getDefaultProguardFile('proguard-android.txt'), '../TMessagesProj/proguard-rules.pro' |
| 108 | ndk.debugSymbolLevel = 'FULL' |
| 109 | buildConfigField "String", "APP_CENTER_HASH", "\"\"" |
| 110 | buildConfigField "boolean", "DEBUG_VERSION", "true" |
| 111 | buildConfigField "boolean", "DEBUG_PRIVATE_VERSION", "true" |
| 112 | buildConfigField "boolean", "BUILD_HOST_IS_WINDOWS", isWindows |
| 113 | } |
| 114 |
| 115 | HA_private { |
| 116 | debuggable false |
| 117 | jniDebuggable false |
| 118 | minifyEnabled true |
| 119 | multiDexEnabled true |
| 120 | proguardFiles getDefaultProguardFile('proguard-android.txt'), '../TMessagesProj/proguard-rules.pro' |
| 121 | ndk.debugSymbolLevel = 'FULL' |
| 122 | buildConfigField "String", "APP_CENTER_HASH", "\"" + getProps("APP_CENTER_HASH_PRIVATE") + "\"" |
| 123 | buildConfigField "boolean", "DEBUG_VERSION", "true" |
| 124 | buildConfigField "boolean", "DEBUG_PRIVATE_VERSION", "true" |
| 125 | buildConfigField "boolean", "BUILD_HOST_IS_WINDOWS", isWindows |
| 126 | } |
| 127 |
| 128 | HA_public { |
| 129 | debuggable false |
| 130 | jniDebuggable false |
| 131 | minifyEnabled true |
| 132 | multiDexEnabled true |
| 133 | proguardFiles getDefaultProguardFile('proguard-android.txt'), '../TMessagesProj/proguard-rules.pro' |
| 134 | ndk.debugSymbolLevel = 'FULL' |
| 135 | buildConfigField "String", "APP_CENTER_HASH", "\"" + getProps("APP_CENTER_HASH_PUBLIC") + "\"" |
| 136 | buildConfigField "boolean", "DEBUG_VERSION", "true" |
| 137 | buildConfigField "boolean", "DEBUG_PRIVATE_VERSION", "false" |
| 138 | buildConfigField "boolean", "BUILD_HOST_IS_WINDOWS", isWindows |
| 139 | } |
| 140 |
| 141 | standalone { |
| 142 | debuggable false |
| 143 | jniDebuggable false |
| 144 | minifyEnabled true |
| 145 | multiDexEnabled true |
| 146 | proguardFiles getDefaultProguardFile('proguard-android.txt'), '../TMessagesProj/proguard-rules.pro' |
| 147 | ndk.debugSymbolLevel = 'FULL' |
| 148 | buildConfigField "String", "APP_CENTER_HASH", "\"\"" |
| 149 | buildConfigField "boolean", "DEBUG_VERSION", "false" |
| 150 | buildConfigField "boolean", "DEBUG_PRIVATE_VERSION", "false" |
| 151 | buildConfigField "boolean", "BUILD_HOST_IS_WINDOWS", isWindows |
| 152 | } |
| 153 |
| 154 | release { |
| 155 | debuggable false |
| 156 | jniDebuggable false |
| 157 | minifyEnabled true |
| 158 | shrinkResources false |
| 159 | multiDexEnabled true |
| 160 | proguardFiles getDefaultProguardFile('proguard-android.txt'), '../TMessagesProj/proguard-rules.pro' |
| 161 | ndk.debugSymbolLevel = 'FULL' |
| 162 | buildConfigField "String", "APP_CENTER_HASH", "\"\"" |
| 163 | buildConfigField "boolean", "DEBUG_VERSION", "false" |
| 164 | buildConfigField "boolean", "DEBUG_PRIVATE_VERSION", "false" |
| 165 | buildConfigField "boolean", "BUILD_HOST_IS_WINDOWS", isWindows |
| 166 | } |
| 167 | } |
| 168 | } |
| 169 |
| 170 |
| 171 | def getProps(String propName) { |
| 172 | def propsFile = rootProject.file('local.properties') |
| 173 | if (propsFile.exists()) { |
| 174 | def props = new Properties() |
| 175 | props.load(new FileInputStream(propsFile)) |
| 176 | return props[propName] |
| 177 | } else { |
| 178 | return ""; |
| 179 | } |
| 180 | } |
| 181 | apply plugin: 'com.google.gms.google-services' |
| 182 |