Skip to content

Commit 3409cb1

Browse files
committed
update to 11.0.0 (5143)
1 parent 5fa5549 commit 3409cb1

File tree

362 files changed

+36214
-7347
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

362 files changed

+36214
-7347
lines changed

TMessagesProj/build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,9 @@ dependencies {
4242
implementation 'com.googlecode.mp4parser:isoparser:1.0.6'
4343
implementation 'com.stripe:stripe-android:2.0.2'
4444
implementation 'com.google.mlkit:language-id:16.1.1'
45-
implementation 'com.android.billingclient:billing:5.1.0'
45+
implementation 'com.android.billingclient:billing:6.0.1'
4646
implementation 'com.google.code.gson:gson:2.10'
4747
implementation 'com.google.guava:guava:31.1-android'
48-
implementation 'com.airbnb.android:lottie:6.4.0'
4948
implementation 'com.google.android.play:integrity:1.3.0'
5049
implementation 'com.google.android.gms:play-services-safetynet:18.0.1'
5150

@@ -217,7 +216,9 @@ apply plugin: 'com.google.gms.google-services'
217216

218217
task checkVisibility {
219218
doFirst {
220-
def isPrivateBuild = project.gradle.startParameter.taskNames.find { it.contains("HA_private") }
219+
def isPrivateBuild = project.gradle.startParameter.taskNames.find {
220+
it.contains("HA_private") || it.contains("Debug") || it.contains("Release")
221+
}
221222
def isPublicAllowed = !project.hasProperty("IS_PRIVATE") || !project.property("IS_PRIVATE").toBoolean()
222223
if (!isPrivateBuild && !isPublicAllowed) {
223224
throw new GradleException("Building public version of private code!")

TMessagesProj/jni/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ elseif(${ANDROID_ABI} STREQUAL "arm64-v8a")
268268
rlottie/src/vector/pixman/pixman-arma64-neon-asm.S)
269269
endif()
270270

271+
271272
#flac
272273
add_library(flac STATIC
273274
exoplayer/libFLAC/bitmath.c
@@ -447,7 +448,8 @@ add_library(${NATIVE_LIB} SHARED
447448
exoplayer/ffmpeg_jni.cc
448449
fast-edge.cpp
449450
genann.c
450-
secureid_ocr.cpp)
451+
secureid_ocr.cpp
452+
)
451453

452454
target_compile_options(${NATIVE_LIB} PUBLIC
453455
-ffast-math -Os -funroll-loops -ffast-math -fno-strict-aliasing -fno-math-errno)
Binary file not shown.
19.4 KB
Binary file not shown.
Binary file not shown.
64 Bytes
Binary file not shown.
Binary file not shown.
64 Bytes
Binary file not shown.
16 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
64 Bytes
Binary file not shown.
Binary file not shown.
64 Bytes
Binary file not shown.
20 Bytes
Binary file not shown.
269 KB
Binary file not shown.
16.9 KB
Binary file not shown.
64 Bytes
Binary file not shown.
64 Bytes
Binary file not shown.
64 Bytes
Binary file not shown.
64 Bytes
Binary file not shown.

TMessagesProj/jni/ffmpeg/x86/libvpx.a

20 Bytes
Binary file not shown.
283 KB
Binary file not shown.
21.1 KB
Binary file not shown.
64 Bytes
Binary file not shown.
64 Bytes
Binary file not shown.
64 Bytes
Binary file not shown.
64 Bytes
Binary file not shown.
16 Bytes
Binary file not shown.

TMessagesProj/jni/tgnet/ApiScheme.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,9 @@ void TL_user::readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &er
528528
profile_color_color = stream->readInt32(&error);
529529
profile_color_background_emoji_id = stream->readInt64(&error);
530530
}
531+
if ((flags2 & 4096) != 0) {
532+
bot_active_users = stream->readInt32(&error);
533+
}
531534
}
532535

533536
void TL_user::serializeToStream(NativeByteBuffer *stream) {
@@ -605,6 +608,9 @@ void TL_user::serializeToStream(NativeByteBuffer *stream) {
605608
stream->writeInt32(profile_color_color);
606609
stream->writeInt32(profile_color_background_emoji_id);
607610
}
611+
if ((flags2 & 4096) != 0) {
612+
stream->writeInt32(bot_active_users);
613+
}
608614
}
609615

610616
InputPeer *InputPeer::TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error) {

TMessagesProj/jni/tgnet/ApiScheme.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@ class User : public TLObject {
388388
int64_t color_background_emoji_id;
389389
int32_t profile_color_color;
390390
int64_t profile_color_background_emoji_id;
391+
int32_t bot_active_users;
391392

392393
static User *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error);
393394
};
@@ -404,7 +405,7 @@ class TL_userEmpty : public User {
404405
class TL_user : public User {
405406

406407
public:
407-
static const uint32_t constructor = 0x215c4438;
408+
static const uint32_t constructor = 0x83314fca;
408409

409410
void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error);
410411
void serializeToStream(NativeByteBuffer *stream);

TMessagesProj/src/main/AndroidManifest.xml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,10 @@
102102
android:requestLegacyExternalStorage="true"
103103
android:preserveLegacyExternalStorage="true"
104104
android:allowAudioPlaybackCapture="true"
105-
tools:replace="android:supportsRtl">
105+
tools:replace="android:supportsRtl"
106+
android:usesCleartextTraffic="true"
107+
>
108+
<!-- usesCleartextTraffic for browser supporting opening http:// links -->
106109

107110
<activity-alias
108111
android:enabled="true"
@@ -255,6 +258,12 @@
255258
<data android:host="t.me" android:scheme="http" />
256259
<data android:host="t.me" android:scheme="https" />
257260
</intent-filter>
261+
<intent-filter android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" android:priority="1">
262+
<action android:name="android.intent.action.VIEW"/>
263+
<category android:name="android.intent.category.DEFAULT" />
264+
<category android:name="android.intent.category.BROWSABLE" />
265+
<data android:scheme="tonsite" />
266+
</intent-filter>
258267
<intent-filter android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" android:priority="1">
259268
<action android:name="android.intent.action.VIEW" />
260269
<category android:name="android.intent.category.BROWSABLE" />

TMessagesProj/src/main/assets/currencies.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

TMessagesProj/src/main/assets/darkblue.attheme

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,5 +441,8 @@ code_string=-7806088
441441
code_operator=2147483647
442442
code_number=-10887465
443443
code_comment=2147483647
444+
iv_background=-16777216
445+
iv_backgroundGray=-14737633
446+
iv_navigationBackground=-16777216
444447
table_background=177390847
445448
table_border=436207615
328 Bytes
Binary file not shown.

TMessagesProj/src/main/assets/night.attheme

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,5 +466,8 @@ code_string=-7806088
466466
code_operator=2147483647
467467
code_number=-10887465
468468
code_comment=2147483647
469+
iv_background=-16777216
470+
iv_backgroundGray=-14737633
471+
iv_navigationBackground=-16777216
469472
table_background=177390847
470473
table_border=436207615

TMessagesProj/src/main/assets/shaders/fragment4.glsl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ uniform sampler2D u_BackgroundTexture;
66
uniform float f_xOffset;
77
uniform float f_alpha;
88
uniform mat4 world;
9+
uniform float white;
910

1011
varying vec3 vNormal;
1112
varying vec2 vUV;
@@ -89,5 +90,5 @@ void main() {
8990
clamp(flecksSpec * abs(vNormal.z) * (flecksNormal.z), 0.2, 0.3) - .2
9091
);
9192

92-
gl_FragColor = color * f_alpha;
93+
gl_FragColor = mix(color * f_alpha, vec4(1.0), white);
9394
}

0 commit comments

Comments
 (0)