Git Product home page Git Product logo

iqiyi / liteapp Goto Github PK

View Code? Open in Web Editor NEW
673.0 673.0 94.0 105.17 MB

LiteApp is a high performance mobile cross-platform implementation, The realization of cross-platform functionality is base on webview and provides different ideas and solutions for improve webview performance.

License: Other

Java 8.52% CSS 0.86% JavaScript 62.86% HTML 1.00% CMake 0.04% C++ 1.14% Objective-C 17.48% C 7.67% Shell 0.06% Vue 0.15% TypeScript 0.23%
android cross-platform hbridge html5 ios react-native weex xiaochengxu

liteapp's Issues

初始化的一些疑问

  1. https://locahost:8080/pages/${bundleName}/web.html
    这里的bundleName是指什么?
  2. public static void startMiniProgram(String miniProgramID, boolean needUpdate, Activity context)
    这个方法在哪调用?在Android的sdk中找不到?
    谢谢

初始化项目失败

运行命令初始化项目时报错了, lite-app-init && npm install -d
Error: spawn cp ENOENT
at _errnoException (util.js:992:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
at onErrorNT (internal/child_process.js:372:16)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
at Function.Module.runMain (module.js:695:11)
at startup (bootstrap_node.js:191:16)
at bootstrap_node.js:612:3

Fatal signal 11 (SIGSEGV) x86 移位Bug

我们发现在下x86平台上进行jsc移位运算的时候有神秘的闪退概率,尤其你们如果使用网络,在md5的情况下容易出现闪退,我会提供一个native的md5实现供大家选用绕过。此issue供遇到的人查询。

一般来说,是 libhudini报错,针对armeabi的so在x86上运行的情况,有一定概率抛出Signal 11

UnhandledPromiseRejectionWarning: TypeError: Cannot destructure property `username` of 'undefined' or 'null'.

执行打包操作npm run-script build 报错如下:

[cli_argv] 
 { _: [], config: './app.json', env: 'prod', target: 'app' }
[cli_config] 
 { name: 'liteAppDemo',
  version: { business: '1.0', base: '1.2' },
  src: './src',
  res: './res',
  target: './dist',
  pages: [ { name: 'index', path: '/entry/index' } ],
  index: 'index',
  tabbar: { items: [ [Object] ] } }
/Users/pengwei/git/liteAppDemo/node_modules/liteapp-base/dist/base-app/1.2 /Users/pengwei/git/liteAppDemo/dist/base/1.2/package
[manifest] { pages: [ { name: 'index', path: '/pages/index/' } ],
  index: 'index',
  tabbar: { items: [ [Object] ] } }
[version business] { version: 
   { version: '1.0',
     base_version: '1.2',
     manifest_url: '/conf/manifest.json' },
  uri: '/Users/pengwei/git/liteAppDemo/dist/package/liteAppDemo/version' }
[version base] { version: { version: '1.2' },
  uri: '/Users/pengwei/git/liteAppDemo/dist/package/base/1.2/version' }
[webpackConfig] :  
 { entry: { index: '/Users/pengwei/git/liteAppDemo/src/entry/index' },
  output: 
   { path: '/Users/pengwei/git/liteAppDemo/dist/liteAppDemo/package',
     publicPath: '/',
     filename: 'pages/[name]/bundle.js' },
  module: { rules: [ [Object], [Object], [Object], [Object] ] },
  resolve: 
   { alias: { './res': '/Users/pengwei/git/liteAppDemo/res' },
     extensions: [ '.', '.js', '.jsx' ] },
  resolveLoader: 
   { modules: 
      [ '/Users/pengwei/git/liteAppDemo/node_modules/liteapp-cli/node_modules',
        'node_modules' ],
     extensions: [ '.', '.js', '.json' ],
     mainFields: [ 'loader', 'main' ] },
  plugins: 
   [ ExtractTextPlugin { filename: 'pages/[name]/bundle.css', id: 1, options: {} },
     { apply: [Function: apply] },
     UglifyJsPlugin { options: [Object], sourceMapsCache: WeakMap {} } ] }
[manifest] build success
[version] build success
[base-app 1.2] copied
[make bundle] finished
[zip build] finished
(node:3160) UnhandledPromiseRejectionWarning: TypeError: Cannot destructure property `username` of 'undefined' or 'null'.
    at res (/Users/pengwei/git/liteAppDemo/node_modules/liteapp-cli/src/deploy.js:30:73)
    at new Promise (<anonymous>)
    at Object.pushToServer (/Users/pengwei/git/liteAppDemo/node_modules/liteapp-cli/src/deploy.js:29:12)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:160:7)
(node:3160) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)
(node:3160) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

请问报错是什么原因呢? 直接运行是没有问题的

English Docs?

Seems very interesting project.
Are docs not available in English?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.