Skip to content

Commit 9f90f68

Browse files
committed
Removed TGX_BUILD_ID & $TGX_BUILD_ID_NATIVE from CMakeLists.txt + Update tgcalls submodule
1 parent 9ab11a7 commit 9f90f68

File tree

2 files changed

+2
-19
lines changed

2 files changed

+2
-19
lines changed

‎app/jni/CMakeLists.txt

+1-18
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ set(VPX_LIB_PATH "${VPX_DIR}/lib/libvpx.a")
4747

4848
# == Constants ==
4949
# $TGX_PUBLIC — optimize native bundle size / enable optimizations for end users
50-
# $TGX_BUILD_ID — unique app build id
51-
# $TGX_BUILD_ID_NATIVE — unique native bundle build id (changes less frequently)
5250
# $IS_ARM_FAMILY – armeabi-v7a or arm64-v8a
5351

5452
if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
@@ -57,19 +55,6 @@ else()
5755
set(TGX_PUBLIC yes)
5856
endif()
5957

60-
file(READ "${TGX_ROOT_DIR}/build-id.txt" TGX_BUILD_ID)
61-
file(READ "${TGX_ROOT_DIR}/build-id-native.txt" TGX_BUILD_ID_NATIVE)
62-
63-
string(LENGTH "${TGX_BUILD_ID}" TGX_BUILD_ID_LENGTH)
64-
if(${TGX_BUILD_ID_LENGTH} EQUAL 0)
65-
message(FATAL_ERROR "build-id.txt is empty or doesn't exist, check: ${TGX_ROOT_DIR}/build-id.txt")
66-
endif()
67-
68-
string(LENGTH "${TGX_BUILD_ID_NATIVE}" TGX_BUILD_ID_NATIVE_LENGTH)
69-
if(${TGX_BUILD_ID_NATIVE_LENGTH} EQUAL 0)
70-
message(FATAL_ERROR "build-id-native.txt is empty or doesn't exist, check: ${TGX_ROOT_DIR}/build-id-native.txt")
71-
endif()
72-
7358
if (${ANDROID_ABI} STREQUAL "armeabi-v7a" OR ${ANDROID_ABI} STREQUAL "arm64-v8a")
7459
set(IS_ARM_FAMILY yes)
7560
else()
@@ -79,9 +64,7 @@ endif()
7964
message(STATUS "Building native library... \
8065
CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE} \
8166
IS_ARM_FAMILY: ${IS_ARM_FAMILY} \
82-
TGX_PUBLIC: ${TGX_PUBLIC} \
83-
TGX_BUILD_ID: ${TGX_BUILD_ID} \
84-
TGX_BUILD_ID_NATIVE: ${TGX_BUILD_ID_NATIVE}")
67+
TGX_PUBLIC: ${TGX_PUBLIC}")
8568

8669
# == CMake global settings ==
8770

0 commit comments

Comments
 (0)