Skip to content

Commit 751c161

Browse files
committed
♻️ (quickjs): 重构静态代码块为公共初始化方法
将静态代码块中的 `System.loadLibrary` 调用重构为公共的 `init` 方法,以便更灵活地初始化库。
1 parent 0f9dda5 commit 751c161

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

quickjs-android/src/main/java/com/shiqi/quickjs/QuickJS.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public QuickJS build() {
104104
}
105105
}
106106

107-
static {
107+
public static void init(){
108108
System.loadLibrary("quickjs-android");
109109
}
110110

0 commit comments

Comments
 (0)