-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
65 changed files
with
1,266 additions
and
104 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apply plugin: 'bytex' | ||
ByteX { | ||
enable true | ||
enableInDebug true | ||
logLevel "DEBUG" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apply plugin: "s1.hugo2.bytex" | ||
hugo2ByteX { | ||
enable true | ||
enableInDebug true | ||
logLevel "DEBUG" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apply plugin: "s1.stick.bytex" | ||
stickByteX { | ||
enable true | ||
enableInDebug true | ||
enableAnnotation true | ||
logLevel "DEBUG" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apply plugin: "s1.willfix.bytex" | ||
willFixByteX { | ||
enable true | ||
enableInDebug true | ||
logLevel "DEBUG" | ||
exceptionHandler "wtf.s1.pudge.ExceptionHandler#log#(Ljava/lang/Exception;)V" | ||
methodList = [ | ||
"wtf.s1.pudge.Test#getMsgSize#()I", | ||
"wtf.s1.pudge.Test#setError#(I)V", | ||
"com.google.firebase.perf.network.InstrumentOkHttpEnqueueCallback#onResponse#(Lokhttp3/Call;Lokhttp3/Response;)V" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package wtf.s1.pudge | ||
|
||
import android.app.Application | ||
import android.content.Context | ||
import android.util.Log | ||
import wtf.s1.pudge.hugo2.Hugo2 | ||
import wtf.s1.stick.core.ITracer | ||
import wtf.s1.stick.core.MethodTrace | ||
|
||
class App: Application() { | ||
|
||
override fun attachBaseContext(base: Context?) { | ||
super.attachBaseContext(base) | ||
MethodTrace.setImpl(object: ITracer { | ||
|
||
override fun i(method: Int) { | ||
|
||
} | ||
|
||
override fun o(method: Int) { | ||
|
||
} | ||
}) | ||
|
||
Hugo2.setLogger(object: Hugo2.Hugo2Logger { | ||
override fun logI(clazz: String, method: String, params: String) { | ||
super.logI(clazz, method, params) | ||
Log.i("hugo", "---> $clazz $method $params") | ||
} | ||
|
||
override fun logO(clazz: String, method: String) { | ||
super.logO(clazz, method) | ||
Log.i("hugo", "<--- $clazz $method") | ||
} | ||
}) | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...n/java/wtf/s1/willfix/ExceptionHandler.kt → ...ain/java/wtf/s1/pudge/ExceptionHandler.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package wtf.s1.willfix | ||
package wtf.s1.pudge | ||
|
||
import android.util.Log | ||
|
||
|
6 changes: 4 additions & 2 deletions
6
.../main/java/wtf/s1/willfix/MainActivity.kt → ...rc/main/java/wtf/s1/pudge/MainActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
package wtf.s1.willfix | ||
package wtf.s1.pudge | ||
|
||
import androidx.appcompat.app.AppCompatActivity | ||
import android.os.Bundle | ||
import android.util.Log | ||
import wtf.s1.pudge.R | ||
|
||
class MainActivity : AppCompatActivity() { | ||
|
||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
setContentView(R.layout.activity_main) | ||
|
||
val a = Test() | ||
a.setError(0) | ||
a.testStick(false, 4, null, intArrayOf(1,9,9,7,0,7,0,1)) | ||
Log.i("willfix", "${a.msgSize}") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package wtf.s1.pudge; | ||
|
||
import wtf.s1.pudge.hugo2.DebugLog; | ||
import wtf.s1.stick.core.Stick; | ||
|
||
public class Test { | ||
|
||
public String msg; | ||
public int error; | ||
|
||
@Stick | ||
public int getMsgSize() { | ||
return msg.length(); | ||
} | ||
|
||
@Stick | ||
public void setError(int err) { | ||
error = 100 / err; | ||
} | ||
|
||
@Stick | ||
@DebugLog | ||
public void testStick(boolean b, int i, String s, int[] ooo) { | ||
StringBuilder sb = new StringBuilder(); | ||
sb.append(b); | ||
sb.append(i); | ||
sb.append(s); | ||
if (ooo != null) { | ||
sb.append(ooo.length); | ||
} | ||
System.out.print(sb); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
apply plugin: 'com.android.library' | ||
apply plugin: 'kotlin-android' | ||
|
||
android { | ||
compileSdkVersion 30 | ||
buildToolsVersion "30.0.3" | ||
|
||
defaultConfig { | ||
minSdkVersion 16 | ||
targetSdkVersion 30 | ||
versionCode 1 | ||
versionName "1.0" | ||
|
||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" | ||
consumerProguardFiles "consumer-rules.pro" | ||
} | ||
|
||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
compileOptions { | ||
sourceCompatibility JavaVersion.VERSION_1_8 | ||
targetCompatibility JavaVersion.VERSION_1_8 | ||
} | ||
kotlinOptions { | ||
jvmTarget = '1.8' | ||
} | ||
} | ||
|
||
|
||
version = VERSION_NAME | ||
group = GROUP | ||
|
||
apply from: rootProject.file('release.gradle') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apply plugin: 'kotlin' | ||
|
||
java { | ||
sourceCompatibility = JavaVersion.VERSION_1_8 | ||
targetCompatibility = JavaVersion.VERSION_1_8 | ||
} | ||
compileKotlin { | ||
kotlinOptions.jvmTarget = "1.8" | ||
} | ||
|
||
version = VERSION_NAME | ||
group = GROUP | ||
|
||
apply from: rootProject.file('release.gradle') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apply plugin: 'java-gradle-plugin' | ||
apply plugin: 'kotlin' | ||
|
||
java { | ||
sourceCompatibility = JavaVersion.VERSION_1_8 | ||
targetCompatibility = JavaVersion.VERSION_1_8 | ||
} | ||
compileKotlin { | ||
kotlinOptions.jvmTarget = "1.8" | ||
} | ||
|
||
version = VERSION_NAME | ||
group = GROUP | ||
|
||
apply from: rootProject.file('release.gradle') |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apply from: rootProject.file('gradle/plugin-build.gradle') | ||
|
||
import wtf.s1.buildsrc.ClassPaths | ||
import wtf.s1.buildsrc.Deps | ||
|
||
dependencies { | ||
implementation fileTree(include: ['*.jar'], dir: 'libs') | ||
compileOnly(ClassPaths.gradlePlugin) | ||
implementation(ClassPaths.gradleApi) | ||
implementation(Deps.ByteX.common) | ||
implementation(project(':hugo2-core')) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
POM_NAME=hugo2-bytex | ||
POM_DESCRIPTION=hugo bytex plugin | ||
POM_ARTIFACT_ID=hugo2-bytex | ||
POM_PACKAGING=aar | ||
VERSION_NAME=0.1.1 |
Oops, something went wrong.