Skip to content

Commit

Permalink
docs: Update changelog and userguide for v1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
corycaywood committed Oct 2, 2020
1 parent 0be954a commit 2466e71
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions js-miniapp-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
## CHANGELOG

### v1.2.0 (In progress)
### v1.2.0 (2020-10-02)

- **Feature:** Added support for requesting the load and display of Interstitial & Rewarded Ads by the host application [See here](README.MD#4-Show-Ads)
- **Feature:** Added `MiniApp.requestCustomPermissions` for requesting `USER_NAME`, `PROFILE_PHOTO`, and `CONTACT_LIST` permissions.
- **Feature:** Added `MiniApp.requestCustomPermissions` for requesting `USER_NAME`, `PROFILE_PHOTO`, and `CONTACT_LIST` permissions. [See here](README.md#3-Request-Permissions)
- **Feature:** Added `MiniApp.shareInfo` for sharing content with other Apps. [See here](README.md#4-Share-Info)

### v1.1.0 (2020-7-21)

Expand Down
8 changes: 5 additions & 3 deletions js-miniapp-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ First, download the bundled script file from the [releases page](https://github.
<script src="miniapp.bundle.js"></script>
```
Then you can acces the SDK methods via `window.MiniApp`.
Then you can acces the SDK methods via `window.MiniApp.default`.
```javascript
window.MiniApp.getUniqueId()
window.MiniApp.default.getUniqueId()
.then(id => {
// ...
```
Expand Down Expand Up @@ -110,7 +110,9 @@ miniApp.requestCustomPermissions([
### 4. Share Info
It is possible for the mini app user to share the mini app data across Android/iOS interface. The data format must match the [ShareInfoType](src/types/ShareInfoType.ts).
It is possible for the mini app user to share data with another App by showing the native content sharing chooser.
The data format must match the [ShareInfoType](https://github.com/rakutentech/js-miniapp/blob/master/js-miniapp-sdk/src/types/ShareInfoType.ts).
```javascript
const info = { content: inputValue };
Expand Down

0 comments on commit 2466e71

Please sign in to comment.