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