Skip to content

Commit fb2e545

Browse files
committed
update to 11.4.2 (5469)
1 parent 9b78d43 commit fb2e545

File tree

295 files changed

+18934
-3822
lines changed

Some content is hidden

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

295 files changed

+18934
-3822
lines changed

TMessagesProj/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ apply plugin: 'com.google.gms.google-services'
210210
task checkVisibility {
211211
doFirst {
212212
def isPrivateBuild = project.gradle.startParameter.taskNames.find {
213-
it.contains("HA_private") || it.contains("Debug") || it.contains("Release")
213+
it.contains("HA_private") || it.contains("HA_hardcore") || it.contains("Debug") || it.contains("Release")
214214
}
215215
def isPublicAllowed = !project.hasProperty("IS_PRIVATE") || !project.property("IS_PRIVATE").toBoolean()
216216
if (!isPrivateBuild && !isPublicAllowed) {

TMessagesProj/jni/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ ${CMAKE_HOME_DIRECTORY}/ffmpeg/${ANDROID_ABI}/libavresample.a,
1313
${CMAKE_HOME_DIRECTORY}/ffmpeg/${ANDROID_ABI}/libavutil.a,
1414
${CMAKE_HOME_DIRECTORY}/ffmpeg/${ANDROID_ABI}/libswresample.a,
1515
${CMAKE_HOME_DIRECTORY}/ffmpeg/${ANDROID_ABI}/libvpx.a,
16+
${CMAKE_HOME_DIRECTORY}/ffmpeg/${ANDROID_ABI}/libdav1d.a,
1617
${CMAKE_HOME_DIRECTORY}/boringssl/lib/libssl_${ANDROID_ABI}.a,
1718
${CMAKE_HOME_DIRECTORY}/boringssl/lib/libcrypto_${ANDROID_ABI}.a")
1819

@@ -49,6 +50,8 @@ set_target_properties(ssl PROPERTIES IMPORTED_LOCATION ${CMAKE_HOME_DIRECTORY}/b
4950
add_library(libvpx STATIC IMPORTED)
5051
set_target_properties(libvpx PROPERTIES IMPORTED_LOCATION ${CMAKE_HOME_DIRECTORY}/ffmpeg/${ANDROID_ABI}/libvpx.a)
5152

53+
add_library(libdav1d STATIC IMPORTED)
54+
set_target_properties(libdav1d PROPERTIES IMPORTED_LOCATION ${CMAKE_HOME_DIRECTORY}/ffmpeg/${ANDROID_ABI}/libdav1d.a)
5255

5356
#tgnet
5457
#add_library(mozjpeg STATIC
@@ -641,6 +644,7 @@ target_link_libraries(${NATIVE_LIB}
641644
avresample
642645
swresample
643646
libvpx
647+
libdav1d
644648
avutil
645649
ssl
646650
crypto

TMessagesProj/jni/TgNetWrapper.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ jint getCurrentTime(JNIEnv *env, jclass c, jint instanceNum) {
8585
return ConnectionsManager::getInstance(instanceNum).getCurrentTime();
8686
}
8787

88+
jint getCurrentPingTime(JNIEnv *env, jclass c, jint instanceNum) {
89+
return ConnectionsManager::getInstance(instanceNum).getCurrentPingTime();
90+
}
91+
8892
jint getCurrentDatacenterId(JNIEnv *env, jclass c, jint instanceNum) {
8993
return ConnectionsManager::getInstance(instanceNum).getCurrentDatacenterId();
9094
}
@@ -486,6 +490,7 @@ static const char *ConnectionsManagerClassPathName = "org/telegram/tgnet/Connect
486490
static JNINativeMethod ConnectionsManagerMethods[] = {
487491
{"native_getCurrentTimeMillis", "(I)J", (void *) getCurrentTimeMillis},
488492
{"native_getCurrentTime", "(I)I", (void *) getCurrentTime},
493+
{"native_getCurrentPingTime", "(I)I", (void *) getCurrentPingTime},
489494
{"native_getCurrentDatacenterId", "(I)I", (void *) getCurrentDatacenterId},
490495
{"native_isTestBackend", "(I)I", (void *) isTestBackend},
491496
{"native_getTimeDifference", "(I)I", (void *) getTimeDifference},
218 KB
Binary file not shown.
824 Bytes
Binary file not shown.
64 Bytes
Binary file not shown.
504 Bytes
Binary file not shown.
1.02 MB
Binary file not shown.
64 Bytes
Binary file not shown.
32 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)