Browse Source

优化工程&模块使用清晰化

module-tcpserver-mqtt-t4j-faceSDK
zmt 3 years ago
parent
commit
2e219a4d28
  1. 2
      app/src/main/assets/apps/__UNI__2B9497D/www/app-service.js
  2. 2
      app/src/main/assets/apps/__UNI__2B9497D/www/app-view.js
  3. 2
      app/src/main/assets/apps/__UNI__2B9497D/www/pages/index/scan.js
  4. 2
      app/src/main/assets/apps/__UNI__2B9497D/www/pages/sample/ext-component.js
  5. 2
      app/src/main/assets/apps/__UNI__2B9497D/www/pages/sample/ext-module.js
  6. 1
      app/src/main/assets/apps/__UNI__2B9497D/www1/__uniappchooselocation.js
  7. BIN
      app/src/main/assets/apps/__UNI__2B9497D/www1/__uniapperror.png
  8. 1
      app/src/main/assets/apps/__UNI__2B9497D/www1/__uniappes6.js
  9. 1
      app/src/main/assets/apps/__UNI__2B9497D/www1/__uniappopenlocation.js
  10. 1
      app/src/main/assets/apps/__UNI__2B9497D/www1/__uniapppicker.js
  11. 8
      app/src/main/assets/apps/__UNI__2B9497D/www1/__uniappquill.js
  12. 1
      app/src/main/assets/apps/__UNI__2B9497D/www1/__uniappquillimageresize.js
  13. 1
      app/src/main/assets/apps/__UNI__2B9497D/www1/__uniappscan.js
  14. BIN
      app/src/main/assets/apps/__UNI__2B9497D/www1/__uniappsuccess.png
  15. 25
      app/src/main/assets/apps/__UNI__2B9497D/www1/__uniappview.html
  16. 8
      app/src/main/assets/apps/__UNI__2B9497D/www1/app-config-service.js
  17. 1
      app/src/main/assets/apps/__UNI__2B9497D/www1/app-config.js
  18. 1
      app/src/main/assets/apps/__UNI__2B9497D/www1/app-service.js
  19. 1
      app/src/main/assets/apps/__UNI__2B9497D/www1/app-view.js
  20. 1
      app/src/main/assets/apps/__UNI__2B9497D/www1/manifest.json
  21. 1
      app/src/main/assets/apps/__UNI__2B9497D/www1/pages/index/scan.js
  22. 1
      app/src/main/assets/apps/__UNI__2B9497D/www1/pages/sample/ext-component.js
  23. 1
      app/src/main/assets/apps/__UNI__2B9497D/www1/pages/sample/ext-module.js
  24. BIN
      app/src/main/assets/apps/__UNI__2B9497D/www1/static/logo.png
  25. 169
      app/src/main/assets/apps/__UNI__2B9497D/www1/static/new_file.json
  26. 1
      app/src/main/assets/apps/__UNI__2B9497D/www1/view.css
  27. 6
      app/src/main/assets/apps/__UNI__2B9497D/www1/view.umd.min.js
  28. 1
      app/src/main/assets/apps/__UNI__2B9497D/www1/www/__uniappchooselocation.js
  29. BIN
      app/src/main/assets/apps/__UNI__2B9497D/www1/www/__uniapperror.png
  30. 1
      app/src/main/assets/apps/__UNI__2B9497D/www1/www/__uniappes6.js
  31. 1
      app/src/main/assets/apps/__UNI__2B9497D/www1/www/__uniappopenlocation.js
  32. 1
      app/src/main/assets/apps/__UNI__2B9497D/www1/www/__uniapppicker.js
  33. 8
      app/src/main/assets/apps/__UNI__2B9497D/www1/www/__uniappquill.js
  34. 1
      app/src/main/assets/apps/__UNI__2B9497D/www1/www/__uniappquillimageresize.js
  35. 1
      app/src/main/assets/apps/__UNI__2B9497D/www1/www/__uniappscan.js
  36. BIN
      app/src/main/assets/apps/__UNI__2B9497D/www1/www/__uniappsuccess.png
  37. 25
      app/src/main/assets/apps/__UNI__2B9497D/www1/www/__uniappview.html
  38. 8
      app/src/main/assets/apps/__UNI__2B9497D/www1/www/app-config-service.js
  39. 1
      app/src/main/assets/apps/__UNI__2B9497D/www1/www/app-config.js
  40. 1
      app/src/main/assets/apps/__UNI__2B9497D/www1/www/app-service.js
  41. 1
      app/src/main/assets/apps/__UNI__2B9497D/www1/www/app-view.js
  42. 1
      app/src/main/assets/apps/__UNI__2B9497D/www1/www/manifest.json
  43. 1
      app/src/main/assets/apps/__UNI__2B9497D/www1/www/pages/index/scan.js
  44. 1
      app/src/main/assets/apps/__UNI__2B9497D/www1/www/pages/sample/ext-component.js
  45. 1
      app/src/main/assets/apps/__UNI__2B9497D/www1/www/pages/sample/ext-module.js
  46. BIN
      app/src/main/assets/apps/__UNI__2B9497D/www1/www/static/logo.png
  47. 169
      app/src/main/assets/apps/__UNI__2B9497D/www1/www/static/new_file.json
  48. 1
      app/src/main/assets/apps/__UNI__2B9497D/www1/www/view.css
  49. 6
      app/src/main/assets/apps/__UNI__2B9497D/www1/www/view.umd.min.js
  50. 2
      app/src/main/assets/dcloud_uniplugins.json
  51. 2
      face_module/src/main/java/com/appdev/face_module/faceClass.java
  52. 107
      uniapp示例工程源码/unipluginDemo/pages/sample/ext-module.nvue
  53. 2
      uniapp示例工程源码/unipluginDemo/unpackage/dist/build/app-plus/app-service.js
  54. 2
      uniapp示例工程源码/unipluginDemo/unpackage/dist/build/app-plus/app-view.js
  55. 2
      uniapp示例工程源码/unipluginDemo/unpackage/dist/build/app-plus/pages/index/scan.js
  56. 2
      uniapp示例工程源码/unipluginDemo/unpackage/dist/build/app-plus/pages/sample/ext-component.js
  57. 2
      uniapp示例工程源码/unipluginDemo/unpackage/dist/build/app-plus/pages/sample/ext-module.js
  58. 2
      uniapp示例工程源码/unipluginDemo/unpackage/resources/__UNI__2B9497D/www/app-service.js
  59. 2
      uniapp示例工程源码/unipluginDemo/unpackage/resources/__UNI__2B9497D/www/app-view.js
  60. 2
      uniapp示例工程源码/unipluginDemo/unpackage/resources/__UNI__2B9497D/www/pages/index/scan.js
  61. 2
      uniapp示例工程源码/unipluginDemo/unpackage/resources/__UNI__2B9497D/www/pages/sample/ext-component.js
  62. 2
      uniapp示例工程源码/unipluginDemo/unpackage/resources/__UNI__2B9497D/www/pages/sample/ext-module.js
  63. 4
      uniplugin_module/src/main/java/io/dcloud/uniplugin/TestModule.java
  64. 4
      uniplugin_module_ox/src/main/java/net/ouxuan/uniplugin_module_ox/TestModule2.java
  65. 4
      zmt_module/src/main/java/io/dcloud/zmt_module/zmtClass.java

