Skip to content

Commit 77d4e26

Browse files
committed
fix(build): make npm run build work out of the box
- tsconfig: set "types": [] so tsc doesn't auto-load ambient @types/node, which was colliding with lib.dom's AbortSignal. - package.json: drop verify:ios / verify:android — they pointed at an Xcode workspace and Gradle wrapper this scaffolding doesn't ship. Native verification happens in the consuming app via cap sync. verify is now just npm run build. - Commit package-lock.json so the publish workflow's npm ci works.
1 parent c998fc6 commit 77d4e26

4 files changed

Lines changed: 1957 additions & 7 deletions

File tree

README.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,22 +66,35 @@ up on restart.
6666

6767
### enable()
6868

69-
```ts
69+
```typescript
7070
enable() => Promise<void>
7171
```
7272

7373
Turn on screen-capture / snapshot protection for the current app session.
7474

75+
On Android this adds `FLAG_SECURE` to the activity window, which blocks
76+
screenshots, screen recording, and the Recents thumbnail.
77+
78+
On iOS this arms an overlay that is shown when the app resigns active,
79+
covering the system snapshot used in the App Switcher. The overlay is
80+
not inserted until `willResignActive` fires.
81+
82+
Stateful: stays on until {@link disable} is called.
83+
7584
--------------------
7685

7786
### disable()
7887

79-
```ts
88+
```typescript
8089
disable() => Promise<void>
8190
```
8291

8392
Turn off screen-capture / snapshot protection.
8493

94+
On Android this clears `FLAG_SECURE`. On iOS this disarms the overlay
95+
(any overlay currently on screen is torn down when the app next becomes
96+
active).
97+
8598
--------------------
8699

87100
</docgen-api>
@@ -109,7 +122,6 @@ handlers do — so there is one code path that owns the overlay lifecycle.
109122
```bash
110123
npm install
111124
npm run build
112-
npm run verify
113125
```
114126

115127
## Releasing

0 commit comments

Comments
 (0)