Skip to content

Commit f4286bf

Browse files
committed
修改build.gradle
1 parent 2192332 commit f4286bf

File tree

8 files changed

+27
-14
lines changed

8 files changed

+27
-14
lines changed

.idea/gradle.xml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ android {
1313
versionCode 1
1414
versionName "1.0"
1515
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
16+
javaCompileOptions {
17+
annotationProcessorOptions {
18+
includeCompileClasspath true
19+
}
20+
}
1621
}
1722
buildTypes {
1823
release {
@@ -32,11 +37,11 @@ dependencies {
3237
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
3338

3439
implementation project(':tracemanui')
35-
// implementation 'com.github.zhengcx:MethodTraceMan:1.0.2'
40+
// implementation 'com.github.zhengcx:MethodTraceMan:1.0.3'
3641
}
3742

38-
//apply plugin: "cn.cxzheng.asmtraceman"
39-
//traceMan {
40-
// open = true
41-
// traceConfigFile = "${project.projectDir}/traceconfig.txt"
42-
//}
43+
apply plugin: "cn.cxzheng.asmtraceman"
44+
traceMan {
45+
open = true
46+
traceConfigFile = "${project.projectDir}/traceconfig.txt"
47+
}

build.gradle

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,20 @@ buildscript {
55
repositories {
66
google()
77
jcenter()
8+
// maven {
9+
// url uri('./repo')
10+
// }
11+
maven { url 'https://jitpack.io' }
812
maven {
9-
url uri('./repo')
13+
url "https://plugins.gradle.org/m2/"
1014
}
1115
}
1216
dependencies {
1317
classpath 'com.android.tools.build:gradle:3.2.1'
1418
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1519
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
20+
// classpath 'com.github.zhengcx:MethodTraceMan:1.0.3'
21+
classpath "gradle.plugin.cn.cxzheng.methodTracePlugin:tracemanplugin:1.0.1"
1622
// classpath "cn.cxzheng:asmtraceman-plugin:0.0.1-test"
1723
// NOTE: Do not place your application dependencies here; they belong
1824
// in the individual module build.gradle files
@@ -23,10 +29,13 @@ allprojects {
2329
repositories {
2430
google()
2531
jcenter()
32+
// maven {
33+
// url uri('./repo')
34+
// }
35+
maven { url 'https://jitpack.io' }
2636
maven {
27-
url uri('./repo')
37+
url "https://plugins.gradle.org/m2/"
2838
}
29-
maven { url 'https://jitpack.io' }
3039
}
3140
}
3241

methodtraceman.png

429 KB
Loading

settings.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
include ':app', ':tracemanplugin', ':tracemanui'
1+
include ':app', ':tracemanui'
2+
//, ':tracemanplugin'

tracemanplugin/src/main/groovy/cn/cxzheng/tracemanplugin/TraceManTransform.groovy

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ class TraceManTransform extends Transform {
4848
if (output == null || output.isEmpty()) {
4949
traceManConfig.output = project.getBuildDir().getAbsolutePath() + File.separator + "traceman_output"
5050
}
51-
println '[MethodTraceMan]: output:' + traceManConfig.output
5251

5352
if (traceManConfig.open) {
5453
//读取配置
@@ -153,7 +152,6 @@ class TraceManTransform extends Transform {
153152
String entryName = jarEntry.getName()
154153
ZipEntry zipEntry = new ZipEntry(entryName)
155154
InputStream inputStream = jarFile.getInputStream(jarEntry)
156-
157155
if (traceConfig.isNeedTraceClass(entryName)) {
158156
jarOutputStream.putNextEntry(zipEntry)
159157
ClassReader classReader = new ClassReader(IOUtils.toByteArray(inputStream))

tracemanplugin/src/main/java/cn/cxzheng/tracemanplugin/Config.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ class Config {
155155
}
156156

157157

158+
159+
158160
}
159161

160162
}

tracemanui/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ apply plugin: 'kotlin-android-extensions'
44
//apply plugin: 'org.jetbrains.dokka-android'
55
apply plugin: 'com.github.dcendents.android-maven'
66

7-
87
android {
98
compileSdkVersion 28
109

0 commit comments

Comments
 (0)