diff --git a/doric-android/app/build.gradle b/doric-android/app/build.gradle index 816f1ce7..6d8d929a 100644 --- a/doric-android/app/build.gradle +++ b/doric-android/app/build.gradle @@ -36,4 +36,5 @@ dependencies { implementation 'androidx.constraintlayout:constraintlayout:1.1.3' annotationProcessor 'com.github.bumptech.glide:compiler:4.10.0' debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.0' + implementation "com.qmuiteam:qmui:1.4.0" } diff --git a/doric-android/app/src/main/java/pub/doric/demo/MainActivity.java b/doric-android/app/src/main/java/pub/doric/demo/MainActivity.java index 3689388a..5fcb8928 100644 --- a/doric-android/app/src/main/java/pub/doric/demo/MainActivity.java +++ b/doric-android/app/src/main/java/pub/doric/demo/MainActivity.java @@ -43,7 +43,6 @@ public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); final DoricSwipeLayout swipeLayout = findViewById(R.id.swipe_layout); swipeLayout.setOnRefreshListener(new DoricSwipeLayout.OnRefreshListener() { @@ -64,6 +63,9 @@ public class MainActivity extends AppCompatActivity { String[] demos = getAssets().list("src"); List ret = new ArrayList<>(); for (String str : demos) { + if (str.endsWith(".es5.js")) { + continue; + } if (str.endsWith("js")) { ret.add(str); } 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 55f0f7e7..83033e0e 100644 --- a/doric-android/doric/src/main/java/pub/doric/DoricContext.java +++ b/doric-android/doric/src/main/java/pub/doric/DoricContext.java @@ -186,6 +186,7 @@ public class DoricContext { this.script = script; this.mRootNode.setId(""); getDriver().createContext(mContextId, script, source); + callEntity(DoricConstant.DORIC_ENTITY_CREATE); callEntity(DoricConstant.DORIC_ENTITY_INIT, this.initParams, extra); onShow(); } diff --git a/doric-iOS/Pod/Classes/DoricContext.m b/doric-iOS/Pod/Classes/DoricContext.m index 9fa4f426..ba6ee813 100644 --- a/doric-iOS/Pod/Classes/DoricContext.m +++ b/doric-iOS/Pod/Classes/DoricContext.m @@ -92,7 +92,8 @@ - (void)reload:(NSString *)script { self.rootNode.viewId = nil; self.script = script; [self.driver createContext:self.contextId script:script source:self.source]; - [self callEntity:DORIC_ENTITY_INIT, self.initialParams, nil]; + [self callEntity:DORIC_ENTITY_CREATE, nil]; + [self callEntity:DORIC_ENTITY_INIT, self.initialParams, self.extra, nil]; [self onShow]; }