Skip to content

Commit

Permalink
Update to 4.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
DrKLO committed Dec 8, 2017
1 parent 9e4f549 commit 4ebcbf6
Show file tree
Hide file tree
Showing 841 changed files with 62,880 additions and 47,763 deletions.
32 changes: 21 additions & 11 deletions TMessagesProj/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ configurations {
}

dependencies {
compile 'com.google.android.gms:play-services-gcm:11.0.2'
compile 'com.google.android.gms:play-services-maps:11.0.2'
compile 'com.google.android.gms:play-services-vision:11.0.2'
compile 'com.google.android.gms:play-services-wallet:11.0.2'
compile 'com.google.android.gms:play-services-wearable:11.0.2'
compile 'com.google.android.gms:play-services-gcm:11.0.4'
compile 'com.google.android.gms:play-services-maps:11.0.4'
compile 'com.google.android.gms:play-services-vision:11.0.4'
compile 'com.google.android.gms:play-services-wallet:11.0.4'
compile 'com.google.android.gms:play-services-wearable:11.0.4'
compile 'com.android.support:support-core-ui:25.3.1'
compile 'com.android.support:support-compat:25.3.1'
compile 'com.android.support:support-core-utils:25.3.1'
Expand All @@ -25,8 +25,9 @@ dependencies {
}

android {
compileSdkVersion 25
buildToolsVersion '25.0.2'
compileSdkVersion 26
buildToolsVersion '26.0.2'


useLibrary 'org.apache.http.legacy'
defaultConfig.applicationId = "org.telegram.messenger"
Expand Down Expand Up @@ -90,7 +91,7 @@ android {
}
}

defaultConfig.versionCode = 1043
defaultConfig.versionCode = 1154

sourceSets.debug {
manifest.srcFile 'config/debug/AndroidManifest.xml'
Expand All @@ -104,6 +105,8 @@ android {
manifest.srcFile 'config/foss/AndroidManifest.xml'
}

flavorDimensions "minApi"

productFlavors {
x86 {
ndk {
Expand Down Expand Up @@ -155,14 +158,21 @@ android {
}

applicationVariants.all { variant ->
def abiVersion = variant.productFlavors.get(0).versionCode
variant.mergedFlavor.versionCode = defaultConfig.versionCode * 10 + abiVersion
variant.outputs.all { output ->
output.processManifest.doLast {
def abiVersion = variant.productFlavors.get(0).versionCode
String manifestPath = "$manifestOutputDirectory/AndroidManifest.xml"
def manifestContent = file(manifestPath).getText()
manifestContent = manifestContent.replace(String.format('android:versionCode="%d"', abiVersion), String.format('android:versionCode="%s"', defaultConfig.versionCode * 10 + abiVersion))
file(manifestPath).write(manifestContent)
}
}
}

defaultConfig {
minSdkVersion 16
targetSdkVersion 25
versionName "4.2.1"
versionName "4.6.0"

externalNativeBuild {
ndkBuild {
Expand Down
43 changes: 4 additions & 39 deletions TMessagesProj/jni/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -72,42 +72,6 @@ include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)

LOCAL_CPP_EXTENSION := .cc
LOCAL_ARM_MODE := arm
LOCAL_MODULE := breakpad
LOCAL_CPPFLAGS := -Wall -std=c++11 -DANDROID -finline-functions -ffast-math -Os -fno-strict-aliasing

LOCAL_C_INCLUDES := \
./jni/breakpad/common/android/include \
./jni/breakpad

LOCAL_SRC_FILES := \
./breakpad/client/linux/crash_generation/crash_generation_client.cc \
./breakpad/client/linux/dump_writer_common/ucontext_reader.cc \
./breakpad/client/linux/dump_writer_common/thread_info.cc \
./breakpad/client/linux/handler/exception_handler.cc \
./breakpad/client/linux/handler/minidump_descriptor.cc \
./breakpad/client/linux/log/log.cc \
./breakpad/client/linux/microdump_writer/microdump_writer.cc \
./breakpad/client/linux/minidump_writer/linux_dumper.cc \
./breakpad/client/linux/minidump_writer/linux_ptrace_dumper.cc \
./breakpad/client/linux/minidump_writer/minidump_writer.cc \
./breakpad/client/minidump_file_writer.cc \
./breakpad/common/android/breakpad_getcontext.S \
./breakpad/common/convert_UTF.c \
./breakpad/common/md5.cc \
./breakpad/common/string_conversion.cc \
./breakpad/common/linux/elfutils.cc \
./breakpad/common/linux/file_id.cc \
./breakpad/common/linux/guid_creator.cc \
./breakpad/common/linux/linux_libc_support.cc \
./breakpad/common/linux/memory_mapped_file.cc \
./breakpad/common/linux/safe_readlink.cc

include $(BUILD_STATIC_LIBRARY)

include $(CLEAR_VARS)

LOCAL_MODULE := voip
LOCAL_CPPFLAGS := -Wall -std=c++11 -DANDROID -finline-functions -ffast-math -Os -fno-strict-aliasing -O3 -frtti -D__STDC_LIMIT_MACROS
LOCAL_CFLAGS := -O3 -DUSE_KISS_FFT -fexceptions -DWEBRTC_APM_DEBUG_DUMP=0 -DWEBRTC_POSIX -D__STDC_LIMIT_MACROS
Expand Down Expand Up @@ -399,7 +363,7 @@ LOCAL_CFLAGS += -Drestrict='' -D__EMX__ -DOPUS_BUILD -DFIXED_POINT -DUSE_ALLOCA
LOCAL_CFLAGS += -DANDROID_NDK -DDISABLE_IMPORTGL -fno-strict-aliasing -fprefetch-loop-arrays -DAVOID_TABLES -DANDROID_TILE_BASED_DECODE -DANDROID_ARMV6_IDCT -ffast-math -D__STDC_CONSTANT_MACROS
LOCAL_CPPFLAGS := -DBSD=1 -ffast-math -Os -funroll-loops -std=c++11
LOCAL_LDLIBS := -ljnigraphics -llog -lz -latomic -lOpenSLES -lEGL -lGLESv2
LOCAL_STATIC_LIBRARIES := webp sqlite tgnet breakpad avformat avcodec avutil voip
LOCAL_STATIC_LIBRARIES := webp sqlite tgnet avformat avcodec avutil voip

LOCAL_SRC_FILES := \
./opus/src/opus.c \
Expand Down Expand Up @@ -600,9 +564,8 @@ LOCAL_C_INCLUDES := \
./jni/opus/opusfile \
./jni/libyuv/include \
./jni/boringssl/include \
./jni/breakpad/common/android/include \
./jni/breakpad \
./jni/ffmpeg/include \
./jni/emoji \
./jni/intro

LOCAL_SRC_FILES += \
Expand Down Expand Up @@ -666,6 +629,8 @@ LOCAL_SRC_FILES += \
./SqliteWrapper.cpp \
./TgNetWrapper.cpp \
./NativeLoader.cpp \
./emoji/emoji_suggestions_data.cpp \
./emoji/emoji_suggestions.cpp \
./libtgvoip/client/android/tg_voip_jni.cpp

include $(BUILD_SHARED_LIBRARY)
Expand Down
4 changes: 1 addition & 3 deletions TMessagesProj/jni/NativeLoader.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#include <jni.h>
#include <stdio.h>
#include "breakpad/client/linux/handler/exception_handler.h"
#include "breakpad/client/linux/handler/minidump_descriptor.h"

/*static google_breakpad::ExceptionHandler *exceptionHandler;
Expand All @@ -19,4 +17,4 @@ extern "C" {
exceptionHandler = new google_breakpad::ExceptionHandler(descriptor, NULL, callback, NULL, true, -1);
}*/
}
}
}
50 changes: 0 additions & 50 deletions TMessagesProj/jni/breakpad/LICENSE

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 4ebcbf6

Please sign in to comment.