zoukankan      html  css  js  c++  java
  • cordova 热更新

    1.根目录.chcpenv

    {
      "content_url": "http://106.13.216.173:5636/hotpush",
      "config_url": "http://106.13.216.173:5636/hotpush/chcp.json"
    }
    // 线上
    {
      "content_url": "https://app.xx.io",
      "config_url": "https://app.xx.io/chcp.json"
    }
    

    2.根目录.cordova-hcp.json

    {
      "name": "alan",
      "ios_identifier": "",
      "android_identifier": "",
      "update": "resume",
      "content_url": "http://106.13.216.173:5636/hotpush"
    }
    // 线上
    {
      "name": "xx",
      "ios_identifier": "",
      "android_identifier": "",
      "update": "start",
      "content_url": "https://app.xx.io"
    }
    

    3.根目录.config.xml

    <chcp>
        <auto-download enabled="true" />
        <auto-install enabled="true" />
        <config-file url="http://106.13.216.173:5636/hotpush/chcp.json" />
        <native-interface version="1" />
    </chcp>
    // 线上
    <chcp>
        <auto-download enabled="true" />
        <auto-install enabled="true" />
        <config-file url="https://app.xx.io/chcp.json" />
        <native-interface version="1" />
    </chcp>
    
    

    4.命令

    cordova-hcp build

  • 相关阅读:
    操作集锦
    大吉大利(算贡献)
    96. 奇怪的汉诺塔
    P760通天之汉诺塔
    First Last Sorting
    9.12小结
    day_06
    day_05作业
    day_05
    day_04
  • 原文地址:https://www.cnblogs.com/alantao/p/13054325.html
Copyright © 2011-2022 走看看