From 1c4b1181d327378afb0e2dd1278833449ccc95b8 Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Fri, 31 Dec 2021 17:04:24 +0800 Subject: [PATCH] android: move RetainedJavaValue to engine package --- doric-android/doric/src/main/java/pub/doric/DoricContext.java | 1 + .../main/java/pub/doric/{ => engine}/RetainedJavaValue.java | 4 +++- .../src/main/java/pub/doric/plugin/ImageDecoderPlugin.java | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) rename doric-android/doric/src/main/java/pub/doric/{ => engine}/RetainedJavaValue.java (93%) diff --git a/doric-android/doric/src/main/java/pub/doric/DoricContext.java b/doric-android/doric/src/main/java/pub/doric/DoricContext.java index 9c71c87c..8a76649e 100644 --- a/doric-android/doric/src/main/java/pub/doric/DoricContext.java +++ b/doric-android/doric/src/main/java/pub/doric/DoricContext.java @@ -40,6 +40,7 @@ import java.util.WeakHashMap; import java.util.concurrent.Callable; import pub.doric.async.AsyncResult; +import pub.doric.engine.RetainedJavaValue; import pub.doric.navbar.IDoricNavBar; import pub.doric.navigator.IDoricNavigator; import pub.doric.performance.DoricPerformanceProfile; diff --git a/doric-android/doric/src/main/java/pub/doric/RetainedJavaValue.java b/doric-android/doric/src/main/java/pub/doric/engine/RetainedJavaValue.java similarity index 93% rename from doric-android/doric/src/main/java/pub/doric/RetainedJavaValue.java rename to doric-android/doric/src/main/java/pub/doric/engine/RetainedJavaValue.java index d3436d06..74735e29 100644 --- a/doric-android/doric/src/main/java/pub/doric/RetainedJavaValue.java +++ b/doric-android/doric/src/main/java/pub/doric/engine/RetainedJavaValue.java @@ -1,10 +1,12 @@ -package pub.doric; +package pub.doric.engine; import com.github.pengfeizhou.jscore.JavaValue; import java.lang.ref.SoftReference; import java.lang.ref.WeakReference; +import pub.doric.DoricContext; + public class RetainedJavaValue extends JavaValue { private final WeakReference contextRef; diff --git a/doric-android/doric/src/main/java/pub/doric/plugin/ImageDecoderPlugin.java b/doric-android/doric/src/main/java/pub/doric/plugin/ImageDecoderPlugin.java index ee970158..7d9e6861 100644 --- a/doric-android/doric/src/main/java/pub/doric/plugin/ImageDecoderPlugin.java +++ b/doric-android/doric/src/main/java/pub/doric/plugin/ImageDecoderPlugin.java @@ -25,7 +25,7 @@ import com.github.pengfeizhou.jscore.JavaValue; import java.nio.ByteBuffer; import pub.doric.DoricContext; -import pub.doric.RetainedJavaValue; +import pub.doric.engine.RetainedJavaValue; import pub.doric.async.AsyncResult; import pub.doric.extension.bridge.DoricMethod; import pub.doric.extension.bridge.DoricPlugin;