| 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.fragment:fragment:1.2.0' |
| 21 | implementation 'androidx.core:core:1.10.1' |
| 22 | implementation 'androidx.palette:palette:1.0.0' |
| 23 | implementation 'androidx.exifinterface:exifinterface:1.3.6' |
| 24 | implementation 'androidx.dynamicanimation:dynamicanimation:1.0.0' |
| 25 | implementation 'androidx.multidex:multidex:2.0.1' |
| 26 | implementation "androidx.sharetarget:sharetarget:1.2.0" |
| 27 | implementation 'androidx.interpolator:interpolator:1.0.0' |
| 28 |
| 29 | compileOnly 'org.checkerframework:checker-qual:2.5.2' |
| 30 | compileOnly 'org.checkerframework:checker-compat-qual:2.5.0' |
| 31 | implementation 'com.google.firebase:firebase-messaging:22.0.0' |
| 32 | implementation 'com.google.firebase:firebase-config:21.0.1' |
| 33 | implementation 'com.google.firebase:firebase-datatransport:18.1.0' |
| 34 | implementation 'com.google.firebase:firebase-appindexing:20.0.0' |
| 35 | implementation 'com.google.android.gms:play-services-maps:18.1.0' |
| 36 | implementation 'com.google.android.gms:play-services-auth:20.4.0' |
| 37 | implementation 'com.google.android.gms:play-services-vision:20.1.3' |
| 38 | implementation 'com.google.android.gms:play-services-wearable:18.0.0' |
| 39 | implementation 'com.google.android.gms:play-services-location:21.0.1' |
| 40 | implementation 'com.google.android.gms:play-services-wallet:19.1.0' |
| 41 | implementation 'com.google.android.gms:play-services-safetynet:18.0.1' |
| 42 | implementation 'com.googlecode.mp4parser:isoparser:1.0.6' |
| 43 | implementation 'com.stripe:stripe-android:2.0.2' |
| 44 | implementation 'com.google.mlkit:language-id:16.1.1' |
| 45 | implementation 'com.android.billingclient:billing:5.1.0' |
| 46 | implementation 'com.google.code.gson:gson:2.10' |
| 47 | implementation 'com.google.guava:guava:31.1-android' |
| 48 |
| 49 | implementation 'com.google.android.gms:play-services-mlkit-subject-segmentation:16.0.0-beta1' |
| 50 | constraints { |
| 51 | implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.0") { |
| 52 | because("kotlin-stdlib-jdk7 is now a part of kotlin-stdlib") |
| 53 | } |
| 54 | implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.0") { |
| 55 | because("kotlin-stdlib-jdk8 is now a part of kotlin-stdlib") |
| 56 | } |
| 57 | } |
| 58 |
| 59 | coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5' |
| 60 | } |
| 61 |
| 62 | def isWindows = String.valueOf(DefaultNativePlatform.currentOperatingSystem.toFamilyName() == OperatingSystemFamily.WINDOWS) |
| 63 | android { |
| 64 | compileSdkVersion 33 |
| 65 | buildToolsVersion '33.0.0' |
| 66 | ndkVersion "21.4.7075529" |
| 67 |
| 68 | sourceSets.main.jniLibs.srcDirs = ['./jni/'] |
| 69 |
| 70 | externalNativeBuild { |
| 71 | cmake { |
| 72 | path 'jni/CMakeLists.txt' |
| 73 | } |
| 74 | } |
| 75 |
| 76 | lintOptions { |
| 77 | disable 'MissingTranslation' |
| 78 | disable 'ExtraTranslation' |
| 79 | disable 'BlockedPrivateApi' |
| 80 | } |
| 81 |
| 82 | dexOptions { |
| 83 | jumboMode = true |
| 84 | } |
| 85 |
| 86 | compileOptions { |
| 87 | sourceCompatibility JavaVersion.VERSION_1_8 |
| 88 | targetCompatibility JavaVersion.VERSION_1_8 |
| 89 |
| 90 | coreLibraryDesugaringEnabled true |
| 91 | } |
| 92 |
| 93 | defaultConfig.versionCode = Integer.parseInt(APP_VERSION_CODE) |
| 94 |
| 95 | defaultConfig { |
| 96 | minSdkVersion 19 |
| 97 | targetSdkVersion 33 |
| 98 | versionName "8.9.0" |
| 99 |
| 100 | vectorDrawables.generatedDensities = ['mdpi', 'hdpi', 'xhdpi', 'xxhdpi'] |
| 101 |
| 102 | multiDexEnabled true |
| 103 |
| 104 | externalNativeBuild { |
| 105 | cmake { |
| 106 | version '3.10.2' |
| 107 | arguments '-DANDROID_STL=c++_static', '-DANDROID_PLATFORM=android-16', "-j=16" |
| 108 | } |
| 109 | } |
| 110 | } |
| 111 |
| 112 | buildTypes { |
| 113 | debug { |
| 114 | debuggable true |
| 115 | jniDebuggable true |
| 116 | minifyEnabled false |
| 117 | shrinkResources false |
| 118 | multiDexEnabled true |
| 119 | proguardFiles getDefaultProguardFile('proguard-android.txt'), '../TMessagesProj/proguard-rules.pro' |
| 120 | ndk.debugSymbolLevel = 'FULL' |
| 121 | buildConfigField "String", "BUILD_VERSION_STRING", "\"" + APP_VERSION_NAME + "\"" |
| 122 | buildConfigField "String", "APP_CENTER_HASH", "\"\"" |
| 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_private { |
| 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", "BUILD_VERSION_STRING", "\"" + APP_VERSION_NAME + "\"" |
| 136 | buildConfigField "String", "APP_CENTER_HASH", "\"" + getProps("APP_CENTER_HASH_PRIVATE") + "\"" |
| 137 | buildConfigField "boolean", "DEBUG_VERSION", "true" |
| 138 | buildConfigField "boolean", "DEBUG_PRIVATE_VERSION", "true" |
| 139 | buildConfigField "boolean", "BUILD_HOST_IS_WINDOWS", isWindows |
| 140 | } |
| 141 |
| 142 | HA_public { |
| 143 | debuggable false |
| 144 | jniDebuggable false |
| 145 | minifyEnabled true |
| 146 | multiDexEnabled true |
| 147 | proguardFiles getDefaultProguardFile('proguard-android.txt'), '../TMessagesProj/proguard-rules.pro' |
| 148 | ndk.debugSymbolLevel = 'FULL' |
| 149 | buildConfigField "String", "BUILD_VERSION_STRING", "\"" + APP_VERSION_NAME + "\"" |
| 150 | buildConfigField "String", "APP_CENTER_HASH", "\"" + getProps("APP_CENTER_HASH_PUBLIC") + "\"" |
| 151 | buildConfigField "boolean", "DEBUG_VERSION", "true" |
| 152 | buildConfigField "boolean", "DEBUG_PRIVATE_VERSION", "false" |
| 153 | buildConfigField "boolean", "BUILD_HOST_IS_WINDOWS", isWindows |
| 154 | } |
| 155 |
| 156 | HA_hardcore { |
| 157 | debuggable false |
| 158 | jniDebuggable false |
| 159 | minifyEnabled true |
| 160 | multiDexEnabled true |
| 161 | proguardFiles getDefaultProguardFile('proguard-android.txt'), '../TMessagesProj/proguard-rules.pro' |
| 162 | ndk.debugSymbolLevel = 'FULL' |
| 163 | buildConfigField "String", "BUILD_VERSION_STRING", "\"" + APP_VERSION_NAME + "\"" |
| 164 | buildConfigField "String", "APP_CENTER_HASH", "\"" + getProps("APP_CENTER_HASH_HARDCORE") + "\"" |
| 165 | buildConfigField "boolean", "DEBUG_VERSION", "true" |
| 166 | buildConfigField "boolean", "DEBUG_PRIVATE_VERSION", "true" |
| 167 | buildConfigField "boolean", "BUILD_HOST_IS_WINDOWS", isWindows |
| 168 | } |
| 169 |
| 170 | standalone { |
| 171 | debuggable false |
| 172 | jniDebuggable false |
| 173 | minifyEnabled true |
| 174 | multiDexEnabled true |
| 175 | proguardFiles getDefaultProguardFile('proguard-android.txt'), '../TMessagesProj/proguard-rules.pro' |
| 176 | ndk.debugSymbolLevel = 'FULL' |
| 177 | buildConfigField "String", "BUILD_VERSION_STRING", "\"" + APP_VERSION_NAME + "\"" |
| 178 | buildConfigField "String", "APP_CENTER_HASH", "\"\"" |
| 179 | buildConfigField "boolean", "DEBUG_VERSION", "false" |
| 180 | buildConfigField "boolean", "DEBUG_PRIVATE_VERSION", "false" |
| 181 | buildConfigField "boolean", "BUILD_HOST_IS_WINDOWS", isWindows |
| 182 | } |
| 183 |
| 184 | release { |
| 185 | debuggable false |
| 186 | jniDebuggable false |
| 187 | minifyEnabled true |
| 188 | shrinkResources false |
| 189 | multiDexEnabled true |
| 190 | proguardFiles getDefaultProguardFile('proguard-android.txt'), '../TMessagesProj/proguard-rules.pro' |
| 191 | ndk.debugSymbolLevel = 'FULL' |
| 192 | buildConfigField "String", "BUILD_VERSION_STRING", "\"" + APP_VERSION_NAME + "\"" |
| 193 | buildConfigField "String", "APP_CENTER_HASH", "\"\"" |
| 194 | buildConfigField "boolean", "DEBUG_VERSION", "false" |
| 195 | buildConfigField "boolean", "DEBUG_PRIVATE_VERSION", "false" |
| 196 | buildConfigField "boolean", "BUILD_HOST_IS_WINDOWS", isWindows |
| 197 | } |
| 198 | } |
| 199 | } |
| 200 |
| 201 |
| 202 | def getProps(String propName) { |
| 203 | def propsFile = rootProject.file('local.properties') |
| 204 | if (propsFile.exists()) { |
| 205 | def props = new Properties() |
| 206 | props.load(new FileInputStream(propsFile)) |
| 207 | return props[propName] |
| 208 | } else { |
| 209 | return ""; |
| 210 | } |
| 211 | } |
| 212 | apply plugin: 'com.google.gms.google-services' |
| 213 |