@robono/calling-react-native 0.11.1 → 0.11.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.
- package/CHANGELOG.md +4 -0
- package/INCOMING-CALLS.md +6 -0
- package/README.md +1 -1
- package/SBOM.spdx.json +19 -19
- package/dist/versions.d.ts +1 -1
- package/dist/versions.js +1 -1
- package/package.json +1 -1
- package/plugin/callkit-icon.cjs +26 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.11.2
|
|
4
|
+
|
|
5
|
+
- Automatically bundle the website’s downloaded `.robono/callkit-icon.json` during iPhone builds. Explicit `callKitIcon` options take precedence. An exported removal restores the default on rebuild. Android setup is unchanged.
|
|
6
|
+
|
|
3
7
|
## 0.11.1
|
|
4
8
|
|
|
5
9
|
- Allow each host to supply a bundled CallKit template icon with the Expo plugin's `callKitIcon` PNG path or the native `RobonoCallKitIconName` Info.plist entry.
|
package/INCOMING-CALLS.md
CHANGED
|
@@ -108,3 +108,9 @@ Configure it with the authenticated notification `accountScope`, connect each
|
|
|
108
108
|
controller with `attach`, pass `audio` to the native media adapter, and register
|
|
109
109
|
its notification fields with the normal device. Clear it before changing accounts.
|
|
110
110
|
Never construct account scopes from unverified notification contents.
|
|
111
|
+
|
|
112
|
+
### Website icon setup (0.11.2+)
|
|
113
|
+
|
|
114
|
+
In the website designer, choose a calling screen and **iPhone call icon**. Upload a transparent PNG, save the design, and download the icon setup. Put the file at `.robono/callkit-icon.json` in the app project and rebuild iOS. The calling Expo plugin (also included by the Messenger setup plugin) reads this self-contained file during the native build and bundles the image; no network download or JavaScript startup is needed for locked incoming calls. Apple controls the icon’s placement and tint. Android calling is unchanged.
|
|
115
|
+
|
|
116
|
+
The JSON format is `{ "format": "robono-callkit-icon", "version": 1, "pngBase64": "…" }`. The website produces a 120×120 PNG alpha mask, up to 64 KiB. To remove it, download the setup again after choosing Remove icon; its `pngBase64` is `null`. Keep that removal file through the next native build. Deleting the file alone preserves manually configured native settings. An explicit `callKitIcon` plugin option overrides the downloaded setup; remove that option to use website branding. Bare native projects should use the bundled asset instructions above. Saving or applying website designs cannot update icons already installed on phones.
|
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ Installing the engine never installs or opens these screens. Importing this pack
|
|
|
27
27
|
Install the versioned calling engine and the optional mobile package from npm:
|
|
28
28
|
|
|
29
29
|
```sh
|
|
30
|
-
npm install @robono/calling@0.7.0 @robono/calling-react-native@0.11.
|
|
30
|
+
npm install @robono/calling@0.7.0 @robono/calling-react-native@0.11.2
|
|
31
31
|
```
|
|
32
32
|
The screens need React, React Native, React Native SVG and Safe Area Context 5. The native audio and notification adapters support the following Expo dependency families:
|
|
33
33
|
|
package/SBOM.spdx.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"spdxVersion": "SPDX-2.3",
|
|
3
3
|
"dataLicense": "CC0-1.0",
|
|
4
4
|
"SPDXID": "SPDXRef-DOCUMENT",
|
|
5
|
-
"name": "@robono/calling-react-native@0.11.
|
|
6
|
-
"documentNamespace": "https://robono.com/sbom/calling-react-native/0.11.
|
|
5
|
+
"name": "@robono/calling-react-native@0.11.2",
|
|
6
|
+
"documentNamespace": "https://robono.com/sbom/calling-react-native/0.11.2/bc0725aa08c93895cc686b95ae563fc3610b565c",
|
|
7
7
|
"creationInfo": {
|
|
8
|
-
"created": "2026-11-16T09:
|
|
8
|
+
"created": "2026-11-16T09:56:20.575Z",
|
|
9
9
|
"creators": [
|
|
10
10
|
"Organization: Robono (support@robono.com)"
|
|
11
11
|
]
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
{
|
|
15
15
|
"name": "@robono/calling-react-native",
|
|
16
16
|
"SPDXID": "SPDXRef-Package",
|
|
17
|
-
"versionInfo": "0.11.
|
|
17
|
+
"versionInfo": "0.11.2",
|
|
18
18
|
"downloadLocation": "NOASSERTION",
|
|
19
19
|
"filesAnalyzed": true,
|
|
20
20
|
"packageVerificationCode": {
|
|
21
|
-
"packageVerificationCodeValue": "
|
|
21
|
+
"packageVerificationCodeValue": "bc0725aa08c93895cc686b95ae563fc3610b565c"
|
|
22
22
|
},
|
|
23
23
|
"licenseConcluded": "LicenseRef-RobonoSDK",
|
|
24
24
|
"licenseDeclared": "LicenseRef-RobonoSDK",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"checksums": [
|
|
37
37
|
{
|
|
38
38
|
"algorithm": "SHA256",
|
|
39
|
-
"checksumValue": "
|
|
39
|
+
"checksumValue": "77cabf8d28e04dab5d1e023710fc53e6003d3d1673ee8fd637b5550ffbd51e67"
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
"algorithm": "SHA1",
|
|
43
|
-
"checksumValue": "
|
|
43
|
+
"checksumValue": "d86eaafb4692a281920182694004d3db42491e23"
|
|
44
44
|
}
|
|
45
45
|
],
|
|
46
46
|
"licenseConcluded": "LicenseRef-RobonoSDK",
|
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
"checksums": [
|
|
56
56
|
{
|
|
57
57
|
"algorithm": "SHA256",
|
|
58
|
-
"checksumValue": "
|
|
58
|
+
"checksumValue": "5694d58841375eca4b45fbcbf97b51328f1a32f17ebe21754c3863d079af74c0"
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
61
|
"algorithm": "SHA1",
|
|
62
|
-
"checksumValue": "
|
|
62
|
+
"checksumValue": "096a288bcc657cf40695098927d887ceeb2dd648"
|
|
63
63
|
}
|
|
64
64
|
],
|
|
65
65
|
"licenseConcluded": "LicenseRef-RobonoSDK",
|
|
@@ -93,11 +93,11 @@
|
|
|
93
93
|
"checksums": [
|
|
94
94
|
{
|
|
95
95
|
"algorithm": "SHA256",
|
|
96
|
-
"checksumValue": "
|
|
96
|
+
"checksumValue": "ae12a3c0581552dcbbdb2fd6fa7977f256548e12f374343a59fb1b1060c8bc56"
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
99
|
"algorithm": "SHA1",
|
|
100
|
-
"checksumValue": "
|
|
100
|
+
"checksumValue": "856c29bb9f3888bd19a9c19ba3116e4bdccbc61b"
|
|
101
101
|
}
|
|
102
102
|
],
|
|
103
103
|
"licenseConcluded": "LicenseRef-RobonoSDK",
|
|
@@ -6211,11 +6211,11 @@
|
|
|
6211
6211
|
"checksums": [
|
|
6212
6212
|
{
|
|
6213
6213
|
"algorithm": "SHA256",
|
|
6214
|
-
"checksumValue": "
|
|
6214
|
+
"checksumValue": "457beb3bb05f9aeea96ef0e5f8cfb008c094ccd812984ac821e01746134603b5"
|
|
6215
6215
|
},
|
|
6216
6216
|
{
|
|
6217
6217
|
"algorithm": "SHA1",
|
|
6218
|
-
"checksumValue": "
|
|
6218
|
+
"checksumValue": "517c8863d613d213b5f935bcd586195441342d43"
|
|
6219
6219
|
}
|
|
6220
6220
|
],
|
|
6221
6221
|
"licenseConcluded": "LicenseRef-RobonoSDK",
|
|
@@ -6230,11 +6230,11 @@
|
|
|
6230
6230
|
"checksums": [
|
|
6231
6231
|
{
|
|
6232
6232
|
"algorithm": "SHA256",
|
|
6233
|
-
"checksumValue": "
|
|
6233
|
+
"checksumValue": "260316fbe426908336927309d20c46cf126145625cc74f4c97352b0ef5366437"
|
|
6234
6234
|
},
|
|
6235
6235
|
{
|
|
6236
6236
|
"algorithm": "SHA1",
|
|
6237
|
-
"checksumValue": "
|
|
6237
|
+
"checksumValue": "42e574aa7d07417907f145ae73a0294b21c0821d"
|
|
6238
6238
|
}
|
|
6239
6239
|
],
|
|
6240
6240
|
"licenseConcluded": "LicenseRef-RobonoSDK",
|
|
@@ -6591,11 +6591,11 @@
|
|
|
6591
6591
|
"checksums": [
|
|
6592
6592
|
{
|
|
6593
6593
|
"algorithm": "SHA256",
|
|
6594
|
-
"checksumValue": "
|
|
6594
|
+
"checksumValue": "9e8b9dbd173279dbab4b2fcc3ec093da8aa5992deb33a2bb7f04dcd72501f401"
|
|
6595
6595
|
},
|
|
6596
6596
|
{
|
|
6597
6597
|
"algorithm": "SHA1",
|
|
6598
|
-
"checksumValue": "
|
|
6598
|
+
"checksumValue": "d3012707f2ebe4a2f7f05e4480c712c382b86802"
|
|
6599
6599
|
}
|
|
6600
6600
|
],
|
|
6601
6601
|
"licenseConcluded": "LicenseRef-RobonoSDK",
|
|
@@ -6610,11 +6610,11 @@
|
|
|
6610
6610
|
"checksums": [
|
|
6611
6611
|
{
|
|
6612
6612
|
"algorithm": "SHA256",
|
|
6613
|
-
"checksumValue": "
|
|
6613
|
+
"checksumValue": "67582b47c123a87856af6acbca9a1b995ee1c6abd0608caf73fc3bdf28c0fdb0"
|
|
6614
6614
|
},
|
|
6615
6615
|
{
|
|
6616
6616
|
"algorithm": "SHA1",
|
|
6617
|
-
"checksumValue": "
|
|
6617
|
+
"checksumValue": "31c50f5cd98e41e2492a6cd1812c5d91bcb4db6f"
|
|
6618
6618
|
}
|
|
6619
6619
|
],
|
|
6620
6620
|
"licenseConcluded": "LicenseRef-RobonoSDK",
|
package/dist/versions.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const mobileVersion = "0.11.
|
|
1
|
+
export declare const mobileVersion = "0.11.2";
|
|
2
2
|
export declare const engineVersion = "0.7.0";
|
package/dist/versions.js
CHANGED
package/package.json
CHANGED
package/plugin/callkit-icon.cjs
CHANGED
|
@@ -9,7 +9,9 @@ function readIcon(projectRoot,input){
|
|
|
9
9
|
const file=path.resolve(projectRoot,input);
|
|
10
10
|
if(!fs.existsSync(file)||!fs.statSync(file).isFile())throw Error('The callKitIcon PNG file does not exist: '+input);
|
|
11
11
|
if(fs.statSync(file).size>1024*1024)throw Error('The callKitIcon PNG must be smaller than 1 MiB.');
|
|
12
|
-
|
|
12
|
+
return validateIcon(fs.readFileSync(file));
|
|
13
|
+
}
|
|
14
|
+
function validateIcon(data){
|
|
13
15
|
if(data.length<33||!data.subarray(0,8).equals(Buffer.from([137,80,78,71,13,10,26,10]))||data.toString('ascii',12,16)!=='IHDR')throw Error('callKitIcon must be a PNG image.');
|
|
14
16
|
const width=data.readUInt32BE(16),height=data.readUInt32BE(20);
|
|
15
17
|
if(width!==height||![40,80,120].includes(width))throw Error('callKitIcon must be a square PNG: 40, 80, or 120 pixels for a 40-point icon.');
|
|
@@ -25,7 +27,7 @@ function readIcon(projectRoot,input){
|
|
|
25
27
|
return data;
|
|
26
28
|
}
|
|
27
29
|
function installIcon(project,{projectRoot,platformProjectRoot,projectName,input}){
|
|
28
|
-
const data=readIcon(projectRoot,input);
|
|
30
|
+
const data=Buffer.isBuffer(input)?validateIcon(input):readIcon(projectRoot,input);
|
|
29
31
|
const directory=path.join(platformProjectRoot,projectName);
|
|
30
32
|
fs.mkdirSync(directory,{recursive:true});
|
|
31
33
|
fs.writeFileSync(path.join(directory,resource),data);
|
|
@@ -37,13 +39,29 @@ function installIcon(project,{projectRoot,platformProjectRoot,projectName,input}
|
|
|
37
39
|
}
|
|
38
40
|
return project;
|
|
39
41
|
}
|
|
42
|
+
function resolveIcon(projectRoot,input){
|
|
43
|
+
if(input!==undefined)return input;
|
|
44
|
+
const file=path.join(projectRoot,'.robono','callkit-icon.json');
|
|
45
|
+
if(!fs.existsSync(file))return undefined;
|
|
46
|
+
if(!fs.statSync(file).isFile()||fs.statSync(file).size>90000)throw Error('Invalid .robono/callkit-icon.json: download the iPhone icon setup again.');
|
|
47
|
+
const setup=JSON.parse(fs.readFileSync(file,'utf8'));
|
|
48
|
+
if(setup?.format!=='robono-callkit-icon'||setup.version!==1)throw Error('Unsupported iPhone icon setup. Download it again from Robono.');
|
|
49
|
+
if(setup.pngBase64===null)return null;
|
|
50
|
+
if(typeof setup.pngBase64!=='string'||setup.pngBase64.length>87384||!/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(setup.pngBase64))throw Error('Invalid iPhone icon PNG data.');
|
|
51
|
+
const data=validateIcon(Buffer.from(setup.pngBase64,'base64'));
|
|
52
|
+
if(data.length>65536||data.readUInt32BE(16)!==120||data[25]!==6)throw Error('Invalid website iPhone icon size or format.');
|
|
53
|
+
return data;
|
|
54
|
+
}
|
|
40
55
|
function withCallKitIcon(config,input){
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
56
|
+
config=withInfoPlist(config,c=>{
|
|
57
|
+
const icon=resolveIcon(c.modRequest.projectRoot,input);
|
|
58
|
+
if(icon===null)delete c.modResults[plistKey];else if(icon!==undefined)c.modResults[plistKey]=resource;
|
|
59
|
+
return c;
|
|
60
|
+
});
|
|
45
61
|
return withXcodeProject(config,c=>{
|
|
46
|
-
|
|
62
|
+
const icon=resolveIcon(c.modRequest.projectRoot,input);
|
|
63
|
+
if(icon!==undefined&&icon!==null)installIcon(c.modResults,{projectRoot:c.modRequest.projectRoot,platformProjectRoot:c.modRequest.platformProjectRoot,projectName:IOSConfig.XcodeUtils.getProjectName(c.modRequest.projectRoot),input:icon});
|
|
64
|
+
return c;
|
|
47
65
|
});
|
|
48
66
|
}
|
|
49
|
-
module.exports={withCallKitIcon,installIcon,readIcon,resource,plistKey};
|
|
67
|
+
module.exports={withCallKitIcon,installIcon,readIcon,resolveIcon,resource,plistKey};
|