Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
[Android] update jsfm to 0.27
Browse files Browse the repository at this point in the history
[Android] add data record

[Android] add build script for build runtime-jss.so
  • Loading branch information
zhongcang committed Jul 4, 2019
1 parent d702306 commit ebb943a
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 5 deletions.
24 changes: 24 additions & 0 deletions android/sdk/build_jss_r.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
echo "--> # buils jsc_runtime so"


../gradlew assembleRelease -PbuildRuntimeApi=true


echo "--> ## cp jss_runtime so"

unzip -o build/outputs/aar/weex_sdk-release.aar -d build/outputs/aar/weex_sdk-release


cp build/outputs/aar/weex_sdk-release/jni/armeabi-v7a/libweexjss.so libs/armeabi-v7a/libweexjssr.so
cp build/outputs/aar/weex_sdk-release/jni/arm64-v8a/libweexjss.so libs/arm64-v8a/libweexjssr.so
cp build/outputs/aar/weex_sdk-release/jni/x86/libweexjss.so libs/x86/libweexjssr.so


echo "--> ## cp jss_runtime Symbol so"

rm -rf unstrippedSo
mkdir unstrippedSo

cp build/unstrippedSo/armeabi-v7a_libweexjss.so unstrippedSo/armeabi-v7a_libweexjssr.so
cp build/unstrippedSo/arm64-v8a_libweexjss.so unstrippedSo/arm64-v8a_libweexjssr.so
cp build/unstrippedSo/x86_libweexjss.so unstrippedSo/x86_libweexjssr.so
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ public void doInit() {
addProperty(KEY_PROPERTIES_ERROR_CODE, VALUE_ERROR_CODE_DEFAULT);
addProperty(KEY_PAGE_PROPERTIES_JSLIB_VERSION, WXEnvironment.JS_LIB_SDK_VERSION);
addProperty(KEY_PAGE_PROPERTIES_WEEX_VERSION, WXEnvironment.WXSDK_VERSION);
addProperty("wxUseRuntimeApi",WXEnvironment.sUseRunTimeApi);
if (instance != null && (instance.getRenderStrategy() == WXRenderStrategy.DATA_RENDER
|| instance.getRenderStrategy() == WXRenderStrategy.DATA_RENDER_BINARY)) {
addProperty(KEY_PAGE_PROPERTIES_RENDER_TYPE, WXEnvironment.EAGLE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,11 @@ public static void commitCriticalExceptionWithDefaultUrl(
Map<String, String> commitMap = extParams;
if (null == commitMap){
commitMap = new HashMap<>();
commitMap.put("wxSdkInitStartTime", String.valueOf(WXEnvironment.sSDKInitStart));
commitMap.put("wxSDKInitCostTime", String.valueOf(WXEnvironment.sSDKInitTime));
commitMap.put("wxSDKCurExceptionTime", String.valueOf(System.currentTimeMillis()));
}
commitMap.put("wxSdkInitStartTime", String.valueOf(WXEnvironment.sSDKInitStart));
commitMap.put("wxSDKInitCostTime", String.valueOf(WXEnvironment.sSDKInitTime));
commitMap.put("wxSDKCurExceptionTime", String.valueOf(System.currentTimeMillis()));
commitMap.put("wxUseRuntimeApi",String.valueOf(WXEnvironment.sUseRunTimeApi));
if (!TextUtils.isEmpty(instanceId)) {
instanceIdCommit = instanceId;
instance = WXSDKManager.getInstance().getAllInstanceMap().get(instanceId);
Expand Down
4 changes: 2 additions & 2 deletions pre-build/weex-main-jsfm.js

Large diffs are not rendered by default.

0 comments on commit ebb943a

Please sign in to comment.