From bd285b4d2346f1a77be98ed53f7db139ee3218fa Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 10 Nov 2020 16:24:43 +0800 Subject: [PATCH] add Matrix --- app/build.gradle | 12 ++++++++++++ build.gradle | 1 + 2 files changed, 13 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index 70605f40a2..01cdfbcdc0 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -372,6 +372,18 @@ dependencies { apply from: "./functions/crashreport.gradle" apply from: "./functions/widgets.gradle" apply from: "./functions/tts.gradle" + + implementation group: "com.tencent.matrix", name: "matrix-trace-canary", version:'0.6.6', changing: true + +} + +apply plugin: 'com.tencent.matrix-plugin' +matrix { + trace { + enable = true //if you don't want to use trace canary, set false + baseMethodMapFile = "${project.buildDir}/matrix_output/Debug.methodmap" + blackListFile = "${project.projectDir}/matrixTrace/blackMethodList.txt" + } } android.applicationVariants.all { variant -> diff --git a/build.gradle b/build.gradle index d210cb3ce4..e4354571d3 100644 --- a/build.gradle +++ b/build.gradle @@ -21,6 +21,7 @@ buildscript { classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.71' classpath "com.alibaba:arouter-register:1.0.2" classpath 'com.hujiang.aspectjx:gradle-android-plugin-aspectjx:2.0.4' + classpath ("com.tencent.matrix:matrix-gradle-plugin:0.6.6") { changing = true } // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files }