android: move RetainedJavaValue to engine package

This commit is contained in:
pengfei.zhou 2021-12-31 17:04:24 +08:00 committed by osborn
parent 829063e0ff
commit 1c4b1181d3
3 changed files with 5 additions and 2 deletions

View File

@ -40,6 +40,7 @@ import java.util.WeakHashMap;
import java.util.concurrent.Callable; import java.util.concurrent.Callable;
import pub.doric.async.AsyncResult; import pub.doric.async.AsyncResult;
import pub.doric.engine.RetainedJavaValue;
import pub.doric.navbar.IDoricNavBar; import pub.doric.navbar.IDoricNavBar;
import pub.doric.navigator.IDoricNavigator; import pub.doric.navigator.IDoricNavigator;
import pub.doric.performance.DoricPerformanceProfile; import pub.doric.performance.DoricPerformanceProfile;

View File

@ -1,10 +1,12 @@
package pub.doric; package pub.doric.engine;
import com.github.pengfeizhou.jscore.JavaValue; import com.github.pengfeizhou.jscore.JavaValue;
import java.lang.ref.SoftReference; import java.lang.ref.SoftReference;
import java.lang.ref.WeakReference; import java.lang.ref.WeakReference;
import pub.doric.DoricContext;
public class RetainedJavaValue extends JavaValue { public class RetainedJavaValue extends JavaValue {
private final WeakReference<DoricContext> contextRef; private final WeakReference<DoricContext> contextRef;

View File

@ -25,7 +25,7 @@ import com.github.pengfeizhou.jscore.JavaValue;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;
import pub.doric.DoricContext; import pub.doric.DoricContext;
import pub.doric.RetainedJavaValue; import pub.doric.engine.RetainedJavaValue;
import pub.doric.async.AsyncResult; import pub.doric.async.AsyncResult;
import pub.doric.extension.bridge.DoricMethod; import pub.doric.extension.bridge.DoricMethod;
import pub.doric.extension.bridge.DoricPlugin; import pub.doric.extension.bridge.DoricPlugin;