setTimeout(() => { console.log('this is a timeout, will exec after');}, 0);Promise.resolve().then((value) => { console.log('this is a Promise, will exec before');});
dependencies { // lynx dependencies implementation "org.lynxsdk.lynx:lynx:3.2.0" implementation "org.lynxsdk.lynx:lynx-jssdk:3.2.0" implementation "org.lynxsdk.lynx:lynx-trace:3.2.0" implementation "org.lynxsdk.lynx:primjs:2.12.0" // integrating image-service implementation "org.lynxsdk.lynx:lynx-service-image:3.2.0" // image-service dependencies, if not added, images cannot be loaded; if the host APP needs to use other image libraries, you can customize the image-service and remove this dependency implementation "com.facebook.fresco:fresco:2.3.0" implementation "com.facebook.fresco:animated-gif:2.3.0" implementation "com.facebook.fresco:animated-webp:2.3.0" implementation "com.facebook.fresco:webpsupport:2.3.0" implementation "com.facebook.fresco:animated-base:2.3.0" // integrating log-service implementation "org.lynxsdk.lynx:lynx-service-log:3.2.0" // integrating http-service implementation "org.lynxsdk.lynx:lynx-service-http:3.2.0" implementation "com.squareup.okhttp3:okhttp:4.9.0"}
build.gradle.kts
dependencies { // lynx dependencies implementation("org.lynxsdk.lynx:lynx:3.2.0") implementation("org.lynxsdk.lynx:lynx-jssdk:3.2.0") implementation("org.lynxsdk.lynx:lynx-trace:3.2.0") implementation("org.lynxsdk.lynx:primjs:2.12.0") // integrating image-service implementation("org.lynxsdk.lynx:lynx-service-image:3.2.0-") // image-service dependencies, if not added, images cannot be loaded; if the host APP needs to use other image libraries, you can customize the image-service and remove this dependency implementation("com.facebook.fresco:fresco:2.3.0") implementation("com.facebook.fresco:animated-gif:2.3.0") implementation("com.facebook.fresco:animated-webp:2.3.0") implementation("com.facebook.fresco:webpsupport:2.3.0") implementation("com.facebook.fresco:animated-base:2.3.0") // integrating log-service implementation("org.lynxsdk.lynx:lynx-service-log:3.2.0") // integrating http-service implementation("org.lynxsdk.lynx:lynx-service-http:3.2.0") implementation("com.squareup.okhttp3:okhttp:4.9.0")}