2
app/src/main/assets/apps/__UNI__2B9497D/www/app-service.js
File diff suppressed because it is too large
View File

2
app/src/main/assets/apps/__UNI__2B9497D/www/app-view.js
File diff suppressed because it is too large
View File

2
app/src/main/assets/apps/__UNI__2B9497D/www/pages/index/scan.js
File diff suppressed because it is too large
View File

2
app/src/main/assets/apps/__UNI__2B9497D/www/pages/sample/ext-component.js
File diff suppressed because it is too large
View File

2
app/src/main/assets/apps/__UNI__2B9497D/www/pages/sample/ext-module.js
File diff suppressed because it is too large
View File

1
app/src/main/assets/apps/__UNI__2B9497D/www1/__uniappchooselocation.js
File diff suppressed because it is too large
View File

BIN
app/src/main/assets/apps/__UNI__2B9497D/www1/__uniapperror.png

After

Width: 200  |  Height: 200  |  Size: 5.7 KiB

1
app/src/main/assets/apps/__UNI__2B9497D/www1/__uniappes6.js
File diff suppressed because it is too large
View File

1
app/src/main/assets/apps/__UNI__2B9497D/www1/__uniappopenlocation.js
File diff suppressed because it is too large
View File

1
app/src/main/assets/apps/__UNI__2B9497D/www1/__uniapppicker.js
File diff suppressed because it is too large
View File

8
app/src/main/assets/apps/__UNI__2B9497D/www1/__uniappquill.js
File diff suppressed because it is too large
View File

1
app/src/main/assets/apps/__UNI__2B9497D/www1/__uniappquillimageresize.js
File diff suppressed because it is too large
View File

1
app/src/main/assets/apps/__UNI__2B9497D/www1/__uniappscan.js
File diff suppressed because it is too large
View File

BIN
app/src/main/assets/apps/__UNI__2B9497D/www1/__uniappsuccess.png

After

Width: 165  |  Height: 165  |  Size: 2.0 KiB

25
app/src/main/assets/apps/__UNI__2B9497D/www1/__uniappview.html

@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<script>
var __UniViewStartTime__ = Date.now();
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
CSS.supports('top: constant(a)'))
document.write(
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
(coverSupport ? ', viewport-fit=cover' : '') + '" />')
</script>
<title>View</title>
<link rel="stylesheet" href="view.css" />
</head>
<body>
<div id="app"></div>
<script src="__uniappes6.js"></script>
<script src="view.umd.min.js"></script>
<script src="app-view.js"></script>
</body>
</html>

