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:
parent
1a0da84c13
commit
a60e902e71
2 changed files with 4 additions and 4 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue