Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matrix 2.0.5 for Android #709

Merged
merged 211 commits into from
Jan 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
211 commits
Select commit Hold shift + click to select a range
cad7319
Merge branch 'dev-doc' into 'dev' (merge request !25)
kirozhao Apr 12, 2021
402d00b
Merge branch 'dev' of http://git.code.oa.com/matrix/matrix into dev
gryamy Apr 27, 2021
278ff08
Create ks2apple.py
dfenglei Aug 2, 2021
8de6e08
Merge branch 'feature/dev' into 'master' (merge request !84)
gryamy Aug 9, 2021
eaac4e6
Merge pull request #629 from dfenglei/updatedevice-patch-1
chzhij5 Aug 12, 2021
2502542
Refactor battery with composite monitors
kaedea Oct 27, 2021
19a40a2
Revert apis modify
kaedea Oct 28, 2021
e148d7e
ActivityLeakFixer: reset clickable and longClickable state after clea…
Yves0 Oct 28, 2021
35b8ee8
Merge branch 'feature/dev' of http://git.code.oa.com/matrix/matrix in…
Yves0 Oct 28, 2021
64ff0e8
Update battery with composite monitors
kaedea Oct 29, 2021
a354ed0
Add battery internal monitor
kaedea Nov 1, 2021
86b4e1d
Append commit
kaedea Nov 1, 2021
8480fc2
Update compositor with cpuload
kaedea Nov 3, 2021
06b3253
Add battery canary sampler
kaedea Nov 3, 2021
9cf920e
Update compositor with samlper
kaedea Nov 3, 2021
9eaaa41
Update battery sampler structure
kaedea Nov 3, 2021
09ff370
Update battery stacks collect
kaedea Nov 3, 2021
29b81c2
Update battery printer with sampler
kaedea Nov 3, 2021
73fc5e9
Add example codes
kaedea Nov 3, 2021
a7d67ce
Append commit
kaedea Nov 3, 2021
50685a1
Update battery tmp with caching
kaedea Nov 4, 2021
bc09d0e
Merge branch 'dev' of https://github.com/Tencent/matrix into dev
gryamy Nov 9, 2021
aa38b22
Merge branch 'master' of https://github.com/Tencent/matrix into dev
gryamy Nov 9, 2021
f23b246
[TracePlugin] Add method trace file check.
gryamy Nov 9, 2021
1fa5279
Update battery compositor with fork configs
kaedea Nov 10, 2021
c6a7c28
feat: Complete memory fork-dump.
AoraMD Oct 21, 2021
f3fb0ff
Merge branch 'feature/dev-memory-fork-dump' into 'feature/dev' (merge…
gryamy Nov 12, 2021
b6fa294
Merge branch 'feature/dev-battery-canary-metrics' into 'feature/dev' …
gryamy Nov 12, 2021
e64416b
The Birth of Matrix Traffic
Nov 12, 2021
6c648b2
refactor: move enhanceDlsym from jectl to android-common
Yves0 Nov 12, 2021
cf79dad
Merge branch 'feature/dev_matrix_traffic' into 'feature/dev' (merge r…
gryamy Nov 12, 2021
270aec7
refactor: Remove enhance-dlsym in matrix-android-common instead of or…
AoraMD Nov 12, 2021
5a6ec46
Merge branch 'feature/dev-view-event-conflict' into 'feature/dev' (me…
gryamy Nov 12, 2021
13a1db1
feat: Migrate dump implementation of manual dump processor to fork-dump.
AoraMD Nov 17, 2021
962af51
fix: Fork Analyse Processor now support publishing file-not-found issue.
AoraMD Nov 18, 2021
15e5f1b
add customize leak
Nov 26, 2021
c2efd57
Merge branch 'feature/dev-enhance-manual-dump' into 'feature/dev' (me…
gryamy Nov 26, 2021
b8d2cf6
1. 添加自定义泄漏监控
Nov 26, 2021
5fce526
add openGL info stack get together
Nov 30, 2021
b474789
add dump to file
Nov 30, 2021
3ae6d54
工具升级改造
Nov 30, 2021
7cab57c
resource-canary: remove manufacture dependency
Yves0 Nov 30, 2021
26b4f20
add hook glTexImage2D
Sep 2, 2021
177a7d8
pick 1c1c7c00
Sep 3, 2021
5bed198
sample: set manufacture for resource plugin
Yves0 Dec 1, 2021
f5f26c2
Merge branch 'feature/dev-manufacture-dep' into 'feature/dev' (merge …
gryamy Dec 1, 2021
7055d04
add type judge
Sep 14, 2021
7b4db2b
hook glTexImage3D
Sep 14, 2021
faeec1e
add new api func seeker
Sep 16, 2021
b1e52c0
pick b0ed08f7092b5ff21a13147b2ec3197df91cd4f7
Sep 17, 2021
1407be7
pick 8f0fd8be
Sep 17, 2021
1e0aa22
support unsized internal formats
Sep 17, 2021
9eb9a00
add more info for gl callback
Sep 22, 2021
f393bab
pick 0a189002
Sep 23, 2021
e3a157c
remove unuse importy
Dec 1, 2021
d9abbca
pick opengl get size()
Dec 1, 2021
dacebf7
工具升级:添加前后台泄漏判断
Dec 1, 2021
59a6aa9
fix jni bug
Dec 1, 2021
27d839c
add java stack & native stack
Dec 1, 2021
2dd8831
OpenGlInfo 提供 getActivityInfo 能力
Dec 1, 2021
86e713d
fix crash
Dec 1, 2021
3bfb253
fix checkstyle error
Dec 1, 2021
e996916
添加清理缓存接口
Dec 1, 2021
71228bc
修改 activityInfo 访问权限
Dec 1, 2021
7d17c9e
add meminfo
Dec 1, 2021
e2fd9b2
add dump change
Dec 1, 2021
c85e6aa
reduce toString();l
Dec 1, 2021
e5e527b
fix null point
Dec 1, 2021
251589e
fix dump format
Dec 1, 2021
7737c45
fix dump formate
Dec 1, 2021
b886722
change dump format
Dec 1, 2021
7353366
fix collect stack bug
Dec 1, 2021
ae753ec
fix 获取不了首屏 Activity
Dec 2, 2021
5ecefe2
feat: Disable dump if SDK version of current device is unsupported.
AoraMD Nov 19, 2021
3dd7a3a
Revert "feat: Disable dump if SDK version of current device is unsupp…
AoraMD Nov 19, 2021
a13439b
feat: Disable dump if SDK version of current device is unsupported.
AoraMD Nov 19, 2021
7d29406
fix ConcurrentModificationException crash
Dec 2, 2021
5bac017
Merge branch 'feature/dev-fork-dump-api-guard' into 'feature/dev' (me…
gryamy Dec 2, 2021
6060616
fix 跨 activity 重复上报
Dec 2, 2021
26c9155
fix dump logic
Dec 2, 2021
3aa1ec1
add null safety
Dec 2, 2021
29199de
add empty
Dec 2, 2021
2202a48
recovery empty
Dec 2, 2021
4803899
change sort
Dec 2, 2021
c08d634
merge
Dec 2, 2021
34dc57c
add openGL Resource size getter
Dec 2, 2021
eef63cb
remove use import
Dec 2, 2021
ef2f089
fix compile wrong
Dec 2, 2021
50d3afb
add memory info
Dec 3, 2021
14dd3e3
style memory info struct
Dec 3, 2021
4938726
remove openGLID & change bind map storage
Dec 3, 2021
daac76d
sync
Dec 3, 2021
8a61261
memory info 释放
Dec 3, 2021
7869565
fix: Fix mute mode in manual dump processor.
AoraMD Dec 3, 2021
083ed81
use ExecuteCenter
Dec 3, 2021
4c8d9ff
refactor: Change confusing method name.
AoraMD Dec 3, 2021
a47d1e3
Merge branch 'feature/dev-fix-manual-dump-mute' into 'feature/dev' (m…
gryamy Dec 3, 2021
ba437ce
fix memory info native stack ptr leak
Dec 3, 2021
0c1a92e
sync
Dec 3, 2021
eba399f
fix glBind interface support target by api level
Dec 6, 2021
02996b3
add special case of glBufferData
Dec 6, 2021
5bb4201
fix cube map size judge error & fix dump logic
Dec 6, 2021
dfde442
remove unuse import & do style
Dec 6, 2021
50f19af
fix some bug
Dec 6, 2021
2a10e8a
style code
Dec 6, 2021
d24a46e
reuse memoryinfo
Dec 6, 2021
6d78922
style code
Dec 6, 2021
31dc956
fix total size bufg
Dec 6, 2021
a3ef3a0
fix null point
Dec 6, 2021
0b1892d
fix count total size error
Dec 6, 2021
0a0f7ed
faceinfo delete params
Dec 7, 2021
04aabfc
OpenGLReportInfo -> OpenGLDumpInfo
Dec 7, 2021
42fa190
bug fix
Dec 7, 2021
c888989
fix memory toString size bug
Dec 7, 2021
589e250
fix jni leak & redelete native ptr
Dec 7, 2021
da1eec8
fix judge error
Dec 8, 2021
0640752
Merge branch 'feature/dev-enhance-dlsym' into 'feature/dev' (merge re…
gryamy Dec 8, 2021
11d0cf6
try to fix global ref decode crash problem
Dec 8, 2021
ede7fbe
fix 32bit jni abort crash
Dec 8, 2021
e2c900a
un use void* & const
Dec 8, 2021
4ca1019
remove EGL release
Dec 8, 2021
d5c0652
remove EGL release
Dec 8, 2021
04bcc13
fix native stack empty & tree_balance null pointer
Dec 9, 2021
68ea2b2
Merge branch 'feature/dev_graphic_pss' into 'feature/dev' (merge requ…
gryamy Dec 10, 2021
4b85431
TouchEventTracer's Birth
Dec 10, 2021
fc821ed
FrameTracer use OnFrameMetricsAvailableListener on hign api level dev…
Dec 10, 2021
de8cbb7
Fix sBuffer can not be released
Dec 10, 2021
ac5163e
CMakeLists add TouchEventTracer.cc
Dec 10, 2021
36b178e
Fix IdleHandlerLagTracer
Dec 10, 2021
99794ce
MatrixTraffic supports dump stack trace
Dec 10, 2021
6443d90
ignore liblog.so
Dec 10, 2021
c78e34f
remove unused code
Dec 10, 2021
b0dc628
Merge branch 'feature/dev_leafjia_dec_release' into 'feature/dev' (me…
Dec 10, 2021
727db2a
fix size get bug
Dec 10, 2021
9babcba
Merge branch 'feature/dev_graphic_pss' into 'feature/dev' (merge requ…
Dec 10, 2021
5958384
support ignoreSoFiles
Dec 11, 2021
ad0dc93
print longMsg when checks error state
Dec 12, 2021
a0947f3
fix wrong change about onAnrDetected
Dec 12, 2021
4e6b024
Merge branch 'feature/dev_leafjia_dec_mon' into 'feature/dev' (merge …
Dec 12, 2021
1fe7223
onAnrDetected callback add cpuset params
Dec 13, 2021
cc59c1b
report cgroup
Dec 14, 2021
d127c93
添加 eglcontext 状态判断接口
Dec 15, 2021
b1f3271
Merge branch 'feature/dev_graphic_pss' of https://git.woa.com/matrix/…
Dec 15, 2021
e78a77b
判断 eglcontext 状态
Dec 15, 2021
4f7c716
opengl info 添加 context 状态判断
Dec 15, 2021
582551c
method rename
Dec 15, 2021
2f1642c
toString 添加 context 信息
Dec 15, 2021
88377d4
ThreadPriorityTracer onMainThreadPriorityModified callback add priori…
Dec 15, 2021
bf24297
dump stacktrace as soon as possible when happens anr
Dec 15, 2021
c5a555f
add log
Dec 15, 2021
2eecd3a
获取所有 item
Dec 15, 2021
ed99dc3
crash fix
Dec 16, 2021
7d3bba3
remove unused code
Dec 16, 2021
4ef2555
Merge branch 'feature/dev_leafjia_a2_fix' into 'feature/dev' (merge r…
Dec 16, 2021
dbb29bb
do not catch onMainThreadPriorityModified exception
Dec 16, 2021
0edd76e
Merge branch 'feature/dev_leafjia_a2_fix' into 'feature/dev' (merge r…
Dec 16, 2021
1eafdc7
Merge branch 'feature/dev_graphic_pss' into 'feature/dev' (merge requ…
Dec 16, 2021
fb86085
feat: Add analyzing state getter API.
AoraMD Dec 16, 2021
4bbc73e
fix: Update manual dump activity in Matrix sample.
AoraMD Dec 16, 2021
975e021
backtrace: fix background ANR caused by warmup
Yves0 Dec 16, 2021
8b75814
trace-canary: fix typo
Yves0 Dec 16, 2021
b40bb7a
trace-canary: fix typo
Yves0 Dec 16, 2021
ef9902d
Merge branch 'feature/dev-backtrace-anr' into 'feature/dev' (merge re…
gryamy Dec 16, 2021
0f99f3c
Merge branch 'feature/dev-analyze-state-getter' into 'feature/dev' (m…
gryamy Dec 17, 2021
ca8c4e9
Merge branch 'feature/dev-fix-sample' into 'feature/dev' (merge reque…
gryamy Dec 17, 2021
1d8f9f1
add sample java stack get
Dec 18, 2021
1118308
remove log
Dec 18, 2021
67e83d4
remove renderbuffer native stack sample
Dec 18, 2021
a41aeba
Merge branch 'feature/dev-opengl-opt' into 'feature/dev' (merge reque…
Dec 18, 2021
100b6f3
un hook gl bind & gl memory interface
Dec 20, 2021
2949ca0
Merge branch 'feature/dev-opengl-shield' into 'feature/dev' (merge re…
Dec 20, 2021
eae0875
pthread-hook: fix NPE and remove useless code
Yves0 Dec 22, 2021
5dc2c89
memory-hook: fix hardcoded profiling path
Yves0 Dec 22, 2021
143cabe
Merge branch 'feature/dev-threadtrace-fix' into 'feature/dev' (merge …
gryamy Dec 22, 2021
1d87ba6
chore: add static link c++ flavor
Yves0 Dec 22, 2021
ced01e5
Revert "chore: add static link c++ flavor"
Yves0 Dec 22, 2021
60c1466
chore: add static link c++ flavor with version suffix
Yves0 Dec 24, 2021
ed00228
Merge branch 'master' of http://git.code.oa.com/matrix/matrix
gryamy Dec 27, 2021
c67e239
fix: Close handle after complete symbol searching if using enhance-dl…
AoraMD Dec 28, 2021
400853f
fix enhance dlsym leak
Yves0 Dec 28, 2021
9ef3cef
Merge branch 'feature/dev-dlsym-fix' into feature/dev-close-handle-me…
Yves0 Dec 28, 2021
5c8efa7
enhance dlsym : init strtab/symtab with nullptr
Yves0 Dec 28, 2021
7f8158a
matrix-hooks: fix backtrace ANR caused by reentrant mutex
Yves0 Dec 28, 2021
72488b2
Merge branch 'feature/dev-backtrace-deadlock-samsung' into 'feature/d…
gryamy Dec 28, 2021
9e37288
Merge branch 'feature/dev-close-handle-memory-dump' into 'feature/dev…
gryamy Dec 28, 2021
05b40bf
feat: Add lazy fork analyze processor.
AoraMD Jan 4, 2022
7d195c1
Matrix Traffic supports dumping thread's native backtrace and ip address
Jan 6, 2022
fbf70d0
SignalAnrTrace monitors signal 35, which will be sent by system in ca…
Jan 6, 2022
f54c325
remove unused comment
Jan 6, 2022
807abb6
v2.0.5
Jan 6, 2022
eacaa08
Merge branch 'feature/dev_leafjia_jan_release' into 'feature/dev' (me…
gryamy Jan 6, 2022
d511318
Merge branch 'feature/dev' into feature/dev-lazy-fork-analyze
AoraMD Jan 11, 2022
d0588cc
Merge branch 'feature/dev-lazy-fork-analyze' into 'feature/dev' (merg…
gryamy Jan 11, 2022
b4dbedd
Add TrafficConfig constructor
Jan 12, 2022
8a4806f
Fix the traffic collected is larger than fact
Jan 12, 2022
87f17be
fix isInit can' be set true when useFrameMetrics is false
Jan 13, 2022
833230f
Merge branch 'feature/dev_fix_traffic_len' of http://git.code.oa.com/…
Jan 13, 2022
1704122
Merge branch 'feature/dev_leafjia_jan_fix' into 'feature/dev' (merge …
Jan 13, 2022
141b5c2
Merge branch 'master' of http://git.code.oa.com/matrix/matrix into fe…
gryamy Jan 21, 2022
9c6a782
Merge branch 'dev' of https://github.com/Tencent/matrix into feature/dev
gryamy Jan 21, 2022
972c692
Merge branch 'feature/dev-publish-static' into 'feature/dev' (merge r…
gryamy Jan 21, 2022
ced3587
Merge branch 'feature/dev' of http://git.code.oa.com/matrix/matrix in…
gryamy Jan 21, 2022
3577ca1
remove unused code
Jan 21, 2022
939c5e0
comment grammar error -_-
Jan 21, 2022
797fb8d
SignalAnrTracer add onNativeBacktraceDetected
Jan 21, 2022
5efa7c3
Matrix Traffic Sample
Jan 21, 2022
75ff2ef
beautify ui
Jan 21, 2022
4b3e4c3
Merge branch 'feature/dev_traffic_sample' into 'feature/dev' (merge r…
gryamy Jan 21, 2022
18bebd6
Fix MatrixTraceTask failed with proguard
gryamy Jan 21, 2022
2f8dbda
Merge branch 'feature/dev' of http://git.code.oa.com/matrix/matrix in…
gryamy Jan 21, 2022
f95d172
Enable removeUnusedResources for sample
gryamy Jan 21, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion matrix/matrix-android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryErro
# org.gradle.parallel=true
#Tue Jun 20 10:24:33 CST 2017

VERSION_NAME_PREFIX=2.0.2
VERSION_NAME_PREFIX=2.0.5
VERSION_NAME_SUFFIX=
## two options: Internal (for wechat), External (for public repo)
PUBLISH_CHANNEL=Internal
Expand Down
4 changes: 4 additions & 0 deletions matrix/matrix-android/gradle/Arguments.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,8 @@ gradle.ext.gonnaPublish = {
}

return false
}

gradle.ext.staticLinkCXX = {
return gradle.startParameter.projectProperties.containsKey("publishStaticLinkCXXFlavor" as String)
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ cmake_minimum_required(VERSION 3.4.1)
project(android-commons C)

add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/src/main/cpp/libsemi_dlfcn)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/src/main/cpp/libenhance_dlsym)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/src/main/cpp/libxhook)
5 changes: 4 additions & 1 deletion matrix/matrix-android/matrix-android-commons/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ android {

externalNativeBuild {
cmake {
targets = ['xhook', 'semi_dlfcn']
targets = ['xhook', 'semi_dlfcn', 'enhance_dlsym']
}
exportHeaders {
from('src/main/cpp/libxhook') {
Expand All @@ -27,6 +27,9 @@ android {
from('src/main/cpp/libsemi_dlfcn') {
include '**/*.h'
}
from('src/main/cpp/libenhance_dlsym') {
include '**/*.h'
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
cmake_minimum_required(VERSION 3.4.1)
project(libenhance_dlsym CXX)

set(enhance_dlsym_source_dir ${CMAKE_CURRENT_SOURCE_DIR})

set(enhance_dlsym_source
${enhance_dlsym_source_dir}/EnhanceDlsym.cpp)

add_library(enhance_dlsym STATIC ${enhance_dlsym_source})

target_include_directories(
enhance_dlsym
PUBLIC ${enhance_dlsym_source_dir}
)

target_link_libraries(
enhance_dlsym
PUBLIC ${log-lib}
)
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include <dlfcn.h>
#include <set>
#include "EnhanceDlsym.h"
#include "JeLog.h"
#include "../../../../../matrix-jectl/src/main/cpp/jectl/JeLog.h"

#define TAG "Matrix.EnhanceDl"

Expand Down Expand Up @@ -283,8 +283,7 @@ namespace enhance {
if (__handle) {
auto info = static_cast<DlInfo *>(__handle);
m_opened_info.erase(info);
free(info->strtab);
free(info);
delete info;

std::map<void *, ElfW(Sym) *> empty;
empty.swap(m_founded_symtab);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,14 @@ namespace enhance {
struct DlInfo {

DlInfo() {}
~DlInfo() {}
~DlInfo() {
if (strtab) {
free(strtab);
}
if (symtab) {
free(symtab);
}
}

std::string pathname;

Expand All @@ -45,10 +52,10 @@ namespace enhance {
ElfW(Ehdr) *ehdr; // pointing to loaded mem
ElfW(Phdr) *phdr; // pointing to loaded mem

char *strtab; // strtab
char *strtab = nullptr; // strtab
ElfW(Word) strtab_size; // size in bytes

ElfW(Sym) *symtab;
ElfW(Sym) *symtab = nullptr;
ElfW(Word) symtab_num;

};
Expand Down
11 changes: 1 addition & 10 deletions matrix/matrix-android/matrix-backtrace/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,7 @@ android {

}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])

implementation 'androidx.annotation:annotation:1.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
// implementation "com.tencent.stubs:logger:${rootProject.LOGGER_VERSION}"
implementation project(':matrix-android-lib')
}
apply from: project.file('dependencies.gradle')

group = rootProject.GROUP
version = rootProject.VERSION_NAME
Expand Down
85 changes: 85 additions & 0 deletions matrix/matrix-android/matrix-backtrace/cxx-static/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
apply plugin: 'com.android.library'

apply from: rootProject.file('gradle/WeChatNativeDepend.gradle')

android {
compileSdkVersion rootProject.compileSdkVersion

defaultConfig {
minSdkVersion rootProject.MIN_SDK_VERSION_FOR_HOOK
targetSdkVersion rootProject.targetSdkVersion
versionCode rootProject.VERSION_CODE
versionName rootProject.VERSION_NAME

testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'

ndk {
abiFilters rootProject.ABI_FILTERS as String[]
}

externalNativeBuild {
cmake {
targets = ['wechatbacktrace', 'unwindstack']
arguments = ['-DANDROID_STL=c++_static',
"-DEnableLOG=${gradle.enableLog() ? "ON" : "OFF"}" as String,
"-DQUT_STATISTIC_ENABLE=${gradle.enableLog() ? "ON" : "OFF"}" as String]
}

exportHeaders {
from('../src/main/cpp') {
include 'common/*.h'
moveToDir 'backtrace'
}
from('../src/main/cpp/libwechatbacktrace/include') {
include '**/*.h'
moveToDir 'backtrace'
}
from('../src/main/cpp/external/libunwindstack/include') {
include '**/*.h'
moveToDir 'backtrace'
}
from('../src/main/cpp/dexfile/include') {
include '**/*.h'
moveToDir 'backtrace'
}
}
}
}

buildTypes {

release {
minifyEnabled false
}
}

externalNativeBuild {
cmake {
path "../CMakeLists.txt"
}
}

sourceSets {
main {
java.srcDirs = ['../src/main/java']
res.srcDirs = ['../src/main/res']
manifest.srcFile '../src/main/AndroidManifest.xml'
}
}

}

apply from: project.file('../dependencies.gradle')

group = rootProject.GROUP
version = "${rootProject.VERSION_NAME}-STATIC"

if("External" == rootProject.ext.PUBLISH_CHANNEL) {
apply from: rootProject.file('gradle/android-publish.gradle')
}
else {
apply from: rootProject.file('gradle/WeChatPublish.gradle')
wechatPublish {
artifactId = POM_ARTIFACT_ID
}
}
10 changes: 10 additions & 0 deletions matrix/matrix-android/matrix-backtrace/dependencies.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])

implementation 'androidx.annotation:annotation:1.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
// implementation "com.tencent.stubs:logger:${rootProject.LOGGER_VERSION}"
implementation project(':matrix-android-lib')
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

import androidx.annotation.Nullable;

import com.tencent.matrix.util.MatrixHandlerThread;
import com.tencent.matrix.util.MatrixLog;
import com.tencent.matrix.xlog.XLogNative;

Expand Down Expand Up @@ -221,8 +222,8 @@ public Bundle call(int cmd, Bundle args) {

final static int CMD_WARM_UP_SINGLE_ELF_FILE = 100;

private final Messenger mMessenger = new Messenger(new Handler() {
@SuppressLint("HandlerLeak")
@SuppressLint("HandlerLeak")
private final Messenger mMessenger = new Messenger(new Handler(MatrixHandlerThread.getDefaultHandlerThread().getLooper()) {
@Override
public void handleMessage(final Message msg) {
super.handleMessage(msg);
Expand Down
Loading