expo-screen-capture 58.0.2 → 58.0.3
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.
- package/CHANGELOG.md +6 -0
- package/android/build.gradle +2 -2
- package/expo-module.config.json +1 -1
- package/ios/ScreenCaptureModule.swift +4 -4
- package/ios/SecureWindowCanvas.swift +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/{58.0.2/expo.modules.screencapture-58.0.2.module → 58.0.3/expo.modules.screencapture-58.0.3.module} +8 -8
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/58.0.3/expo.modules.screencapture-58.0.3.module.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/58.0.3/expo.modules.screencapture-58.0.3.module.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/58.0.3/expo.modules.screencapture-58.0.3.module.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/58.0.3/expo.modules.screencapture-58.0.3.module.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/{58.0.2/expo.modules.screencapture-58.0.2.pom → 58.0.3/expo.modules.screencapture-58.0.3.pom} +2 -2
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/58.0.3/expo.modules.screencapture-58.0.3.pom.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/58.0.3/expo.modules.screencapture-58.0.3.pom.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/58.0.3/expo.modules.screencapture-58.0.3.pom.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/58.0.3/expo.modules.screencapture-58.0.3.pom.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/maven-metadata.xml +4 -4
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/maven-metadata.xml.md5 +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/maven-metadata.xml.sha1 +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/maven-metadata.xml.sha256 +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/maven-metadata.xml.sha512 +1 -1
- package/package.json +3 -3
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/58.0.2/expo.modules.screencapture-58.0.2.module.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/58.0.2/expo.modules.screencapture-58.0.2.module.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/58.0.2/expo.modules.screencapture-58.0.2.module.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/58.0.2/expo.modules.screencapture-58.0.2.module.sha512 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/58.0.2/expo.modules.screencapture-58.0.2.pom.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/58.0.2/expo.modules.screencapture-58.0.2.pom.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/58.0.2/expo.modules.screencapture-58.0.2.pom.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/58.0.2/expo.modules.screencapture-58.0.2.pom.sha512 +0 -1
- /package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/{58.0.2/expo.modules.screencapture-58.0.2-sources.jar → 58.0.3/expo.modules.screencapture-58.0.3-sources.jar} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/{58.0.2/expo.modules.screencapture-58.0.2-sources.jar.md5 → 58.0.3/expo.modules.screencapture-58.0.3-sources.jar.md5} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/{58.0.2/expo.modules.screencapture-58.0.2-sources.jar.sha1 → 58.0.3/expo.modules.screencapture-58.0.3-sources.jar.sha1} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/{58.0.2/expo.modules.screencapture-58.0.2-sources.jar.sha256 → 58.0.3/expo.modules.screencapture-58.0.3-sources.jar.sha256} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/{58.0.2/expo.modules.screencapture-58.0.2-sources.jar.sha512 → 58.0.3/expo.modules.screencapture-58.0.3-sources.jar.sha512} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/{58.0.2/expo.modules.screencapture-58.0.2.aar → 58.0.3/expo.modules.screencapture-58.0.3.aar} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/{58.0.2/expo.modules.screencapture-58.0.2.aar.md5 → 58.0.3/expo.modules.screencapture-58.0.3.aar.md5} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/{58.0.2/expo.modules.screencapture-58.0.2.aar.sha1 → 58.0.3/expo.modules.screencapture-58.0.3.aar.sha1} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/{58.0.2/expo.modules.screencapture-58.0.2.aar.sha256 → 58.0.3/expo.modules.screencapture-58.0.3.aar.sha256} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/{58.0.2/expo.modules.screencapture-58.0.2.aar.sha512 → 58.0.3/expo.modules.screencapture-58.0.3.aar.sha512} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 58.0.3 — 2026-09-25
|
|
14
|
+
|
|
15
|
+
### 🐛 Bug fixes
|
|
16
|
+
|
|
17
|
+
- [iOS] Sized the screenshot and recording blockers from the window they protect rather than the device's main screen, so they still cover the content on a two-display device such as iPhone Duo. ([#50570](https://github.com/expo/expo/pull/50570) by [@alanjhughes](https://github.com/alanjhughes))
|
|
18
|
+
|
|
13
19
|
## 58.0.2 — 2026-09-23
|
|
14
20
|
|
|
15
21
|
### 🐛 Bug fixes
|
package/android/build.gradle
CHANGED
package/expo-module.config.json
CHANGED
|
@@ -96,8 +96,8 @@ public final class ScreenCaptureModule: Module {
|
|
|
96
96
|
let visibleView = keyWindow.subviews.first else { return }
|
|
97
97
|
let blockView = getOrCreateBlockView()
|
|
98
98
|
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
if keyWindow.screen.isCaptured {
|
|
100
|
+
blockView.frame = visibleView.bounds
|
|
101
101
|
visibleView.addSubview(blockView)
|
|
102
102
|
} else {
|
|
103
103
|
blockView.removeFromSuperview()
|
|
@@ -114,9 +114,9 @@ public final class ScreenCaptureModule: Module {
|
|
|
114
114
|
private func getOrCreateBlockView() -> UIView {
|
|
115
115
|
guard let blockView else {
|
|
116
116
|
let view = UIView()
|
|
117
|
-
let boundLength = max(UIScreen.main.bounds.size.width, UIScreen.main.bounds.size.height)
|
|
118
|
-
view.frame = CGRect(x: 0, y: 0, width: boundLength, height: boundLength)
|
|
119
117
|
view.backgroundColor = .black
|
|
118
|
+
// The view is cached, so let it track its superview instead of a fixed size.
|
|
119
|
+
view.autoresizingMask = [.flexibleWidth, .flexibleHeight]
|
|
120
120
|
|
|
121
121
|
self.blockView = view
|
|
122
122
|
return view
|
|
@@ -21,7 +21,7 @@ internal final class SecureWindowCanvas {
|
|
|
21
21
|
textField.isSecureTextEntry = true
|
|
22
22
|
textField.isUserInteractionEnabled = false
|
|
23
23
|
textField.backgroundColor = .clear
|
|
24
|
-
textField.frame =
|
|
24
|
+
textField.frame = window.bounds
|
|
25
25
|
|
|
26
26
|
originalParent.addSublayer(textField.layer)
|
|
27
27
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"component": {
|
|
4
4
|
"group": "host.exp.exponent",
|
|
5
5
|
"module": "expo.modules.screencapture",
|
|
6
|
-
"version": "58.0.
|
|
6
|
+
"version": "58.0.3",
|
|
7
7
|
"attributes": {
|
|
8
8
|
"org.gradle.status": "release"
|
|
9
9
|
}
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
26
|
{
|
|
27
|
-
"name": "expo.modules.screencapture-58.0.
|
|
28
|
-
"url": "expo.modules.screencapture-58.0.
|
|
27
|
+
"name": "expo.modules.screencapture-58.0.3.aar",
|
|
28
|
+
"url": "expo.modules.screencapture-58.0.3.aar",
|
|
29
29
|
"size": 29348,
|
|
30
30
|
"sha512": "04a2a223409319c2ab64e82889a83288300305c8d5d0f1a28d7f29038b29b279706a88c2034b57e1e95b8b5ae97ad5a177cbcdcaba3d3fe93056f239106ce0e6",
|
|
31
31
|
"sha256": "07c5349490875eead06f18712d6664bf65cd01e8cf41c08c0cb04b9a0b4275be",
|
|
@@ -68,14 +68,14 @@
|
|
|
68
68
|
"group": "io.github.expo.pika",
|
|
69
69
|
"module": "pika-api",
|
|
70
70
|
"version": {
|
|
71
|
-
"requires": "1.
|
|
71
|
+
"requires": "1.1.0"
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
],
|
|
75
75
|
"files": [
|
|
76
76
|
{
|
|
77
|
-
"name": "expo.modules.screencapture-58.0.
|
|
78
|
-
"url": "expo.modules.screencapture-58.0.
|
|
77
|
+
"name": "expo.modules.screencapture-58.0.3.aar",
|
|
78
|
+
"url": "expo.modules.screencapture-58.0.3.aar",
|
|
79
79
|
"size": 29348,
|
|
80
80
|
"sha512": "04a2a223409319c2ab64e82889a83288300305c8d5d0f1a28d7f29038b29b279706a88c2034b57e1e95b8b5ae97ad5a177cbcdcaba3d3fe93056f239106ce0e6",
|
|
81
81
|
"sha256": "07c5349490875eead06f18712d6664bf65cd01e8cf41c08c0cb04b9a0b4275be",
|
|
@@ -94,8 +94,8 @@
|
|
|
94
94
|
},
|
|
95
95
|
"files": [
|
|
96
96
|
{
|
|
97
|
-
"name": "expo.modules.screencapture-58.0.
|
|
98
|
-
"url": "expo.modules.screencapture-58.0.
|
|
97
|
+
"name": "expo.modules.screencapture-58.0.3-sources.jar",
|
|
98
|
+
"url": "expo.modules.screencapture-58.0.3-sources.jar",
|
|
99
99
|
"size": 3324,
|
|
100
100
|
"sha512": "decfb6fdaa793ebdaaa21da7940941f796c3e70813ce82b7d6c6708a3b17a13d468d08240aac8ed05454eb6d959d721b319ed9049d080ba4b1939aaa9d3e342a",
|
|
101
101
|
"sha256": "32e1c335f58c7b5a3a9336d9d39f1a06948d99f947264355d089331fde3ac53d",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
d5ad4f23f2fb23153af3b2eaffa0a83f
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
d9bd4140fce632b21a1b8d20f32f5d499f7a890e
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
f31f12a704fff8e64aafb780b919060af34597e7b4cb47596efed920e61930d7
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
83c2dd031f681a99dc560f8b65dc2a3f4f840ed63a2fae9dad989125900dfa49889667959af96d30871a1fdb49d79af23aa3abd8dfcd3b04a06a9ffe31cfd158
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<modelVersion>4.0.0</modelVersion>
|
|
10
10
|
<groupId>host.exp.exponent</groupId>
|
|
11
11
|
<artifactId>expo.modules.screencapture</artifactId>
|
|
12
|
-
<version>58.0.
|
|
12
|
+
<version>58.0.3</version>
|
|
13
13
|
<packaging>aar</packaging>
|
|
14
14
|
<name>expo.modules.screencapture</name>
|
|
15
15
|
<url>https://github.com/expo/expo</url>
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
<dependency>
|
|
59
59
|
<groupId>io.github.expo.pika</groupId>
|
|
60
60
|
<artifactId>pika-api</artifactId>
|
|
61
|
-
<version>1.
|
|
61
|
+
<version>1.1.0</version>
|
|
62
62
|
<scope>runtime</scope>
|
|
63
63
|
</dependency>
|
|
64
64
|
</dependencies>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3694cf69f31d0513be05744452ef40da
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
e42c920b2f0dd86e5db2fde39e01060b3b61acd1
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
56da88b0a0e251fdecf9bd0f4e007c7fd20d8f4e392c0f765988ce233789d54e
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
74b5510008ef9d00f2e14013458c6310f21e972e897fea547cdec00aee34e421b1b0f988977fd0e92043593071d6cca6b05adb96e358be44c67dd2a35fa6f91a
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
<groupId>host.exp.exponent</groupId>
|
|
4
4
|
<artifactId>expo.modules.screencapture</artifactId>
|
|
5
5
|
<versioning>
|
|
6
|
-
<latest>58.0.
|
|
7
|
-
<release>58.0.
|
|
6
|
+
<latest>58.0.3</latest>
|
|
7
|
+
<release>58.0.3</release>
|
|
8
8
|
<versions>
|
|
9
|
-
<version>58.0.
|
|
9
|
+
<version>58.0.3</version>
|
|
10
10
|
</versions>
|
|
11
|
-
<lastUpdated>
|
|
11
|
+
<lastUpdated>20260925081259</lastUpdated>
|
|
12
12
|
</versioning>
|
|
13
13
|
</metadata>
|
package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/maven-metadata.xml.md5
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
b0800678b92619ddee6270eba7fc1966
|
package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/maven-metadata.xml.sha1
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
70254c23f192025f31e3244333ffce85936e57e1
|
package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/maven-metadata.xml.sha256
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
05ffceefaa52f1449c81e7e5f5317e3c67721c5e70f9a823d12a23cd539ee598
|
package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/maven-metadata.xml.sha512
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
5c72282659bb0501c3dac3523e917faf7519c87b6306c8f9038768d2a1d3863ca60cae41b405bd36bd9b9e49450fc8d078de271acf2454bdb6ef161631fdec48
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-screen-capture",
|
|
3
|
-
"version": "58.0.
|
|
3
|
+
"version": "58.0.3",
|
|
4
4
|
"description": "Protects screens in your app from being captured or recorded, and notifies if a screenshot is taken.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"expo",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@testing-library/react-native": "^13.3.0",
|
|
26
26
|
"@types/react": "~19.3.0",
|
|
27
|
-
"expo": "58.0.0-preview.
|
|
27
|
+
"expo": "58.0.0-preview.7",
|
|
28
28
|
"expo-module-scripts": "56.0.3"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"jest": {
|
|
35
35
|
"preset": "expo-module-scripts"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "ad41d067bd3df6dd12f1788acc6b54a68e7a650d",
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "expo-build src",
|
|
40
40
|
"clean": "expo-module clean",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
d9112a64070ac1a7693f62b47ad23628
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
9bca3117b7e4443dda2e3562536954d15aa2d7f8
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2c7b37387f25a19f0d88a89d2f27e687d0b3b5135f9aae975b0e7aa816591382
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2c7736a45c49f6f13d0e587edc64797366b60d047673790490f158682754dcb4dd8aea61c60a4f89489a11488eb090272f94fd637036bfd36f77585e5f32b0d4
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
a54fc4cf7cbe8643ed5a2b007e52d4de
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
c086981763c523a91ce7b58d1360b6f2de552197
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
349c9e0aea4d6932e2c42cb051ba7712c6b0eb25b0cebeb044a50160ea924685
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
a7c918f78f656718520cefbfaddcefea28a1b548394502a0fb9a89046ba99f215d904e75b222aa886f777c73d36c2fa53601bc13ebcf47549c116f5c508e7447
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|