| 7 |
| } |
| 8 |
| 9 | configurations { |
| 10 | compile.exclude module: 'support-v4' |
| 11 | } |
| 12 |
| 13 | configurations.all { |
| 14 | exclude group: 'com.google.firebase', module: 'firebase-core' |
| 15 | exclude group: 'androidx.recyclerview', module: 'recyclerview' |
| 16 | } |
| 17 |
| 18 | dependencies { |
| 19 | implementation project(':TMessagesProj') |
| 20 | implementation 'androidx.fragment:fragment:1.8.9' |
| 21 | implementation 'androidx.core:core:1.16.0' |
| 22 | coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.1.5' |
| 23 | implementation files('../TMessagesProj/libs/libgsaverification-client.aar') |
| 24 | } |
| 25 |
| 26 | android { |
| 27 | compileSdkVersion 36 |
| 28 | buildToolsVersion '36.0.0' |
| 29 |
| 30 | defaultConfig.applicationId = APP_PACKAGE |
| 31 |
| 32 |
| 33 | lintOptions { |
| 34 | disable 'MissingTranslation' |
| 35 | disable 'ExtraTranslation' |
| 36 | disable 'BlockedPrivateApi' |
| 37 | } |
| 38 |
| 39 | compileOptions { |
| 40 | sourceCompatibility JavaVersion.VERSION_1_8 |
| 41 | targetCompatibility JavaVersion.VERSION_1_8 |
| 42 |
| 43 | coreLibraryDesugaringEnabled true |
| 44 | } |
| 45 |
| 46 | androidResources { |
| 47 | noCompress += "pack" |
| 48 | localeFilters += ["zz"] |
| 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 | packagingOptions { |
| 68 | jniLibs { |
| 69 | useLegacyPackaging = true |
| 70 | } |
| 71 | } |
| 72 |
| 73 | buildTypes { |
| 74 | debug { |
| 75 | debuggable true |
| 76 | jniDebuggable true |
| 77 | signingConfig signingConfigs.debug |
| 78 | applicationIdSuffix ".web" |
| 79 | minifyEnabled false |
| 80 | multiDexEnabled true |
| 81 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), '../TMessagesProj/proguard-rules.pro' |
| 82 | ndk.debugSymbolLevel = 'FULL' |
| 83 | } |
| 84 | standalone { |
| 85 | matchingFallbacks = ['release'] |
| 86 | debuggable false |
| 87 | jniDebuggable false |
| 88 | signingConfig signingConfigs.release |
| 89 | applicationIdSuffix ".web" |
| 90 | minifyEnabled true |
| 91 | shrinkResources true |
| 92 | multiDexEnabled true |
| 93 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), '../TMessagesProj/proguard-rules.pro' |
| 94 | ndk.debugSymbolLevel = 'FULL' |
| 95 | } |
| 96 | } |
| 97 |
| 98 | sourceSets.debug { |
| 99 | manifest.srcFile '../TMessagesProj/config/release/AndroidManifest_standalone.xml' |
| 100 | } |
| 101 | sourceSets.standalone { |
| 102 | manifest.srcFile '../TMessagesProj/config/release/AndroidManifest_standalone.xml' |
| 103 | } |
| 104 |
| 105 | flavorDimensions "minApi" |
| 106 |
| 107 | productFlavors { |
| 108 | afat { |
| 109 | ndk { |
| 110 | abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64" |
| 111 | } |
| 112 | ext { |
| 113 | abiVersionCode = 9 |
| 114 | } |
| 115 | sourceSets.standalone { |
| 116 | manifest.srcFile '../TMessagesProj/config/release/AndroidManifest_standalone.xml' |
| 117 | } |
| 118 | } |
| 119 | } |
| 120 |
| 121 | defaultConfig.versionCode = Integer.parseInt(APP_VERSION_CODE) |
| 122 |
| 123 | applicationVariants.all { variant -> |
| 124 | variant.outputs.all { output -> |
| 125 | outputFileName = "app.apk" |
| 126 | output.versionCodeOverride = defaultConfig.versionCode * 10 + variant.productFlavors.get(0).abiVersionCode |
| 127 | } |
| 128 | } |
| 129 |
| 130 | variantFilter { variant -> |
| 131 | def names = variant.flavors*.name |
| 132 | if (variant.buildType.name != "release" && !names.contains("afat")) { |
| 133 | setIgnore(true) |
| 134 | } |
| 135 | } |
| 136 |
| 137 | defaultConfig { |
| 138 | minSdkVersion 23 |
| 139 | targetSdkVersion 36 |
| 140 | versionName APP_VERSION_NAME |
| 141 | ndkVersion "27.2.12479018" |
| 142 |
| 143 | multiDexEnabled true |
| 144 |
| 145 | vectorDrawables.generatedDensities = ['mdpi', 'hdpi', 'xhdpi', 'xxhdpi'] |
| 146 |
| 147 | externalNativeBuild { |
| 148 | cmake { |
| 149 | version '3.22.1' |
| 150 | arguments '-DANDROID_STL=c++_static', '-DANDROID_PLATFORM=android-23' //, '-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON' |
| 151 | targets 'tmessages.49' |
| 152 | } |
| 153 | } |
| 154 | } |
| 155 |
| 156 | buildFeatures { |
| 157 | buildConfig = true |
| 158 | } |
| 159 | namespace 'org.telegram.messenger.web' |
| 160 |
| 161 | lintOptions { |
| 162 | checkReleaseBuilds false |
| 163 | } |
| 164 | } |
| 165 |
| 166 | apply plugin: 'com.google.gms.google-services' |
| 167 |