Skip to content

Commit

Permalink
fix+chore: hook JNI wrapper methods & bump version (#4)
Browse files Browse the repository at this point in the history
related issue: bunny-mod/Bunny#17

* fix: hook a similar method for loading JS, fixes armv7

* chore: bump version
  • Loading branch information
PalmDevs authored Jul 6, 2024
1 parent 1a0da84 commit a60e902
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ android {
applicationId = "io.github.pyoncord.xposed"
minSdk = 24
targetSdk = 33
versionCode = 202
versionName = "0.2.2"
versionCode = 203
versionName = "0.2.3"
}

buildTypes {
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/kotlin/io/github/pyoncord/xposed/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ class Main : IXposedHookLoadPackage {
for (module in pyonModules) module.onInit(param)

val loadScriptFromAssets = catalystInstanceImpl.getDeclaredMethod(
"jniLoadScriptFromAssets",
"loadScriptFromAssets",
AssetManager::class.java,
String::class.java,
Boolean::class.javaPrimitiveType
).apply { isAccessible = true }

val loadScriptFromFile = catalystInstanceImpl.getDeclaredMethod(
"jniLoadScriptFromFile",
"loadScriptFromFile",
String::class.java,
String::class.java,
Boolean::class.javaPrimitiveType
Expand Down

0 comments on commit a60e902

Please sign in to comment.