diff --git a/bundle/android/buz/buz.android.bundle b/bundle/android/buz/buz.android.bundle index a4c0a78..75afcf6 100644 --- a/bundle/android/buz/buz.android.bundle +++ b/bundle/android/buz/buz.android.bundle @@ -1,7 +1,8 @@ -__d(function(g,r,i,a,m,e,d){r(d[0]),r(d[1])},10000000,[10000001,10000003]); -__d(function(g,r,i,a,m,e,d){var o=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.versionName=e.versionCode=void 0;var n=r(d[1]),t=o(r(d[2]));e.versionName='1.0.2',e.versionCode=3;n.AppRegistry.registerComponent(r(d[3]).Apps.Ywq,function(){return t.default})},10000001,[1,2,10000002,659]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(r(d[1])),n=r(d[2]),s=t(r(d[3])),l=t(r(d[4])),u=r(d[5]),c=r(d[6]);var f=n.StyleSheet.create({container:{flex:1}});e.default=function(){var t='dark'===(0,n.useColorScheme)(),h=(0,u.useState)(''),x=(0,o.default)(h,2),j=x[0],v=x[1];return(0,u.useEffect)(function(){(0,r(d[7]).downloadToFile)('https://download-api.51trust.com/ywx-android-sdk/buz2.android.zip','buz2.android.zip',function(t,o){v(`\u8fdb\u5ea6: ${(t/o*100).toFixed(2)}%`)})},[]),(0,c.jsxs)(n.View,{style:f.container,children:[(0,c.jsx)(n.StatusBar,{barStyle:t?'light-content':'dark-content'}),(0,c.jsx)(n.View,{style:{height:100}}),(0,c.jsxs)(n.Text,{children:["\u533b\u7f51\u7b7e",r(d[8]).versionName,"($",j,")"]}),(0,c.jsx)(n.Button,{title:'onConfirm',onPress:function(){l.default.show('hello Alert',void 0,{action:function(){(0,r(d[9]).NavigationPop)()}})}}),(0,c.jsx)(n.View,{style:{height:15}}),(0,c.jsx)(n.Button,{title:'Toast',onPress:function(){(0,r(d[10]).showMessage)('\u533b\u7f51\u7b7e\u5f39\u51fatoast-error','error')}}),(0,c.jsx)(s.default,{})]})}},10000002,[1,34,2,492,644,71,243,657,10000001,659,670]); -__d(function(g,r,i,a,m,e,d){var o=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.versionName=e.versionCode=void 0;var n=r(d[1]),t=o(r(d[2]));e.versionName='1.0.2',e.versionCode=3;n.AppRegistry.registerComponent(r(d[3]).Apps.Hospital,function(){return t.default})},10000003,[1,2,10000004,659]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(d[1]),o=t(r(d[2])),s=r(d[3]);var l=n.StyleSheet.create({container:{flex:1}});e.default=function(){var t='dark'===(0,n.useColorScheme)();return(0,s.jsxs)(n.View,{style:l.container,children:[(0,s.jsx)(n.StatusBar,{barStyle:t?'light-content':'dark-content'}),(0,s.jsx)(n.View,{style:{height:100}}),(0,s.jsxs)(n.Text,{children:["\u4e92\u8054\u7f51\u533b\u9662",r(d[4]).versionName]}),(0,s.jsx)(n.Button,{title:'\u8fd4\u56de',onPress:function(){(0,r(d[5]).NavigationPop)()}}),(0,s.jsx)(n.View,{style:{height:15}}),(0,s.jsx)(n.Button,{title:'Toast',onPress:function(){(0,r(d[6]).showMessage)('\u4e92\u8054\u7f51\u533b\u9662\u5f39\u51fatoast','info','common\u5411\u4e0b\u517c\u5bb9')}}),(0,s.jsx)(o.default,{})]})}},10000004,[1,2,492,243,10000003,659,670]); +__d(function(g,r,i,a,m,e,d){r(d[0]),r(d[1]),r(d[2])},10000000,[10000001,10000002,10000004]); +__d(function(e,o,n,i,r,s,d){r.exports={versionName:"1.0.2",versionCode:2}},10000001,[]); +__d(function(g,r,i,a,m,e,d){var o=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.versionName=e.versionCode=void 0;var n=r(d[1]),t=o(r(d[2]));e.versionName='1.0.0',e.versionCode=1;n.AppRegistry.registerComponent(r(d[3]).Apps.Ywq,function(){return t.default})},10000002,[1,2,10000003,659]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(r(d[1])),n=r(d[2]),s=t(r(d[3])),l=t(r(d[4])),u=r(d[5]),c=r(d[6]);var f=n.StyleSheet.create({container:{flex:1}});e.default=function(){var t='dark'===(0,n.useColorScheme)(),h=(0,u.useState)(''),x=(0,o.default)(h,2),j=x[0],v=x[1];return(0,u.useEffect)(function(){(0,r(d[7]).downloadToFile)('https://download-api.51trust.com/ywx-android-sdk/buz2.android.zip','buz2.android.zip',function(t,o){v(`\u8fdb\u5ea6: ${(t/o*100).toFixed(2)}%`)})},[]),(0,c.jsxs)(n.View,{style:f.container,children:[(0,c.jsx)(n.StatusBar,{barStyle:t?'light-content':'dark-content'}),(0,c.jsx)(n.View,{style:{height:100}}),(0,c.jsxs)(n.Text,{children:["\u533b\u7f51\u7b7e",r(d[8]).versionName,"($",j,")"]}),(0,c.jsx)(n.Button,{title:'onConfirm',onPress:function(){l.default.show('hello Alert',void 0,{action:function(){(0,r(d[9]).NavigationPop)()}})}}),(0,c.jsx)(n.View,{style:{height:15}}),(0,c.jsx)(n.Button,{title:'Toast',onPress:function(){(0,r(d[10]).showMessage)('\u533b\u7f51\u7b7e\u5f39\u51fatoast-error','error')}}),(0,c.jsx)(s.default,{})]})}},10000003,[1,34,2,492,644,71,243,657,10000002,659,670]); +__d(function(g,r,i,a,m,e,d){var o=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.versionName=e.versionCode=void 0;var n=r(d[1]),t=o(r(d[2]));e.versionName='1.0.0',e.versionCode=1;n.AppRegistry.registerComponent(r(d[3]).Apps.Hospital,function(){return t.default})},10000004,[1,2,10000005,659]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(d[1]),o=t(r(d[2])),s=r(d[3]);var l=n.StyleSheet.create({container:{flex:1}});e.default=function(){var t='dark'===(0,n.useColorScheme)();return(0,s.jsxs)(n.View,{style:l.container,children:[(0,s.jsx)(n.StatusBar,{barStyle:t?'light-content':'dark-content'}),(0,s.jsx)(n.View,{style:{height:100}}),(0,s.jsxs)(n.Text,{children:["\u4e92\u8054\u7f51\u533b\u9662",r(d[4]).versionName]}),(0,s.jsx)(n.Button,{title:'\u8fd4\u56de',onPress:function(){(0,r(d[5]).NavigationPop)()}}),(0,s.jsx)(n.View,{style:{height:15}}),(0,s.jsx)(n.Button,{title:'Toast',onPress:function(){(0,r(d[6]).showMessage)('\u4e92\u8054\u7f51\u533b\u9662\u5f39\u51fatoast','info','common\u5411\u4e0b\u517c\u5bb9')}}),(0,s.jsx)(o.default,{})]})}},10000005,[1,2,492,243,10000004,659,670]); __r(108); __r(10000000); \ No newline at end of file diff --git a/package.json b/package.json index 72f49ea..d8b9fad 100644 --- a/package.json +++ b/package.json @@ -11,8 +11,6 @@ "test": "jest", "build-android-common": "react-native bundle --platform android --dev false --entry-file src/app/app.ts --bundle-output bundle/android/common/common.android.bundle --assets-dest ./bundle/android/common --config metro.common.config.js --minify true --reset-cache", "build-android-buz": "react-native bundle --platform android --dev false --entry-file src/buz.ts --bundle-output ./bundle/android/buz/buz.android.bundle --assets-dest ./bundle/android/buz --config metro.main.config.js --minify true --reset-cache", - "build-android-ywq": "react-native bundle --platform android --dev false --entry-file src/miniapp/ywq/ywq.ts --bundle-output ./bundle/android/ywq.android.bundle --assets-dest ./bundle/android --config metro.main.config.js --minify true --reset-cache", - "build-android-hospital": "react-native bundle --platform android --dev false --entry-file src/miniapp/hospital/hospital.ts --bundle-output bundle/android/hospital.android.bundle --assets-dest ./bundle/android --config metro.main.config.js --minify true --reset-cache", "build-ios-common": "react-native bundle --platform ios --dev false --entry-file src/app/app.ts --bundle-output bundle/ios/common.ios.bundle --assets-dest ./bundle/ios --config metro.common.config.js --minify true --reset-cache", "build-ios-ywq": "react-native bundle --platform ios --dev false --entry-file src/miniapp/ywq/ywq.ts --bundle-output ./bundle/ios/ywq.ios.bundle --assets-dest ./bundle/ios --config metro.main.config.js --minify true --reset-cache", "build-ios-hospital": "react-native bundle --platform ios --dev false --entry-file src/miniapp/hospital/hospital.ts --bundle-output bundle/ios/hospital.ios.bundle --assets-dest ./bundle/ios --config metro.main.config.js --minify true --reset-cache" diff --git a/src/miniapp/info.json b/src/miniapp/info.json new file mode 100644 index 0000000..5d3d31d --- /dev/null +++ b/src/miniapp/info.json @@ -0,0 +1,4 @@ +{ + "versionName": "1.0.2", + "versionCode": 2 +}