Skip to content

Commit

Permalink
修改build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
cxzhengfont committed Sep 21, 2019
1 parent 2192332 commit f4286bf
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 14 deletions.
1 change: 0 additions & 1 deletion .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 11 additions & 6 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ android {
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
javaCompileOptions {
annotationProcessorOptions {
includeCompileClasspath true
}
}
}
buildTypes {
release {
Expand All @@ -32,11 +37,11 @@ dependencies {
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

implementation project(':tracemanui')
// implementation 'com.github.zhengcx:MethodTraceMan:1.0.2'
// implementation 'com.github.zhengcx:MethodTraceMan:1.0.3'
}

//apply plugin: "cn.cxzheng.asmtraceman"
//traceMan {
// open = true
// traceConfigFile = "${project.projectDir}/traceconfig.txt"
//}
apply plugin: "cn.cxzheng.asmtraceman"
traceMan {
open = true
traceConfigFile = "${project.projectDir}/traceconfig.txt"
}
15 changes: 12 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,20 @@ buildscript {
repositories {
google()
jcenter()
// maven {
// url uri('./repo')
// }
maven { url 'https://jitpack.io' }
maven {
url uri('./repo')
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
// classpath 'com.github.zhengcx:MethodTraceMan:1.0.3'
classpath "gradle.plugin.cn.cxzheng.methodTracePlugin:tracemanplugin:1.0.1"
// classpath "cn.cxzheng:asmtraceman-plugin:0.0.1-test"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand All @@ -23,10 +29,13 @@ allprojects {
repositories {
google()
jcenter()
// maven {
// url uri('./repo')
// }
maven { url 'https://jitpack.io' }
maven {
url uri('./repo')
url "https://plugins.gradle.org/m2/"
}
maven { url 'https://jitpack.io' }
}
}

Expand Down
Binary file added methodtraceman.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
include ':app', ':tracemanplugin', ':tracemanui'
include ':app', ':tracemanui'
//, ':tracemanplugin'
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ class TraceManTransform extends Transform {
if (output == null || output.isEmpty()) {
traceManConfig.output = project.getBuildDir().getAbsolutePath() + File.separator + "traceman_output"
}
println '[MethodTraceMan]: output:' + traceManConfig.output

if (traceManConfig.open) {
//读取配置
Expand Down Expand Up @@ -153,7 +152,6 @@ class TraceManTransform extends Transform {
String entryName = jarEntry.getName()
ZipEntry zipEntry = new ZipEntry(entryName)
InputStream inputStream = jarFile.getInputStream(jarEntry)

if (traceConfig.isNeedTraceClass(entryName)) {
jarOutputStream.putNextEntry(zipEntry)
ClassReader classReader = new ClassReader(IOUtils.toByteArray(inputStream))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ class Config {
}




}

}
Expand Down
1 change: 0 additions & 1 deletion tracemanui/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ apply plugin: 'kotlin-android-extensions'
//apply plugin: 'org.jetbrains.dokka-android'
apply plugin: 'com.github.dcendents.android-maven'


android {
compileSdkVersion 28

Expand Down

0 comments on commit f4286bf

Please sign in to comment.