Skip to content

Commit 9c32e02

Browse files
committed
chore(release): released 2.0.3
1 parent 62cbdb0 commit 9c32e02

File tree

33 files changed

+363
-100
lines changed

33 files changed

+363
-100
lines changed

.github/workflows/frontend.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ jobs:
4545
uses: nosborn/[email protected]
4646
with:
4747
config_file: .markdownlintrc.json
48-
files: ./*.md ./docs/**/*.md
48+
files: ./README*.md ./PUBLISH*.md ./docs/**/*.md

CHANGELOG.md

Lines changed: 66 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,41 +3,77 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6-
## [2.0.2](https://github.com/xuqingkuang/Hippy/compare/2.0.1...2.0.2) (2020-03-18)
6+
## [2.0.3](https://github.com/Tencent/Hippy/compare/2.0.2...2.0.3) (2020-04-23)
77

88

99
### Bug Fixes
1010

11-
* **android:** compile problem ([df4398d](https://github.com/xuqingkuang/Hippy/commit/df4398da08d3c1d0c67e23912d42d955335705b6))
12-
* **android:** fix keyboard hiding when blur in endEditing after focus ([22e8602](https://github.com/xuqingkuang/Hippy/commit/22e86021a2153b3c8249a3a82e825f8361a7ac1c))
13-
* **android:** textinput focus and blur problem ([#161](https://github.com/xuqingkuang/Hippy/issues/161)) ([44daa93](https://github.com/xuqingkuang/Hippy/commit/44daa93ee9ba45aa3c3a41ff30c25d22f1ab4224))
14-
* **android:** treat Parcelable[] as Bundle[] ([a2ffb28](https://github.com/xuqingkuang/Hippy/commit/a2ffb2813f8744fdb15dcda13eb13b887259840d))
15-
* **example:** split js bundle with webpack dllplugin ([c8ac36d](https://github.com/xuqingkuang/Hippy/commit/c8ac36d081fd0f41d92d566576443febdf194c8f))
16-
* **hippy-react:** callUIFunction supports passing as targetNode ([f7c8391](https://github.com/xuqingkuang/Hippy/commit/f7c83911622140db9f3f5ac9eba44aefe44cd4ce))
17-
* **hippy-react:** change the NODE_ENV to 'development' ([2585bc5](https://github.com/xuqingkuang/Hippy/commit/2585bc5f3f28816c7ff1f4bdf210011508e7d2e8))
18-
* **hippy-react:** text component text repeated rendering ([96e278d](https://github.com/xuqingkuang/Hippy/commit/96e278d33c3bd18cdec6c839cc5454c5c3479224))
19-
* **hippy-react:** text nest ([da5ca3b](https://github.com/xuqingkuang/Hippy/commit/da5ca3b45cad28659bf0c6bacc90a1a64658d906))
20-
* **hippy-react:** text-input style ([a9fa8d1](https://github.com/xuqingkuang/Hippy/commit/a9fa8d1e896c5d5ee62c8ef09d6b32de85124618))
21-
* **hippy-react:** ui operation merge ([9b4f77d](https://github.com/xuqingkuang/Hippy/commit/9b4f77dfa54a0747efccec3beee6db170c3848cd))
22-
* **hippy-vue:** add TypeSelector test ([38f08ef](https://github.com/xuqingkuang/Hippy/commit/38f08ef4180fa08781492ea80f3dcfbc3ad37036))
23-
* **hippy-vue:** fix css selectors TypeSelector match ([de98e8a](https://github.com/xuqingkuang/Hippy/commit/de98e8a560ee771d4f10fcbd3642afccfc92e70e))
24-
* **hippy-vue:** fix wrong preSibling of childNode's nexSibling ([6e76d5e](https://github.com/xuqingkuang/Hippy/commit/6e76d5e1ead0a1d359ab0ec3d25d94c2ffed792b))
25-
* **hippy-vue:** fixed css selectors TypeSelector match ([adddcea](https://github.com/xuqingkuang/Hippy/commit/adddcea319c816d49deed0b2893e6ee82c203648))
26-
* **ios:** fix crash caused by incorrect creation of UIFont ([0764fdc](https://github.com/xuqingkuang/Hippy/commit/0764fdc5b531edb9ac868909194ecee79c44073a))
27-
* **ios:** fix issue of invalidation of customized font ([3c632dc](https://github.com/xuqingkuang/Hippy/commit/3c632dca651b91e36ef92219d0c7b6a38a8a54b8))
28-
* **ios:** fix return type of TextInput.getValue method ([5db3dac](https://github.com/xuqingkuang/Hippy/commit/5db3dac6a69973196b42d90c7eed0a745fb5a130))
29-
* **ios:** fix some bugs ([a329d40](https://github.com/xuqingkuang/Hippy/commit/a329d4060ed78dddd2dfe72dea5756c94ba14c1c))
30-
* **react-web:** image callback error ([1776634](https://github.com/xuqingkuang/Hippy/commit/1776634552356d32dcb51e2e98ce1e797788dd3c))
31-
* **react-web:** listView not work in dev mode ([44a539f](https://github.com/xuqingkuang/Hippy/commit/44a539fc978e70294b0f30707912aa80dc6652d3))
32-
* **react-web:** updateAnimation support zero ([0ec1dc8](https://github.com/xuqingkuang/Hippy/commit/0ec1dc87aee14660954799c4a89a6d4584a4afe9))
33-
* **vue:** setStyle px unit determine ([8379d53](https://github.com/xuqingkuang/Hippy/commit/8379d53e4b275dda8243b1869eded475a0113373))
11+
* **android:** change style of font size invalid ([a538c24](https://github.com/Tencent/Hippy/commit/a538c24bec38790d6e1e832bfc57e97832af64dc))
12+
* **android:** input can not auto scroll when reach max length ([a9f2355](https://github.com/Tencent/Hippy/commit/a9f23556c44dbe49c90003196cda0eb898f70757))
13+
* **android:** input can not auto scroll when reach max length ([8b25757](https://github.com/Tencent/Hippy/commit/8b25757ab67e450c9a518c53feca0fac4107096a))
14+
* **android:** update arm64 so and should compile alone ([ee65c8e](https://github.com/Tencent/Hippy/commit/ee65c8e743d4d8d72a7bcdf7d516b711e7c9df98))
15+
* **core:** drop Object.entries() for lower iOS compatible ([a3aa0b8](https://github.com/Tencent/Hippy/commit/a3aa0b8514e15f84d590cf0667cb15de2db7ccbd))
16+
* **hippy-react:** drop Object.entries() for lower iOS compatible ([d76b074](https://github.com/Tencent/Hippy/commit/d76b074b7ed2536422be6052c56165be83b341c2))
17+
* **hippy-react-web:** scroll-view style should be called by formatWebS… ([#233](https://github.com/Tencent/Hippy/issues/233)) ([9db12a4](https://github.com/Tencent/Hippy/commit/9db12a4fff59908c48f5547ddeb6deba68903af8))
18+
* **ios:** fix bug that textinput does not support chinese input ([230c6a6](https://github.com/Tencent/Hippy/commit/230c6a60bfd58574408d66837b6bac1764e4487e))
19+
* **ios:** fix extra modules provider bug ([9ba10c9](https://github.com/Tencent/Hippy/commit/9ba10c97b6eb2dfcde0d7e86cc0048f02b8344fe))
20+
* **ios:** fix some bugs ([ce76475](https://github.com/Tencent/Hippy/commit/ce76475bc2c2904000945ecdc73a8f9ffbead8d8))
21+
* **ios:** fixed TextInput blur and focus event trigger when click ([61045d8](https://github.com/Tencent/Hippy/commit/61045d83dae20cf8969661b3fe91fc0329ecfc02))
22+
* **ios:** fixed the value of _JSMethodName in HippyModuleMethod ([4d5fde8](https://github.com/Tencent/Hippy/commit/4d5fde8cce791bc929ed0be65e8ec5a99e71ac23))
23+
* **ios:** reset animated image when reset image source ([9060cfc](https://github.com/Tencent/Hippy/commit/9060cfc54076bfab10a50bf9091a94cc8596cc08))
24+
* **react-web:** annimation-set support opacity ([b29e92c](https://github.com/Tencent/Hippy/commit/b29e92cac95f444925a99dcae82cdf5bcbd47f2a))
3425

3526

3627
### Features
3728

38-
* **android:** add bintray jcenter upload support ([11900b0](https://github.com/xuqingkuang/Hippy/commit/11900b0f9330818c9dfc99d813bfef7d301683cf))
39-
* **ios:** add shadow feature for HippyView ([f111951](https://github.com/xuqingkuang/Hippy/commit/f111951baedc153a229a251fa8fb7bd27f1b52eb))
40-
* **react-web:** support multiple instance ([c5fb93b](https://github.com/xuqingkuang/Hippy/commit/c5fb93be6e40f14f731a6f5dd750254bc049838d))
41-
* **react-web:** text support clip mode ([516fa98](https://github.com/xuqingkuang/Hippy/commit/516fa988c6e616c3a49790d83b06ff4d6ff6d9fd))
42-
* **vue:** added disabled props to input tag ([47facd4](https://github.com/xuqingkuang/Hippy/commit/47facd4584b1361a760fd62162b0d4f9384ee673))
43-
* **vue-native-components:** added stateChanged event handler to swiper ([71760cc](https://github.com/xuqingkuang/Hippy/commit/71760cccf15a819c644efaa1e084a96fcc4e856e))
29+
* **hippy-react:** merge createNode operation ([#200](https://github.com/Tencent/Hippy/issues/200)) ([04d77a0](https://github.com/Tencent/Hippy/commit/04d77a074c5d43cbf4bfa0cc40c513167314addc))
30+
* **hippy-react-web:** added default export for hippy-react web ([62cbdb0](https://github.com/Tencent/Hippy/commit/62cbdb0cb7d65c989439e1d7ffb0a5fa1143eddd))
31+
* **hippy-vue:** make beforeStyleLoad hooks applied in runtime ([2fc49cf](https://github.com/Tencent/Hippy/commit/2fc49cf819c32038b780569a8d278a865e438703))
32+
* **ios:** mount all custom objects at __HIPPYNATIVEGLOBAL__ ([9430138](https://github.com/Tencent/Hippy/commit/9430138ae6ad8d71f91f0089f78114ccc00bde85))
33+
* **ios:** update the way custom objects before execute JS ([e2ee31c](https://github.com/Tencent/Hippy/commit/e2ee31c7449a9b40c06a684b528765524a7dcada))
34+
* **ios:** user can mount custom objects before execute JS ([0df5b43](https://github.com/Tencent/Hippy/commit/0df5b43a111e301635d81ba58ab7114d8a11b331))
35+
* **react-demo:** add router ([c759cbe](https://github.com/Tencent/Hippy/commit/c759cbe400564ccaee239e84e8e52b82d58eaf89))
36+
* **react-web:** support layout event ([fafa65c](https://github.com/Tencent/Hippy/commit/fafa65c2fc6f23cc717f35a163cdf4d7b43ff6a5))
37+
38+
39+
40+
41+
42+
## [2.0.2](https://github.com/Tencent/Hippy/compare/2.0.1...2.0.2) (2020-03-18)
43+
44+
45+
### Bug Fixes
46+
47+
* **android:** compile problem ([df4398d](https://github.com/Tencent/Hippy/commit/df4398da08d3c1d0c67e23912d42d955335705b6))
48+
* **android:** fix keyboard hiding when blur in endEditing after focus ([22e8602](https://github.com/Tencent/Hippy/commit/22e86021a2153b3c8249a3a82e825f8361a7ac1c))
49+
* **android:** textinput focus and blur problem ([#161](https://github.com/Tencent/Hippy/issues/161)) ([44daa93](https://github.com/Tencent/Hippy/commit/44daa93ee9ba45aa3c3a41ff30c25d22f1ab4224))
50+
* **android:** treat Parcelable[] as Bundle[] ([a2ffb28](https://github.com/Tencent/Hippy/commit/a2ffb2813f8744fdb15dcda13eb13b887259840d))
51+
* **example:** split js bundle with webpack dllplugin ([c8ac36d](https://github.com/Tencent/Hippy/commit/c8ac36d081fd0f41d92d566576443febdf194c8f))
52+
* **hippy-react:** callUIFunction supports passing as targetNode ([f7c8391](https://github.com/Tencent/Hippy/commit/f7c83911622140db9f3f5ac9eba44aefe44cd4ce))
53+
* **hippy-react:** change the NODE_ENV to 'development' ([2585bc5](https://github.com/Tencent/Hippy/commit/2585bc5f3f28816c7ff1f4bdf210011508e7d2e8))
54+
* **hippy-react:** text component text repeated rendering ([96e278d](https://github.com/Tencent/Hippy/commit/96e278d33c3bd18cdec6c839cc5454c5c3479224))
55+
* **hippy-react:** text nest ([da5ca3b](https://github.com/Tencent/Hippy/commit/da5ca3b45cad28659bf0c6bacc90a1a64658d906))
56+
* **hippy-react:** text-input style ([a9fa8d1](https://github.com/Tencent/Hippy/commit/a9fa8d1e896c5d5ee62c8ef09d6b32de85124618))
57+
* **hippy-react:** ui operation merge ([9b4f77d](https://github.com/Tencent/Hippy/commit/9b4f77dfa54a0747efccec3beee6db170c3848cd))
58+
* **hippy-vue:** add TypeSelector test ([38f08ef](https://github.com/Tencent/Hippy/commit/38f08ef4180fa08781492ea80f3dcfbc3ad37036))
59+
* **hippy-vue:** fix css selectors TypeSelector match ([de98e8a](https://github.com/Tencent/Hippy/commit/de98e8a560ee771d4f10fcbd3642afccfc92e70e))
60+
* **hippy-vue:** fix wrong preSibling of childNode's nexSibling ([6e76d5e](https://github.com/Tencent/Hippy/commit/6e76d5e1ead0a1d359ab0ec3d25d94c2ffed792b))
61+
* **hippy-vue:** fixed css selectors TypeSelector match ([adddcea](https://github.com/Tencent/Hippy/commit/adddcea319c816d49deed0b2893e6ee82c203648))
62+
* **ios:** fix crash caused by incorrect creation of UIFont ([0764fdc](https://github.com/Tencent/Hippy/commit/0764fdc5b531edb9ac868909194ecee79c44073a))
63+
* **ios:** fix issue of invalidation of customized font ([3c632dc](https://github.com/Tencent/Hippy/commit/3c632dca651b91e36ef92219d0c7b6a38a8a54b8))
64+
* **ios:** fix return type of TextInput.getValue method ([5db3dac](https://github.com/Tencent/Hippy/commit/5db3dac6a69973196b42d90c7eed0a745fb5a130))
65+
* **ios:** fix some bugs ([a329d40](https://github.com/Tencent/Hippy/commit/a329d4060ed78dddd2dfe72dea5756c94ba14c1c))
66+
* **react-web:** image callback error ([1776634](https://github.com/Tencent/Hippy/commit/1776634552356d32dcb51e2e98ce1e797788dd3c))
67+
* **react-web:** listView not work in dev mode ([44a539f](https://github.com/Tencent/Hippy/commit/44a539fc978e70294b0f30707912aa80dc6652d3))
68+
* **react-web:** updateAnimation support zero ([0ec1dc8](https://github.com/Tencent/Hippy/commit/0ec1dc87aee14660954799c4a89a6d4584a4afe9))
69+
* **vue:** setStyle px unit determine ([8379d53](https://github.com/Tencent/Hippy/commit/8379d53e4b275dda8243b1869eded475a0113373))
70+
71+
72+
### Features
73+
74+
* **android:** add bintray jcenter upload support ([11900b0](https://github.com/Tencent/Hippy/commit/11900b0f9330818c9dfc99d813bfef7d301683cf))
75+
* **ios:** add shadow feature for HippyView ([f111951](https://github.com/Tencent/Hippy/commit/f111951baedc153a229a251fa8fb7bd27f1b52eb))
76+
* **react-web:** support multiple instance ([c5fb93b](https://github.com/Tencent/Hippy/commit/c5fb93be6e40f14f731a6f5dd750254bc049838d))
77+
* **react-web:** text support clip mode ([516fa98](https://github.com/Tencent/Hippy/commit/516fa988c6e616c3a49790d83b06ff4d6ff6d9fd))
78+
* **vue:** added disabled props to input tag ([47facd4](https://github.com/Tencent/Hippy/commit/47facd4584b1361a760fd62162b0d4f9384ee673))
79+
* **vue-native-components:** added stateChanged event handler to swiper ([71760cc](https://github.com/Tencent/Hippy/commit/71760cccf15a819c644efaa1e084a96fcc4e856e))

PUBLISH.zh_CN.md

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
# Hippy 发布文档
2+
3+
## 1. 更新版本号
4+
5+
前端使用 [lerna](https://lerna.js.org/) 进行版本管理和 CHANGELOG 生成,但因为需要更新终端包所以不能使用它的发布功能。
6+
7+
更新版本和 CHANGELOG 使用:
8+
9+
```bash
10+
lerna version --conventional-commits
11+
```
12+
13+
* `--conventional-commits` 代表生成基于 conventional 提交规范的 CHANGELOG。
14+
15+
## 2. 回退 commit 并删除自动生成的 tag
16+
17+
lerna 生成版本号和 CHANGELOG 后,需要回退一下版本,所有发布改动需要合并到一个 commit 中。
18+
19+
```bash
20+
git rebase -i HEAD^
21+
```
22+
23+
进入 vim 或者编辑器后选择最后一个版本的 commit,并选择 edit,如果是 vim 则输入 `:` 并输入 `wq` 保存退出 vim。
24+
25+
此时进入 rebase 状态。
26+
27+
首先需要更新一下 commit message,因为自动生成的无法通过自动代码检查。
28+
29+
```bash
30+
git commit --amend -S
31+
```
32+
33+
输入符合 [Convention Commit](https://conventionalcommits.org/) 规范的 commit message,版本发布一般推荐使用:`chore[release]: released [VERSION]` 这样的 commit message。
34+
35+
同时删除 tag,一会儿更新后需要重新生成 tag
36+
37+
```bash
38+
git tag -d [VERSION]
39+
```
40+
41+
## 3. 更新终端版本号
42+
43+
终端版本号主要位于以下几个文件,都需要更新到即将发布的版本号
44+
45+
iOS
46+
47+
* [hippy.podspec](https://github.com/Tencent/Hippy/blob/master/hippy.podspec#L11)
48+
* [HippyBridge.mm](https://github.com/Tencent/Hippy/blob/master/ios/sdk/base/HippyBridge.mm#L43)
49+
50+
Android
51+
52+
* [build.gradle](https://github.com/Tencent/Hippy/blob/master/android/sdk/build.gradle#L518)
53+
54+
## 4. 更新内置包并校验功能正常
55+
56+
随后编译新的前端 SDK
57+
58+
```bash
59+
npm run build
60+
```
61+
62+
如果有 `core/js` 下的代码更新,则需要编译一下 core 代码
63+
64+
```bash
65+
npm run buildcore
66+
```
67+
68+
随后更新目标 `examples` 下的依赖并更新终端内置包,一般而言默认内置 hippy-react-demo,但务必检查一下 hippy-vue-demo 的功能正常。
69+
70+
```bash
71+
npm run buildexample -- hippy-react-demo
72+
```
73+
74+
> 注意:buildexample 可能会使用旧版本的前端 SDK,需要手工更新 node_modules 下的文件后再更新内置包,buildexample 也需要将 npm install 那一步暂时注释掉。
75+
76+
## 5. 一切准备完毕后重新提交
77+
78+
再一次检查所有文件都正确修改
79+
80+
```bash
81+
git status
82+
```
83+
84+
提交文件修改
85+
86+
```bash
87+
git add [FILES]
88+
git rebase --continue
89+
```
90+
91+
会结束 rebase 状态,然后再次检查 commit 中的内容正确。
92+
93+
打上 tag
94+
95+
```bash
96+
git tag [VERSION]
97+
```
98+
99+
提交代码,并准备发布 PR 合并到 master 分支。
100+
101+
```bash
102+
git push # 提交代码
103+
git push --tags # 提交 tag
104+
```
105+
106+
## 6. 发布
107+
108+
* 前端发布到 npmjs.com
109+
110+
```bash
111+
lerna run "npm run publish"
112+
```
113+
114+
* iOS 发布到 cocoapods.org
115+
116+
```bash
117+
pod trunk push hippy.podspec
118+
```
119+
120+
* Android 发布到 [bintray](https://bintray.com/beta/#/hippy/Hippy/hippy-release?tab=overview)
121+
122+
在 Android Studio 中打开 `examples/android-demo` 项目,并且在旁边的 Gradle 面板中运行 `android-demo` > `android-sdk` > `publishing` > `:android-sdk:publish`

android/sdk/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ publish {
515515
repoName = 'Hippy'
516516
groupId = 'com.tencent.hippy'
517517
artifactId = 'hippy-release'
518-
publishVersion = '2.0.2'
518+
publishVersion = '2.0.3'
519519
dryRun = false
520520
desc = 'Hippy library for Android'
521521
website = 'https://github.com/Tencent/Hippy'

examples/android-demo/res/index.android.js

Lines changed: 9 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)