Skip to content

Commit

Permalink
update to 11.0.0 (5143)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkaraush committed Aug 14, 2024
1 parent 5fa5549 commit 3409cb1
Show file tree
Hide file tree
Showing 362 changed files with 36,214 additions and 7,347 deletions.
7 changes: 4 additions & 3 deletions TMessagesProj/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,9 @@ dependencies {
implementation 'com.googlecode.mp4parser:isoparser:1.0.6'
implementation 'com.stripe:stripe-android:2.0.2'
implementation 'com.google.mlkit:language-id:16.1.1'
implementation 'com.android.billingclient:billing:5.1.0'
implementation 'com.android.billingclient:billing:6.0.1'
implementation 'com.google.code.gson:gson:2.10'
implementation 'com.google.guava:guava:31.1-android'
implementation 'com.airbnb.android:lottie:6.4.0'
implementation 'com.google.android.play:integrity:1.3.0'
implementation 'com.google.android.gms:play-services-safetynet:18.0.1'

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

task checkVisibility {
doFirst {
def isPrivateBuild = project.gradle.startParameter.taskNames.find { it.contains("HA_private") }
def isPrivateBuild = project.gradle.startParameter.taskNames.find {
it.contains("HA_private") || it.contains("Debug") || it.contains("Release")
}
def isPublicAllowed = !project.hasProperty("IS_PRIVATE") || !project.property("IS_PRIVATE").toBoolean()
if (!isPrivateBuild && !isPublicAllowed) {
throw new GradleException("Building public version of private code!")
Expand Down
4 changes: 3 additions & 1 deletion TMessagesProj/jni/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ elseif(${ANDROID_ABI} STREQUAL "arm64-v8a")
rlottie/src/vector/pixman/pixman-arma64-neon-asm.S)
endif()


#flac
add_library(flac STATIC
exoplayer/libFLAC/bitmath.c
Expand Down Expand Up @@ -447,7 +448,8 @@ add_library(${NATIVE_LIB} SHARED
exoplayer/ffmpeg_jni.cc
fast-edge.cpp
genann.c
secureid_ocr.cpp)
secureid_ocr.cpp
)

target_compile_options(${NATIVE_LIB} PUBLIC
-ffast-math -Os -funroll-loops -ffast-math -fno-strict-aliasing -fno-math-errno)
Expand Down
Binary file modified TMessagesProj/jni/ffmpeg/arm64-v8a/libavcodec.a
Binary file not shown.
Binary file modified TMessagesProj/jni/ffmpeg/arm64-v8a/libavformat.a
Binary file not shown.
Binary file modified TMessagesProj/jni/ffmpeg/arm64-v8a/libavresample.a
Binary file not shown.
Binary file modified TMessagesProj/jni/ffmpeg/arm64-v8a/libavutil.a
Binary file not shown.
Binary file modified TMessagesProj/jni/ffmpeg/arm64-v8a/libswresample.a
Binary file not shown.
Binary file modified TMessagesProj/jni/ffmpeg/arm64-v8a/libswscale.a
Binary file not shown.
Binary file modified TMessagesProj/jni/ffmpeg/arm64-v8a/libvpx.a
Binary file not shown.
Binary file modified TMessagesProj/jni/ffmpeg/armeabi-v7a/libavcodec.a
Binary file not shown.
Binary file modified TMessagesProj/jni/ffmpeg/armeabi-v7a/libavformat.a
Binary file not shown.
Binary file modified TMessagesProj/jni/ffmpeg/armeabi-v7a/libavresample.a
Binary file not shown.
Binary file modified TMessagesProj/jni/ffmpeg/armeabi-v7a/libavutil.a
Binary file not shown.
Binary file modified TMessagesProj/jni/ffmpeg/armeabi-v7a/libswresample.a
Binary file not shown.
Binary file modified TMessagesProj/jni/ffmpeg/armeabi-v7a/libswscale.a
Binary file not shown.
Binary file modified TMessagesProj/jni/ffmpeg/armeabi-v7a/libvpx.a
Binary file not shown.
Binary file modified TMessagesProj/jni/ffmpeg/x86/libavcodec.a
Binary file not shown.
Binary file modified TMessagesProj/jni/ffmpeg/x86/libavformat.a
Binary file not shown.
Binary file modified TMessagesProj/jni/ffmpeg/x86/libavresample.a
Binary file not shown.
Binary file modified TMessagesProj/jni/ffmpeg/x86/libavutil.a
Binary file not shown.
Binary file modified TMessagesProj/jni/ffmpeg/x86/libswresample.a
Binary file not shown.
Binary file modified TMessagesProj/jni/ffmpeg/x86/libswscale.a
Binary file not shown.
Binary file modified TMessagesProj/jni/ffmpeg/x86/libvpx.a
Binary file not shown.
Binary file modified TMessagesProj/jni/ffmpeg/x86_64/libavcodec.a
Binary file not shown.
Binary file modified TMessagesProj/jni/ffmpeg/x86_64/libavformat.a
Binary file not shown.
Binary file modified TMessagesProj/jni/ffmpeg/x86_64/libavresample.a
Binary file not shown.
Binary file modified TMessagesProj/jni/ffmpeg/x86_64/libavutil.a
Binary file not shown.
Binary file modified TMessagesProj/jni/ffmpeg/x86_64/libswresample.a
Binary file not shown.
Binary file modified TMessagesProj/jni/ffmpeg/x86_64/libswscale.a
Binary file not shown.
Binary file modified TMessagesProj/jni/ffmpeg/x86_64/libvpx.a
Binary file not shown.
6 changes: 6 additions & 0 deletions TMessagesProj/jni/tgnet/ApiScheme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,9 @@ void TL_user::readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &er
profile_color_color = stream->readInt32(&error);
profile_color_background_emoji_id = stream->readInt64(&error);
}
if ((flags2 & 4096) != 0) {
bot_active_users = stream->readInt32(&error);
}
}

void TL_user::serializeToStream(NativeByteBuffer *stream) {
Expand Down Expand Up @@ -605,6 +608,9 @@ void TL_user::serializeToStream(NativeByteBuffer *stream) {
stream->writeInt32(profile_color_color);
stream->writeInt32(profile_color_background_emoji_id);
}
if ((flags2 & 4096) != 0) {
stream->writeInt32(bot_active_users);
}
}

InputPeer *InputPeer::TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error) {
Expand Down
3 changes: 2 additions & 1 deletion TMessagesProj/jni/tgnet/ApiScheme.h
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ class User : public TLObject {
int64_t color_background_emoji_id;
int32_t profile_color_color;
int64_t profile_color_background_emoji_id;
int32_t bot_active_users;

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

public:
static const uint32_t constructor = 0x215c4438;
static const uint32_t constructor = 0x83314fca;

void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error);
void serializeToStream(NativeByteBuffer *stream);
Expand Down
11 changes: 10 additions & 1 deletion TMessagesProj/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@
android:requestLegacyExternalStorage="true"
android:preserveLegacyExternalStorage="true"
android:allowAudioPlaybackCapture="true"
tools:replace="android:supportsRtl">
tools:replace="android:supportsRtl"
android:usesCleartextTraffic="true"
>
<!-- usesCleartextTraffic for browser supporting opening http:// links -->

<activity-alias
android:enabled="true"
Expand Down Expand Up @@ -255,6 +258,12 @@
<data android:host="t.me" android:scheme="http" />
<data android:host="t.me" android:scheme="https" />
</intent-filter>
<intent-filter android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" android:priority="1">
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="tonsite" />
</intent-filter>
<intent-filter android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" android:priority="1">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
Expand Down
2 changes: 1 addition & 1 deletion TMessagesProj/src/main/assets/currencies.json

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions TMessagesProj/src/main/assets/darkblue.attheme
Original file line number Diff line number Diff line change
Expand Up @@ -441,5 +441,8 @@ code_string=-7806088
code_operator=2147483647
code_number=-10887465
code_comment=2147483647
iv_background=-16777216
iv_backgroundGray=-14737633
iv_navigationBackground=-16777216
table_background=177390847
table_border=436207615
Binary file modified TMessagesProj/src/main/assets/fonts/num.otf
Binary file not shown.
3 changes: 3 additions & 0 deletions TMessagesProj/src/main/assets/night.attheme
Original file line number Diff line number Diff line change
Expand Up @@ -466,5 +466,8 @@ code_string=-7806088
code_operator=2147483647
code_number=-10887465
code_comment=2147483647
iv_background=-16777216
iv_backgroundGray=-14737633
iv_navigationBackground=-16777216
table_background=177390847
table_border=436207615
3 changes: 2 additions & 1 deletion TMessagesProj/src/main/assets/shaders/fragment4.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ uniform sampler2D u_BackgroundTexture;
uniform float f_xOffset;
uniform float f_alpha;
uniform mat4 world;
uniform float white;

varying vec3 vNormal;
varying vec2 vUV;
Expand Down Expand Up @@ -89,5 +90,5 @@ void main() {
clamp(flecksSpec * abs(vNormal.z) * (flecksNormal.z), 0.2, 0.3) - .2
);

gl_FragColor = color * f_alpha;
gl_FragColor = mix(color * f_alpha, vec4(1.0), white);
}
Loading

0 comments on commit 3409cb1

Please sign in to comment.