tauri-plugin-live-activity 0.13.1 → 0.13.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.ko.md +13 -4
  2. package/README.md +13 -4
  3. package/package.json +3 -3
package/README.ko.md CHANGED
@@ -9,7 +9,8 @@
9
9
  Dynamic Island(ActivityKit)에, Android에서는 Live Update나 진행 중 알림으로 보여 줍니다. 레이아웃은 TSX,
10
10
  TypeScript 또는 Rust로 적고, 그리는 일은 플러그인이 [liveactivity-rs](https://github.com/1eedaegon/liveactivity-rs)
11
11
  브리지를 통해 맡습니다.
12
- [English](https://github.com/1eedaegon/tauri-plugin-live-activity/blob/main/README.md)
12
+ [English](https://github.com/1eedaegon/tauri-plugin-live-activity/blob/main/README.md) ·
13
+ [사이트](https://1eedaegon.github.io/tauri-plugin-live-activity/ko/)
13
14
 
14
15
  <table>
15
16
  <tr><th>iOS 잠금 화면</th><th>Dynamic Island</th></tr>
@@ -367,9 +368,13 @@ Now Bar가 보여 줄 제목과 본문을 보냅니다. One UI는 Samsung의 허
367
368
 
368
369
  ## 자주 묻는 질문
369
370
 
370
- **Tauri 앱이 Live Activity를 띄우거나 Dynamic Island를 쓸 수 있나요?** 네. 이 플러그인으로 Tauri 2 앱은 iOS 16.1
371
- 이상에서 ActivityKit Live Activity를 시작, 갱신, 종료하고, 잠금 화면과 Dynamic Island에 그립니다. 그리는 위젯
372
- 확장은 `npx tauri-plugin-live-activity setup`이 앱의 Xcode 프로젝트에 넣습니다.
371
+ **iOS Live Activity와 Dynamic Island를 위한 Tauri 플러그인이 있나요?** 네, 이 플러그인입니다.
372
+ tauri-plugin-live-activity는 커뮤니티 플러그인이고, Tauri 공식 플러그인은 없습니다. 이 플러그인으로 Tauri 2 앱은
373
+ iOS 16.1 이상에서 ActivityKit Live Activity를 시작, 갱신, 종료하고, 잠금 화면과 Dynamic Island에 그립니다.
374
+
375
+ **Xcode에서 Widget Extension을 손으로 넣어야 하나요?** 아니요. `npx tauri-plugin-live-activity setup`이 활동을
376
+ 그리는 위젯 확장을 `src-tauri/gen/apple`의 Xcode 프로젝트에 넣습니다. `gen/apple`을 새로 만들 때마다 다시
377
+ 실행하세요.
373
378
 
374
379
  **Android Live Updates를 지원하나요?** 네. Android 16 (API 36) 이상에서는 시스템과 사용자 설정이 허락하면 승격된
375
380
  Live Update를 요청하고, 그 밖에는 Android 8.0 (API 26)부터 같은 요청이 진행 중 알림으로 보입니다.
@@ -383,6 +388,10 @@ Live Update를 요청하고, 그 밖에는 Android 8.0 (API 26)부터 같은 요
383
388
  **liveactivity-rs가 뭔가요?** 이 플러그인이 올라선 Rust 브리지, `liveactivity` 크레이트입니다. 요청 계약과 수명
384
389
  주기를 맡고, iOS는 activitykit-rs, Android는 liveupdate-rs 위에서 돌립니다([동작 구조](#동작-구조)).
385
390
 
391
+ **홈 화면 위젯 플러그인과 무엇이 다른가요?** tauri-plugin-widgets 같은 위젯 플러그인은 홈 화면에 계속 머무는
392
+ WidgetKit, Android Glance 위젯을 그립니다. 이 플러그인은 작업 하나가 진행되는 동안 그 작업을 따라가는 Live
393
+ Activity와 Android Live Update를 그립니다. 한 앱에서 둘 다 쓸 수 있습니다.
394
+
386
395
  **서버가 활동을 갱신할 수 있나요?** iOS에서는 APNs로 됩니다: 푸시 토큰, iOS 17.2부터 push-to-start, iOS 18부터
387
396
  broadcast 채널([푸시 (iOS)](#푸시-ios)). Android에는 푸시 경로가 없고, 앱이 알림을 갱신합니다.
388
397
 
package/README.md CHANGED
@@ -9,7 +9,8 @@
9
9
  Lock Screen and in the Dynamic Island (ActivityKit), and as a Live Update or an ongoing notification on Android.
10
10
  You describe the layout in TSX, TypeScript or Rust; the plugin draws it, through the
11
11
  [liveactivity-rs](https://github.com/1eedaegon/liveactivity-rs) bridge.
12
- [한국어](https://github.com/1eedaegon/tauri-plugin-live-activity/blob/main/README.ko.md)
12
+ [한국어](https://github.com/1eedaegon/tauri-plugin-live-activity/blob/main/README.ko.md) ·
13
+ [Site](https://1eedaegon.github.io/tauri-plugin-live-activity/)
13
14
 
14
15
  <table>
15
16
  <tr><th>iOS Lock Screen</th><th>Dynamic Island</th></tr>
@@ -377,9 +378,13 @@ app while the developer option "Live notifications for all apps" is on.
377
378
 
378
379
  ## Questions
379
380
 
380
- **Can a Tauri app show a Live Activity or use the Dynamic Island?** Yes. With this plugin a Tauri 2 app starts,
381
- updates and ends ActivityKit Live Activities on iOS 16.1 and later, drawn on the Lock Screen and in the Dynamic
382
- Island. `npx tauri-plugin-live-activity setup` adds the widget extension that draws them to the app's Xcode project.
381
+ **Is there a Tauri plugin for iOS Live Activities and the Dynamic Island?** Yes: this one. tauri-plugin-live-activity
382
+ is a community plugin; Tauri has no official one. With it a Tauri 2 app starts, updates and ends ActivityKit Live
383
+ Activities on iOS 16.1 and later, drawn on the Lock Screen and in the Dynamic Island.
384
+
385
+ **Do I have to add a Widget Extension in Xcode by hand?** No. `npx tauri-plugin-live-activity setup` adds the widget
386
+ extension that draws the activity to the Xcode project in `src-tauri/gen/apple`. Run it again whenever `gen/apple` is
387
+ made from scratch.
383
388
 
384
389
  **Does it support Android Live Updates?** Yes. On Android 16 (API 36) and later the plugin asks for a promoted Live
385
390
  Update where the system and the person's settings allow one; elsewhere, from Android 8.0 (API 26), the same request
@@ -394,6 +399,10 @@ plugin and its crates. A view of your own can still be SwiftUI ([Beyond the buil
394
399
  **What is liveactivity-rs?** The Rust bridge this plugin is built on, the `liveactivity` crate. It owns the request
395
400
  contract and the lifecycle, and runs iOS on activitykit-rs and Android on liveupdate-rs ([How it works](#how-it-works)).
396
401
 
402
+ **How is it different from a home-screen widget plugin?** Widget plugins such as tauri-plugin-widgets draw
403
+ WidgetKit and Android Glance widgets that stay on the home screen. This plugin draws Live Activities and Android Live
404
+ Updates, which follow one task while it runs. An app can use both.
405
+
397
406
  **Can a server update an activity?** On iOS, through APNs: push tokens, push-to-start from iOS 17.2 and broadcast
398
407
  channels from iOS 18 ([Pushes (iOS)](#pushes-ios)). Android has no push path; the app updates its notification.
399
408
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tauri-plugin-live-activity",
3
- "version": "0.13.1",
3
+ "version": "0.13.2",
4
4
  "description": "Tauri 2 plugin for iOS Live Activities (ActivityKit and Dynamic Island) and Android Live Updates with ongoing notification fallback",
5
5
  "author": "1eedaegon",
6
6
  "type": "module",
@@ -9,7 +9,7 @@
9
9
  "type": "git",
10
10
  "url": "git+https://github.com/1eedaegon/tauri-plugin-live-activity.git"
11
11
  },
12
- "homepage": "https://github.com/1eedaegon/tauri-plugin-live-activity#readme",
12
+ "homepage": "https://1eedaegon.github.io/tauri-plugin-live-activity/",
13
13
  "bugs": "https://github.com/1eedaegon/tauri-plugin-live-activity/issues",
14
14
  "keywords": ["tauri", "tauri-plugin", "tauri-v2", "ios", "ipados", "android", "live-activity", "live-activities", "activitykit", "dynamic-island", "live-updates", "live-update", "android-live-updates", "notifications", "ongoing-notification", "lock-screen", "widgetkit", "now-bar", "liveactivity-rs", "react", "tsx", "rust"],
15
15
  "sideEffects": false,
@@ -33,7 +33,7 @@
33
33
  "build": "tsc -p tsconfig.json && tsc -p cli && node -e \"require('node:fs').chmodSync('cli/bin.mjs', 0o755)\"",
34
34
  "typecheck": "npm run build && tsc -p tools && tsc -p tests && tsc -p examples/demo/tsconfig.json && tsc -p examples/demo/tsconfig.node.json && tsc -p examples/demo/tsconfig.live.json",
35
35
  "test": "npm run build && npm run test:contracts && npm run test:api && npm run test:jsx && npm run test:react && npm run test:demo && npm run test:setup",
36
- "test:contracts": "node --experimental-strip-types --test --experimental-test-coverage \"--test-coverage-include=tools/activitykit.ts\" \"--test-coverage-include=tools/sync-liveupdate.ts\" \"--test-coverage-include=tools/cargo.ts\" --test-coverage-lines=80 --test-coverage-branches=80 --test-coverage-functions=80 tests/contract-files.test.ts tests/typescript-requests.test.ts tests/android-liveupdate.test.ts tests/android-contents.test.ts tests/ci.test.ts tests/ci-cache.test.ts tests/ios-run.test.ts tests/spec-coverage.test.ts tests/docs.test.ts",
36
+ "test:contracts": "node --experimental-strip-types --test --experimental-test-coverage \"--test-coverage-include=tools/activitykit.ts\" \"--test-coverage-include=tools/sync-liveupdate.ts\" \"--test-coverage-include=tools/cargo.ts\" --test-coverage-lines=80 --test-coverage-branches=80 --test-coverage-functions=80 tests/contract-files.test.ts tests/typescript-requests.test.ts tests/android-liveupdate.test.ts tests/android-contents.test.ts tests/ci.test.ts tests/ci-cache.test.ts tests/ios-run.test.ts tests/spec-coverage.test.ts tests/docs.test.ts tests/site.test.ts",
37
37
  "test:api": "node --experimental-strip-types --test --experimental-test-coverage \"--test-coverage-include=dist-js/*.js\" --test-coverage-lines=80 --test-coverage-branches=80 --test-coverage-functions=80 tests/api.test.ts tests/api-reload.test.ts",
38
38
  "test:jsx": "node --experimental-strip-types --test --experimental-test-coverage \"--test-coverage-include=dist-js/jsx/*.js\" --test-coverage-lines=80 --test-coverage-branches=80 --test-coverage-functions=80 tests/jsx.test.ts",
39
39
  "test:react": "node --experimental-strip-types --test --experimental-test-coverage \"--test-coverage-include=dist-js/react/*.js\" --test-coverage-lines=80 --test-coverage-branches=80 --test-coverage-functions=80 tests/react.test.ts",