8
app/src/main/assets/apps/__UNI__2B9497D/www1/app-config-service.js

@ -0,0 +1,8 @@
var isReady=false;var onReadyCallbacks=[];
var isServiceReady=false;var onServiceReadyCallbacks=[];
var __uniConfig = {"pages":["pages/index/index","pages/index/ball_list","pages/index/scan","pages/sample/ext-module","pages/sample/ext-component","pages/sample/richAlert"],"window":{"navigationBarTextStyle":"black","navigationBarTitleText":"uni-app","navigationBarBackgroundColor":"#F8F8F8","backgroundColor":"#F8F8F8"},"nvueCompiler":"uni-app","nvueStyleCompiler":"weex","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"unipluginDemo","compilerVersion":"3.3.11","entryPagePath":"pages/index/index","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}};
var __uniRoutes = [{"path":"/pages/index/index","meta":{"isQuit":true},"window":{"navigationBarTitleText":"uni-app"}},{"path":"/pages/index/ball_list","meta":{},"window":{"navigationBarTitleText":"uni-app"}},{"path":"/pages/index/scan","meta":{"isNVue":true},"window":{"navigationBarTitleText":"22222"}},{"path":"/pages/sample/ext-module","meta":{"isNVue":true},"window":{"navigationBarTitleText":"扩展 module"}},{"path":"/pages/sample/ext-component","meta":{"isNVue":true},"window":{"navigationBarTitleText":"扩展 component"}},{"path":"/pages/sample/richAlert","meta":{},"window":{"navigationBarTitleText":"RichAlert"}}];
__uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
__uniConfig.onServiceReady=function(callback){if(__uniConfig.serviceReady){callback()}else{onServiceReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"serviceReady",{get:function(){return isServiceReady},set:function(val){isServiceReady=val;if(!isServiceReady){return}const callbacks=onServiceReadyCallbacks.slice(0);onServiceReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
service.register("uni-app-config",{create(a,b,c){if(!__uniConfig.viewport){var d=b.weex.config.env.scale,e=b.weex.config.env.deviceWidth,f=Math.ceil(e/d);Object.assign(__uniConfig,{viewport:f,defaultFontSize:Math.round(f/20)})}return{instance:{__uniConfig:__uniConfig,__uniRoutes:__uniRoutes,global:void 0,window:void 0,document:void 0,frames:void 0,self:void 0,location:void 0,navigator:void 0,localStorage:void 0,history:void 0,Caches:void 0,screen:void 0,alert:void 0,confirm:void 0,prompt:void 0,fetch:void 0,XMLHttpRequest:void 0,WebSocket:void 0,webkit:void 0,print:void 0}}}});

1
app/src/main/assets/apps/__UNI__2B9497D/www1/app-config.js

@ -0,0 +1 @@
(function(e){function r(r){for(var n,l,i=r[0],p=r[1],a=r[2],c=0,s=[];c<i.length;c++)l=i[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in p)Object.prototype.hasOwnProperty.call(p,n)&&(e[n]=p[n]);f&&f(r);while(s.length)s.shift()();return u.push.apply(u,a||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,i=1;i<t.length;i++){var p=t[i];0!==o[p]&&(n=!1)}n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={"app-config":0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,function(r){return e[r]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e["default"]}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="/";var i=this["webpackJsonp"]=this["webpackJsonp"]||[],p=i.push.bind(i);i.push=r,i=i.slice();for(var a=0;a<i.length;a++)r(i[a]);var f=p;t()})([]);

1
app/src/main/assets/apps/__UNI__2B9497D/www1/app-service.js
File diff suppressed because it is too large
View File

1
app/src/main/assets/apps/__UNI__2B9497D/www1/app-view.js
File diff suppressed because it is too large
View File

1
app/src/main/assets/apps/__UNI__2B9497D/www1/manifest.json

@ -0,0 +1 @@
{"@platforms":["android","iPhone","iPad"],"id":"__UNI__2B9497D","name":"unipluginDemo","version":{"name":"1.0.0","code":"100"},"description":"","launch_path":"__uniappview.html","developer":{"name":"","email":"","url":""},"permissions":{"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"target":"id:1","autoclose":true,"waiting":true,"delay":0},"popGesture":"close","launchwebview":{"render":"always","id":"1","kernel":"WKWebview"},"statusbar":{"immersed":"supportedDevice","style":"dark","background":"#F8F8F8"},"usingComponents":true,"nvueCompiler":"uni-app","compilerVersion":3,"allowsInlineMediaPlayback":true,"uni-app":{"compilerVersion":"3.3.11","control":"uni-v3","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal"},"launch_path":"__uniappview.html"}}

1
app/src/main/assets/apps/__UNI__2B9497D/www1/pages/index/scan.js
File diff suppressed because it is too large
View File

1
app/src/main/assets/apps/__UNI__2B9497D/www1/pages/sample/ext-component.js
File diff suppressed because it is too large
View File

1
app/src/main/assets/apps/__UNI__2B9497D/www1/pages/sample/ext-module.js
File diff suppressed because it is too large
View File

BIN
app/src/main/assets/apps/__UNI__2B9497D/www1/static/logo.png

After

Width: 72  |  Height: 72  |  Size: 3.9 KiB

169
app/src/main/assets/apps/__UNI__2B9497D/www1/static/new_file.json

@ -0,0 +1,169 @@
{
"id": "__UNI__09EF501",
"name": "掌上喵",
"version": {
"name": "1.4.40",
"code": 1440
},
"description": "",
"launch_path": "__uniappview.html",
"developer": {
"name": "",
"email": "",
"url": ""
},
"permissions": {
"OAuth": {
"description": "OAuth"
},
"Share": {
"description": "plus.share.*"
},
"VideoPlayer": {
"description": "VideoPlayer"
},
"Push": {
"description": "Push"
},
"UniNView": {
"description": "UniNView"
},
"Stream": {
"description": "plus.stream.*"
},
"Confusion": {
"description": "Resource confusion"
},
"Audio": {
"description": "plus.audio.*"
},
"Accelerometer": {
"description": "plus.accelerometer.*"
},
"Barcode": {
"description": "plus.barcode.*"
},
"Cache": {
"description": "plus.cache.*"
},
"Camera": {
"description": "plus.camera.*"
},
"Console": {
"description": "plus.console.*"
},
"Device": {
"description": "plus.device.*"
},
"Downloader": {
"description": "plus.downloader.*"
},
"File": {
"description": "plus.io.*"
},
"Gallery": {
"description": "plus.gallery.*"
},
"Geolocation": {
"description": "plus.geolocation.*"
},
"Invocation": {
"description": "plus.android.*"
},
"NativeObj": {
"description": "plus.nativeObj.*"
},
"NativeUI": {
"description": "plus.nativeUI.*"
},
"Navigator": {
"description": "plus.navigator.*"
},
"Orientation": {
"description": "plus.orientation.*"
},
"Proximity": {
"description": "plus.proximity.*"
},
"Runtime": {
"description": "plus.runtime.*"
},
"Storage": {
"description": "plus.storage.*"
},
"Uploader": {
"description": "plus.uploader.*"
},
"Webview": {
"description": "plus.webview.*"
},
"XMLHttpRequest": {
"description": "plus.net.*"
},
"Zip": {
"description": "plus.zip.*"
}
},
"plus": {
"useragent": {
"value": "uni-app",
"concatenate": true
},
"splashscreen": {
"target": "id:1",
"autoclose": true,
"waiting": false,
"delay": 0
},
"popGesture": "close",
"launchwebview": {
"id": "1",
"kernel": "WKWebview",
"uni-app": "auto"
},
"statusbar": {
"immersed": "supportedDevice",
"style": "dark",
"background": "#F7F7F7"
},
"compatible": {
"ignoreVersion": true
},
"usingComponents": true,
"allowsInlineMediaPlayback": true,
"safearea": {
"background": "#ffffff",
"bottom": {
"offset": "auto"
}
},
"uni-app": {
"compilerVersion": "2.4.6",
"control": "v8",
"nvueCompiler": "uni-app",
"renderer": "auto",
"nvue": {
"flex-direction": "column"
}
},
"tabBar": {
"borderStyle": "rgba(0,0,0,0.4)",
"backgroundColor": "#ffffff",
"list": [{
"pagePath": "pages\/mall\/mall"
}, {
"pagePath": "pages\/navbar\/navbar"
}, {
"pagePath": "pages\/material\/material"
}, {
"pagePath": "pages\/my\/my"
}, {
"pagePath": "pages\/product\/rank"
}],
"selectedColor": "#0062cc",
"height": "50px"
},
"adid": "129854030308",
"channel": ""
}
}

1
app/src/main/assets/apps/__UNI__2B9497D/www1/view.css
File diff suppressed because it is too large
View File

6
app/src/main/assets/apps/__UNI__2B9497D/www1/view.umd.min.js
File diff suppressed because it is too large
View File

1
app/src/main/assets/apps/__UNI__2B9497D/www1/www/__uniappchooselocation.js
File diff suppressed because it is too large
View File

BIN
app/src/main/assets/apps/__UNI__2B9497D/www1/www/__uniapperror.png

After

Width: 200  |  Height: 200  |  Size: 5.7 KiB

1
app/src/main/assets/apps/__UNI__2B9497D/www1/www/__uniappes6.js
File diff suppressed because it is too large
View File

1
app/src/main/assets/apps/__UNI__2B9497D/www1/www/__uniappopenlocation.js
File diff suppressed because it is too large
View File

1
app/src/main/assets/apps/__UNI__2B9497D/www1/www/__uniapppicker.js
File diff suppressed because it is too large
View File

8
app/src/main/assets/apps/__UNI__2B9497D/www1/www/__uniappquill.js
File diff suppressed because it is too large
View File

1
app/src/main/assets/apps/__UNI__2B9497D/www1/www/__uniappquillimageresize.js
File diff suppressed because it is too large
View File

1
app/src/main/assets/apps/__UNI__2B9497D/www1/www/__uniappscan.js
File diff suppressed because it is too large
View File

BIN
app/src/main/assets/apps/__UNI__2B9497D/www1/www/__uniappsuccess.png

After

Width: 165  |  Height: 165  |  Size: 2.0 KiB

25
app/src/main/assets/apps/__UNI__2B9497D/www1/www/__uniappview.html

@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<script>
var __UniViewStartTime__ = Date.now();
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
CSS.supports('top: constant(a)'))
document.write(
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
(coverSupport ? ', viewport-fit=cover' : '') + '" />')
</script>
<title>View</title>
<link rel="stylesheet" href="view.css" />
</head>
<body>
<div id="app"></div>
<script src="__uniappes6.js"></script>
<script src="view.umd.min.js"></script>
<script src="app-view.js"></script>
</body>
</html>

8
app/src/main/assets/apps/__UNI__2B9497D/www1/www/app-config-service.js

@ -0,0 +1,8 @@
var isReady=false;var onReadyCallbacks=[];
var isServiceReady=false;var onServiceReadyCallbacks=[];
var __uniConfig = {"pages":["pages/index/index","pages/index/ball_list","pages/index/scan","pages/sample/ext-module","pages/sample/ext-component","pages/sample/richAlert"],"window":{"navigationBarTextStyle":"black","navigationBarTitleText":"uni-app","navigationBarBackgroundColor":"#F8F8F8","backgroundColor":"#F8F8F8"},"nvueCompiler":"uni-app","nvueStyleCompiler":"weex","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"unipluginDemo","compilerVersion":"3.3.11","entryPagePath":"pages/index/index","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}};
var __uniRoutes = [{"path":"/pages/index/index","meta":{"isQuit":true},"window":{"navigationBarTitleText":"uni-app"}},{"path":"/pages/index/ball_list","meta":{},"window":{"navigationBarTitleText":"uni-app"}},{"path":"/pages/index/scan","meta":{"isNVue":true},"window":{"navigationBarTitleText":"22222"}},{"path":"/pages/sample/ext-module","meta":{"isNVue":true},"window":{"navigationBarTitleText":"扩展 module"}},{"path":"/pages/sample/ext-component","meta":{"isNVue":true},"window":{"navigationBarTitleText":"扩展 component"}},{"path":"/pages/sample/richAlert","meta":{},"window":{"navigationBarTitleText":"RichAlert"}}];
__uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
__uniConfig.onServiceReady=function(callback){if(__uniConfig.serviceReady){callback()}else{onServiceReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"serviceReady",{get:function(){return isServiceReady},set:function(val){isServiceReady=val;if(!isServiceReady){return}const callbacks=onServiceReadyCallbacks.slice(0);onServiceReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
service.register("uni-app-config",{create(a,b,c){if(!__uniConfig.viewport){var d=b.weex.config.env.scale,e=b.weex.config.env.deviceWidth,f=Math.ceil(e/d);Object.assign(__uniConfig,{viewport:f,defaultFontSize:Math.round(f/20)})}return{instance:{__uniConfig:__uniConfig,__uniRoutes:__uniRoutes,global:void 0,window:void 0,document:void 0,frames:void 0,self:void 0,location:void 0,navigator:void 0,localStorage:void 0,history:void 0,Caches:void 0,screen:void 0,alert:void 0,confirm:void 0,prompt:void 0,fetch:void 0,XMLHttpRequest:void 0,WebSocket:void 0,webkit:void 0,print:void 0}}}});

1
app/src/main/assets/apps/__UNI__2B9497D/www1/www/app-config.js

@ -0,0 +1 @@
(function(e){function r(r){for(var n,l,i=r[0],p=r[1],a=r[2],c=0,s=[];c<i.length;c++)l=i[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in p)Object.prototype.hasOwnProperty.call(p,n)&&(e[n]=p[n]);f&&f(r);while(s.length)s.shift()();return u.push.apply(u,a||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,i=1;i<t.length;i++){var p=t[i];0!==o[p]&&(n=!1)}n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={"app-config":0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,function(r){return e[r]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e["default"]}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="/";var i=this["webpackJsonp"]=this["webpackJsonp"]||[],p=i.push.bind(i);i.push=r,i=i.slice();for(var a=0;a<i.length;a++)r(i[a]);var f=p;t()})([]);

1
app/src/main/assets/apps/__UNI__2B9497D/www1/www/app-service.js
File diff suppressed because it is too large
View File

1
app/src/main/assets/apps/__UNI__2B9497D/www1/www/app-view.js
File diff suppressed because it is too large
View File

1
app/src/main/assets/apps/__UNI__2B9497D/www1/www/manifest.json

@ -0,0 +1 @@
{"@platforms":["android","iPhone","iPad"],"id":"__UNI__2B9497D","name":"unipluginDemo","version":{"name":"1.0.0","code":"100"},"description":"","launch_path":"__uniappview.html","developer":{"name":"","email":"","url":""},"permissions":{"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"target":"id:1","autoclose":true,"waiting":true,"delay":0},"popGesture":"close","launchwebview":{"render":"always","id":"1","kernel":"WKWebview"},"statusbar":{"immersed":"supportedDevice","style":"dark","background":"#F8F8F8"},"usingComponents":true,"nvueCompiler":"uni-app","compilerVersion":3,"allowsInlineMediaPlayback":true,"uni-app":{"compilerVersion":"3.3.11","control":"uni-v3","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal"},"launch_path":"__uniappview.html"}}

1
app/src/main/assets/apps/__UNI__2B9497D/www1/www/pages/index/scan.js
File diff suppressed because it is too large
View File

1
app/src/main/assets/apps/__UNI__2B9497D/www1/www/pages/sample/ext-component.js
File diff suppressed because it is too large
View File

1
app/src/main/assets/apps/__UNI__2B9497D/www1/www/pages/sample/ext-module.js
File diff suppressed because it is too large
View File

BIN
app/src/main/assets/apps/__UNI__2B9497D/www1/www/static/logo.png

After

Width: 72  |  Height: 72  |  Size: 3.9 KiB

169
app/src/main/assets/apps/__UNI__2B9497D/www1/www/static/new_file.json

@ -0,0 +1,169 @@
{
"id": "__UNI__09EF501",
"name": "掌上喵",
"version": {
"name": "1.4.40",
"code": 1440
},
"description": "",
"launch_path": "__uniappview.html",
"developer": {
"name": "",
"email": "",
"url": ""
},
"permissions": {
"OAuth": {
"description": "OAuth"
},
"Share": {
"description": "plus.share.*"
},
"VideoPlayer": {
"description": "VideoPlayer"
},
"Push": {
"description": "Push"
},
"UniNView": {
"description": "UniNView"
},
"Stream": {
"description": "plus.stream.*"
},
"Confusion": {
"description": "Resource confusion"
},
"Audio": {
"description": "plus.audio.*"
},
"Accelerometer": {
"description": "plus.accelerometer.*"
},
"Barcode": {
"description": "plus.barcode.*"
},
"Cache": {
"description": "plus.cache.*"
},
"Camera": {
"description": "plus.camera.*"
},
"Console": {
"description": "plus.console.*"
},
"Device": {
"description": "plus.device.*"
},
"Downloader": {
"description": "plus.downloader.*"
},
"File": {
"description": "plus.io.*"
},
"Gallery": {
"description": "plus.gallery.*"
},
"Geolocation": {
"description": "plus.geolocation.*"
},
"Invocation": {
"description": "plus.android.*"
},
"NativeObj": {
"description": "plus.nativeObj.*"
},
"NativeUI": {
"description": "plus.nativeUI.*"
},
"Navigator": {
"description": "plus.navigator.*"
},
"Orientation": {
"description": "plus.orientation.*"
},
"Proximity": {
"description": "plus.proximity.*"
},
"Runtime": {
"description": "plus.runtime.*"
},
"Storage": {
"description": "plus.storage.*"
},
"Uploader": {
"description": "plus.uploader.*"
},
"Webview": {
"description": "plus.webview.*"
},
"XMLHttpRequest": {
"description": "plus.net.*"
},
"Zip": {
"description": "plus.zip.*"
}
},
"plus": {
"useragent": {
"value": "uni-app",
"concatenate": true
},
"splashscreen": {
"target": "id:1",
"autoclose": true,
"waiting": false,
"delay": 0
},
"popGesture": "close",
"launchwebview": {
"id": "1",
"kernel": "WKWebview",
"uni-app": "auto"
},
"statusbar": {
"immersed": "supportedDevice",
"style": "dark",
"background": "#F7F7F7"
},
"compatible": {
"ignoreVersion": true
},
"usingComponents": true,
"allowsInlineMediaPlayback": true,
"safearea": {
"background": "#ffffff",
"bottom": {
"offset": "auto"
}
},
"uni-app": {
"compilerVersion": "2.4.6",
"control": "v8",
"nvueCompiler": "uni-app",
"renderer": "auto",
"nvue": {
"flex-direction": "column"
}
},
"tabBar": {
"borderStyle": "rgba(0,0,0,0.4)",
"backgroundColor": "#ffffff",
"list": [{
"pagePath": "pages\/mall\/mall"
}, {
"pagePath": "pages\/navbar\/navbar"
}, {
"pagePath": "pages\/material\/material"
}, {
"pagePath": "pages\/my\/my"
}, {
"pagePath": "pages\/product\/rank"
}],
"selectedColor": "#0062cc",
"height": "50px"
},
"adid": "129854030308",
"channel": ""
}
}

1
app/src/main/assets/apps/__UNI__2B9497D/www1/www/view.css
File diff suppressed because it is too large
View File

6
app/src/main/assets/apps/__UNI__2B9497D/www1/www/view.umd.min.js
File diff suppressed because it is too large
View File

2
app/src/main/assets/dcloud_uniplugins.json

@ -13,7 +13,7 @@
"plugins": [
{
"type": "module",
"name": "TestModule2",
"name": "uniplugin_module_ox",
"class": "net.ouxuan.uniplugin_module_ox.TestModule2"
}
]

2
face_module/src/main/java/com/appdev/face_module/faceClass.java

@ -36,7 +36,7 @@ public class faceClass extends UniModule {
// if(mUniSDKInstance != null && mUniSDKInstance.getContext() instanceof Activity) {
// mContext = mUniSDKInstance.getContext();
// }
myManager.initSDK(mUniSDKInstance.getContext(),"S4E6-8LLD-JRAQ-XES4");
myManager.initSDK(mUniSDKInstance.getContext(),"S4E6-8LLD-JRAQ-XES4");//配置百度授权码
}catch (Exception e){
System.out.println("666666"+e);
System.out.println("-----666666-----");

107
uniapp示例工程源码/unipluginDemo/pages/sample/ext-module.nvue

@ -1,41 +1,55 @@
<template>
<div>
<button type="primary" @click="testAsyncFunc">testAsyncFunc</button>
<button type="primary" @click="testSyncFunc">testSyncFunc</button>
<button type="primary" @click="gotoNativePage">跳转原生Activity</button>
<button type="primary" @click="testAsyncFunc2">testAsyncFunc2</button>
<button type="primary" @click="testSyncFunc2">testSyncFunc2</button>
<button type="primary" @click="testFun1">zmt-testFun1</button>
<button type="primary" @click="testFun2">zmt-testFun2</button>
<div class="content">
<button class="btn" type="primary" @click="gotoNativePage">跳转原生Activity</button>
<button class="btn" type="primary" @click="tcpAsyncFunc">[开启TcpServer]</button>
<text class="tips">
点击后将开启TcpServer. 本机IP: 192.168.1.64 端口:16666
</text>
<!-- <button type="primary" @click="testFun2">zmt-testFun2</button> -->
<button type="primary" @click="faceAsyncFunc">faceAsyncFunc</button>
<button class="btn" type="primary" @click="faceAsyncFunc">[百度人脸SDK授权]</button>
<text class="tips">
点击后将进行百度人脸SDK初始化及授权申请,该授权码写死在Android端zmt_module内faceClass,因已使用过,将返回已被占用提示.
</text>
<button class="btn" type="primary" @click="testAsyncFunc2">uniplugin_module_ox testAsyncFunc2</button>
<button class="btn" type="primary" @click="testSyncFunc2">uniplugin_module_ox testSyncFunc2</button>
<button class="btn" type="primary" @click="testAsyncFunc">uniplugin_module testAsyncFunc</button>
<button class="btn" type="primary" @click="testSyncFunc">uniplugin_module testSyncFunc</button>
</div>
</template>
<script>
// 获取 module
var zmtModule = uni.requireNativePlugin("Zmt-Module")
var testModule = uni.requireNativePlugin("TestModule")
var testModule2 = uni.requireNativePlugin("TestModule2")
// #ifdef APP-PLUS
// 获取 module
var zmtModule = uni.requireNativePlugin("Zmt-Module")
var testModule = uni.requireNativePlugin("TestModule") //uniplugin_module
var uniplugin_module_ox = uni.requireNativePlugin("uniplugin_module_ox") //uniplugin_module_ox
var faceModule = uni.requireNativePlugin("Face-Module") //百度人脸SDK, face_module
const modal = uni.requireNativePlugin('modal');
// #endif
var faceModule = uni.requireNativePlugin("Face-Module")
const modal = uni.requireNativePlugin('modal');
export default {
onLoad() {
plus.globalEvent.addEventListener('TestEvent', function(e){
modal.toast({
message: "TestEvent收到:"+e.msg,
duration: 1.5
});
});
this.initAPPListener()
},
methods: {
initAPPListener(){
// #ifdef APP-PLUS
// 原生平台事件监听,等待测试
plus.globalEvent.addEventListener('TestEvent', function(e){
modal.toast({
message: "TestEvent收到:"+e.msg,
duration: 1.5
});
});
// #endif
},
//百度人脸SDK,初始化,并申请授权(授权码写死在android端 faceClass)
faceAsyncFunc() {
console.log("测试开始faceAsyncFunc");
// 调用异步方法
@ -50,20 +64,9 @@
});
})
},
faceAsyncFunc666(){
// 调用同步方法
var ret = faceModule.faceAsyncFunc({
'name': 'unimp',
'age': 1
})
modal.toast({
message: ret,
duration: 1.5
});
},
testFun1(){
tcpAsyncFunc(){
// 调用异步方法
zmtModule.testAsyncFunc({
zmtModule.tcpAsyncFunc({
'name': 'unimp',
'age': 1
},
@ -112,7 +115,7 @@
testAsyncFunc2() {
// 调用异步方法
testModule2.testAsyncFunc2({
uniplugin_module_ox.testAsyncFunc2({
'name': 'unimp',
'age': 1
},
@ -125,7 +128,7 @@
},
testSyncFunc2() {
// 调用同步方法
var ret = testModule2.testSyncFunc2({
var ret = uniplugin_module_ox.testSyncFunc2({
'name': 'unimp',
'age': 1
})
@ -139,4 +142,28 @@
}
}
}
</script>
</script>
<style lang="scss">
.content{
// width: 750rpx;
// margin-top: 10rpx;
// display: flex;
// flex-wrap: nowrap;
// align-items: flex-start;
// flex-direction: column;
// justify-content: center;
}
// button{
// margin-top: 3px;
// }
.btn{
margin: 3px;
// width: 95%;
}
.tips{
font-size: 11px;
color: gray;
font-weight: 800;
}
</style>

2
uniapp示例工程源码/unipluginDemo/unpackage/dist/build/app-plus/app-service.js
File diff suppressed because it is too large
View File

2
uniapp示例工程源码/unipluginDemo/unpackage/dist/build/app-plus/app-view.js
File diff suppressed because it is too large
View File

2
uniapp示例工程源码/unipluginDemo/unpackage/dist/build/app-plus/pages/index/scan.js
File diff suppressed because it is too large
View File

2
uniapp示例工程源码/unipluginDemo/unpackage/dist/build/app-plus/pages/sample/ext-component.js
File diff suppressed because it is too large
View File

2
uniapp示例工程源码/unipluginDemo/unpackage/dist/build/app-plus/pages/sample/ext-module.js
File diff suppressed because it is too large
View File

2
uniapp示例工程源码/unipluginDemo/unpackage/resources/__UNI__2B9497D/www/app-service.js
File diff suppressed because it is too large
View File

2
uniapp示例工程源码/unipluginDemo/unpackage/resources/__UNI__2B9497D/www/app-view.js
File diff suppressed because it is too large
View File

2
uniapp示例工程源码/unipluginDemo/unpackage/resources/__UNI__2B9497D/www/pages/index/scan.js
File diff suppressed because it is too large
View File

2
uniapp示例工程源码/unipluginDemo/unpackage/resources/__UNI__2B9497D/www/pages/sample/ext-component.js
File diff suppressed because it is too large
View File

2
uniapp示例工程源码/unipluginDemo/unpackage/resources/__UNI__2B9497D/www/pages/sample/ext-module.js
File diff suppressed because it is too large
View File

4
uniplugin_module/src/main/java/io/dcloud/uniplugin/TestModule.java

@ -22,7 +22,7 @@ public class TestModule extends UniModule {
Log.e(TAG, "testAsyncFunc--"+options);
if(callback != null) {
JSONObject data = new JSONObject();
data.put("code", "success");
data.put("code", "success uniplugin_module");
callback.invoke(data);
//callback.invokeAndKeepAlive(data);
}
@ -32,7 +32,7 @@ public class TestModule extends UniModule {
@UniJSMethod (uiThread = false)
public JSONObject testSyncFunc(){
JSONObject data = new JSONObject();
data.put("code", "success");
data.put("code", "success uniplugin_module");
return data;
}

4
uniplugin_module_ox/src/main/java/net/ouxuan/uniplugin_module_ox/TestModule2.java

@ -26,7 +26,7 @@ public class TestModule2 extends UniModule{
Log.e(TAG, "testAsyncFunc2--"+options);
if(callback != null) {
JSONObject data = new JSONObject();
data.put("code", "success222");
data.put("code", "uniplugin_module_ox");
callback.invoke(data);
}
}
@ -35,7 +35,7 @@ public class TestModule2 extends UniModule{
@UniJSMethod (uiThread = false)
public JSONObject testSyncFunc2(){
JSONObject data = new JSONObject();
data.put("code", "success333");
data.put("code", "uniplugin_module_ox");
return data;
}
}

4
zmt_module/src/main/java/io/dcloud/zmt_module/zmtClass.java

@ -15,8 +15,8 @@ public class zmtClass extends UniModule {
//run ui thread
@UniJSMethod(uiThread = true)
public void testAsyncFunc(JSONObject options, final UniJSCallback callback) {
Log.e(TAG, "testAsyncFunc--zmt:"+options);
public void tcpAsyncFunc(JSONObject options, final UniJSCallback callback) {
Log.e(TAG, "tcpAsyncFunc--zmt:"+options);
//启动线程
// MyThread mt = new MyThread();

Loading…
Cancel
Save