fix+chore: hook JNI wrapper methods & bump version (#4)

related issue: https://github.com/pyoncord/Bunny/issues/17

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

* chore: bump version
This commit is contained in:
Palm 2024-07-06 11:51:00 +07:00 • committed by GitHub
parent 1a0da84c13
commit a60e902e71
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -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 {

View file

@ -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