Socket
Book a DemoInstallSign in
Socket

next-updater-cli

Package Overview
Dependencies
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

next-updater-cli

Next Updater command line tools

latest
npmnpm
Version
0.1.7
Version published
Maintainers
3
Created
Source

Get Start

@(Next Updater)[React Native, Next Updater, 热更新]

[TOC]

简介

Next Updater是一个可扩展的资源热更新平台,可针对JS和资源文件(图片、字体等)进行灵活的增量更新,并有完整的版本控制和灰度机制。

目前Next Updater只针对React Native热更新进行支持,后期会添加对其他框架,如:Weex、Native Script、Hybrid等的支持。

安装

Next Updater Cli

Next Updater Cli是提供给开发人员使用的项目打包用的命令行工具。

$ npm i next-updater-cli -g

iOS SDK

可以通过cocoapods、rnpm和手动引入静态文件这三种方式引入iOS sdk。

Android SDK

近期支持

开始接入

申请权限

目前平台还仅供百度内部使用,如需接入请在百度hi上联系管理员huangqi03申请权限,权限申请完毕后您可获得如下信息:

  • app_id
  • bundle_id
  • 应用管理账号
  • bundle备份仓库

其中bundle备份仓库是在Gitlab中next-updater组下面的一个仓库

后台配置

首先,访问管理后台,通过上一步获取的账号和密码登陆。

http://updater.next.baidu.com/

然后选中app -> 选中bundle -> 包设置,在仓库中输入上面bundle备份仓库的ssh地址,并提交更改。

提交bundle的第一个版本

命令行进入到React Native工程目录。

$ cd /path/to/rn/project

第一步生成打包配置文件

$ next-updater init

按照提示依次输入app_idbundle_id和支持平台(iOS/Android/Windows)。

然后,第二步,开始执行打包。

$ next-updater build

等待打包完毕。就可以到管理后台的bundle的版本管理中,待发布列表,看到这次打包了。

第三步,确保已经设置好仓库的情况下,

对比

特性Next UpdaterCode Push
版本管理
数据报表
回滚机制
增量更新×
国内服务×
资源更新×

意见和建议

如果您发现平台中有任何的bug,不足之处,或者认为其他平台有更人性化的功能而我们没有提供的,欢迎通过以下方式提供给我们,不胜感激:

FAQs

Package last updated on 04 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.