| 7 |
| 8 | configurations { |
| 9 | compile.exclude module: 'support-v4' |
| 10 | } |
| 11 |
| 12 | configurations.all { |
| 13 | exclude group: 'com.google.firebase', module: 'firebase-core' |
| 14 | exclude group: 'androidx.recyclerview', module: 'recyclerview' |
| 15 | } |
| 16 |
| 17 | dependencies { |
| 18 | implementation project(':TMessagesProj') |
| 19 | implementation 'androidx.fragment:fragment:1.2.0' |
| 20 | implementation 'androidx.multidex:multidex:2.0.1' |
| 21 | implementation 'androidx.core:core:1.10.1' |
| 22 | coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5' |
| 23 | implementation files('../TMessagesProj/libs/libgsaverification-client.aar') |
| 24 | } |
| 25 |
| 26 | android { |
| 27 | compileSdkVersion 34 |
| 28 | buildToolsVersion '34.0.0' |
| 29 |
| 30 | defaultConfig.applicationId = APP_PACKAGE |
| 31 |
| 32 | sourceSets.main.jniLibs.srcDirs = ['../TMessagesProj/jni/'] |
| 33 |
| 34 | lintOptions { |
| 35 | disable 'MissingTranslation' |
| 36 | disable 'ExtraTranslation' |
| 37 | disable 'BlockedPrivateApi' |
| 38 | } |
| 39 |
| 40 | dexOptions { |
| 41 | jumboMode = true |
| 42 | } |
| 43 |
| 44 | compileOptions { |
| 45 | sourceCompatibility JavaVersion.VERSION_1_8 |
| 46 | targetCompatibility JavaVersion.VERSION_1_8 |
| 47 |
| 48 | coreLibraryDesugaringEnabled true |
| 49 | } |
| 50 |
| 51 | signingConfigs { |
| 52 | debug { |
| 53 | storeFile file("../TMessagesProj/config/release.keystore") |
| 54 | storePassword RELEASE_STORE_PASSWORD |
| 55 | keyAlias RELEASE_KEY_ALIAS |
| 56 | keyPassword RELEASE_KEY_PASSWORD |
| 57 | } |
| 58 |
| 59 | release { |
| 60 | storeFile file("../TMessagesProj/config/release.keystore") |
| 61 | storePassword RELEASE_STORE_PASSWORD |
| 62 | keyAlias RELEASE_KEY_ALIAS |
| 63 | keyPassword RELEASE_KEY_PASSWORD |
| 64 | } |
| 65 | } |
| 66 |
| 67 | buildTypes { |
| 68 | debug { |
| 69 | debuggable true |
| 70 | jniDebuggable true |
| 71 | signingConfig signingConfigs.debug |
| 72 | applicationIdSuffix ".web" |
| 73 | minifyEnabled false |
| 74 | multiDexEnabled true |
| 75 | proguardFiles getDefaultProguardFile('proguard-android.txt'), '../TMessagesProj/proguard-rules.pro', '../TMessagesProj/proguard-rules-beta.pro' |
| 76 | ndk.debugSymbolLevel = 'FULL' |
| 77 | } |
| 78 | standalone { |
| 79 | debuggable false |
| 80 | jniDebuggable false |
| 81 | signingConfig signingConfigs.release |
| 82 | applicationIdSuffix ".web" |
| 83 | minifyEnabled true |
| 84 | multiDexEnabled true |
| 85 | proguardFiles getDefaultProguardFile('proguard-android.txt'), '../TMessagesProj/proguard-rules.pro' |
| 86 | ndk.debugSymbolLevel = 'FULL' |
| 87 | } |
| 88 | } |
| 89 |
| 90 | sourceSets.debug { |
| 91 | manifest.srcFile '../TMessagesProj/config/release/AndroidManifest_standalone.xml' |
| 92 | } |
| 93 | sourceSets.standalone { |
| 94 | manifest.srcFile '../TMessagesProj/config/release/AndroidManifest_standalone.xml' |
| 95 | } |
| 96 |
| 97 | flavorDimensions "minApi" |
| 98 |
| 99 | productFlavors { |
| 100 | afat { |
| 101 | ndk { |
| 102 | abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64" |
| 103 | } |
| 104 | ext { |
| 105 | abiVersionCode = 9 |
| 106 | } |
| 107 | sourceSets.standalone { |
| 108 | manifest.srcFile '../TMessagesProj/config/release/AndroidManifest_standalone.xml' |
| 109 | } |
| 110 | } |
| 111 | } |
| 112 |
| 113 | defaultConfig.versionCode = Integer.parseInt(APP_VERSION_CODE) |
| 114 |
| 115 | applicationVariants.all { variant -> |
| 116 | variant.outputs.all { output -> |
| 117 | outputFileName = "app.apk" |
| 118 | output.versionCodeOverride = defaultConfig.versionCode * 10 + variant.productFlavors.get(0).abiVersionCode |
| 119 | } |
| 120 | } |
| 121 |
| 122 | variantFilter { variant -> |
| 123 | def names = variant.flavors*.name |
| 124 | if (variant.buildType.name != "release" && !names.contains("afat")) { |
| 125 | setIgnore(true) |
| 126 | } |
| 127 | } |
| 128 |
| 129 | defaultConfig { |
| 130 | minSdkVersion 19 |
| 131 | targetSdkVersion 34 |
| 132 | versionName APP_VERSION_NAME |
| 133 | ndkVersion "21.4.7075529" |
| 134 |
| 135 | multiDexEnabled true |
| 136 |
| 137 | vectorDrawables.generatedDensities = ['mdpi', 'hdpi', 'xhdpi', 'xxhdpi'] |
| 138 |
| 139 | externalNativeBuild { |
| 140 | cmake { |
| 141 | version '3.10.2' |
| 142 | arguments '-DANDROID_STL=c++_static', '-DANDROID_PLATFORM=android-16' |
| 143 | } |
| 144 | } |
| 145 | } |
| 146 |
| 147 | buildFeatures { |
| 148 | buildConfig = true |
| 149 | } |
| 150 | namespace 'org.telegram.messenger.web' |
| 151 |
| 152 | lintOptions { |
| 153 | checkReleaseBuilds false |
| 154 | } |
| 155 | } |
| 156 |
| 157 | apply plugin: 'com.google.gms.google-services' |
| 158 |