-
Notifications
You must be signed in to change notification settings - Fork 2
Example_lib_usage
Cregrant edited this page Dec 27, 2023
·
2 revisions
Add Jitpack and SmaliScissors dependency:
allprojects {
repositories {
google()
mavenCentral()
jcenter()
maven { url "https://jitpack.io" }
}
}
dependencies {
//patcher
implementation 'com.github.Cregrant.SmaliScissors:patcher:v1.0.1'
}Add the logback.xml config to your resources folder
<?xml version="1.0" encoding="UTF-8" ?>
<configuration>
<!-- <statusListener class="ch.qos.logback.core.status.OnConsoleStatusListener"/>-->
<property name="VERBOSE_DEBUG_PATTERN" value="%d{HH:mm:ss.SSS} %level [%thread] %logger %msg%n"/>
<appender name="PATCHER" class="ch.qos.logback.core.ConsoleAppender">
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>INFO</level>
</filter>
</appender>
<appender name="PATCHER_FILE_DEBUG" class="ch.qos.logback.core.FileAppender">
<append>false</append>
<immediateFlush>true</immediateFlush>
<encoder>
<pattern>${VERBOSE_DEBUG_PATTERN}</pattern>
</encoder>
</appender>
<logger name="com.github.cregrant.smaliscissors" level="DEBUG">
<appender-ref ref="PATCHER"/>
<appender-ref ref="PATCHER_FILE_DEBUG"/>
</logger>
</configuration>Provide
- a project path
- a
PatcherTaskwith (patch file or internal smali) path - your
DexExecutor&SmaliGenerator
Example

