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