Skip to content

Commit

Permalink
Fix/warn (#22)
Browse files Browse the repository at this point in the history
* v3.5.2

* now log.warn control by LOG_ENABLED

* saas plugin params include enableRn
  • Loading branch information
cpacm authored Nov 17, 2023
1 parent 7bc4291 commit 5e0b842
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ fun info(message: String) {
}

fun w(message: String, cause: Throwable? = null) {
System.err.println("[GIO.warn] $message")
cause?.printStackTrace(System.err)
if (LOG_ENABLE) {
System.err.println("[GIO.warn] $message")
cause?.printStackTrace(System.err)
}
}

fun e(message: String, cause: Throwable? = null) {
Expand Down
4 changes: 2 additions & 2 deletions autotracker-gradle-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ buildscript {
set("kotlin_version", "1.8.20")
set("agp_version", "8.1.0")
set("low_agp_version", "4.2.2")
set("releaseVersion", "3.5.2")
set("releaseVersionCode", 30502)
set("releaseVersion", "3.5.3")
set("releaseVersionCode", 30503)

set("saasVersion", "2.10.0")
set("saasVersionCode", "21000")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ class SaasAutoTrackerPlugin @Inject constructor(val instantiator: Instantiator)
params.excludePackages.set(gioExtension.excludePackages ?: arrayOf())
params.includePackages.set(gioExtension.includePackages ?: arrayOf())
params.injectClasses.set(gioExtension.injectClasses ?: arrayOf())
params.enableRn.set(gioExtension.enableRn)
}
androidComponent.setAsmFramesComputationMode(FramesComputationMode.COMPUTE_FRAMES_FOR_INSTRUMENTED_METHODS)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,7 @@ internal interface AutoTrackerParams : InstrumentationParameters {
@get:Input
val includePackages: Property<Array<String>>

@get:Input
val enableRn: Property<Boolean>

}
Original file line number Diff line number Diff line change
Expand Up @@ -142,5 +142,5 @@ fun initInjectClass(extension: AutoTrackerExtension) {
}
}
}
HookClassesConfig.initDefaultInjector(null)
HookClassesConfig.initDefaultInjector(DEFAULT_INJECT_CLASS)
}

0 comments on commit 5e0b842

Please sign in to comment.