rock 0.10.2 → 0.11.1
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/dist/src/bin.d.ts.map +1 -0
- package/dist/src/bin.js +0 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/lib/checkDeprecatedOptions.d.ts.map +1 -0
- package/dist/src/lib/cli.d.ts.map +1 -0
- package/dist/src/lib/plugins/clean.d.ts.map +1 -0
- package/dist/src/lib/plugins/fingerprint.d.ts +1 -1
- package/dist/src/lib/plugins/fingerprint.d.ts.map +1 -0
- package/dist/src/lib/plugins/fingerprint.js +5 -3
- package/dist/src/lib/plugins/fingerprint.js.map +1 -1
- package/dist/src/lib/plugins/logConfig.d.ts.map +1 -0
- package/dist/src/lib/plugins/logConfig.js +2 -0
- package/dist/src/lib/plugins/logConfig.js.map +1 -1
- package/dist/src/lib/plugins/remoteCache.d.ts.map +1 -0
- package/dist/src/lib/plugins/templateIndexHtml.d.ts +5 -0
- package/dist/src/lib/plugins/templateIndexHtml.js +189 -0
- package/dist/src/lib/plugins/templateIndexHtml.js.map +1 -0
- package/dist/src/lib/plugins/templateManifestPlist.d.ts +8 -0
- package/dist/src/lib/plugins/templateManifestPlist.js +36 -0
- package/dist/src/lib/plugins/templateManifestPlist.js.map +1 -0
- package/package.json +5 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bin.d.ts","sourceRoot":"","sources":["../../src/bin.ts"],"names":[],"mappings":""}
|
package/dist/src/bin.js
CHANGED
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,YAAY,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkDeprecatedOptions.d.ts","sourceRoot":"","sources":["../../../src/lib/checkDeprecatedOptions.ts"],"names":[],"mappings":"AAgFA,eAAO,MAAM,sBAAsB,GAAI,MAAM,MAAM,EAAE,SAapD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../../src/lib/cli.ts"],"names":[],"mappings":"AAgBA,KAAK,UAAU,GAAG;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,GAAG,GAAU,eAAe,UAAU,kBAqElD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clean.d.ts","sourceRoot":"","sources":["../../../../src/lib/plugins/clean.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AA8V5D,eAAO,MAAM,WAAW,SAErB,KAAK,SAAS,KAAG,YAgCjB,CAAC"}
|
|
@@ -4,7 +4,7 @@ type NativeFingerprintCommandOptions = {
|
|
|
4
4
|
platform: 'ios' | 'android';
|
|
5
5
|
raw?: boolean;
|
|
6
6
|
};
|
|
7
|
-
export declare function nativeFingerprintCommand(path: string, { extraSources, ignorePaths }: FingerprintSources, options: NativeFingerprintCommandOptions): Promise<void>;
|
|
7
|
+
export declare function nativeFingerprintCommand(path: string, { extraSources, ignorePaths, env }: FingerprintSources, options: NativeFingerprintCommandOptions): Promise<void>;
|
|
8
8
|
export declare const fingerprintPlugin: () => (api: PluginApi) => {
|
|
9
9
|
name: string;
|
|
10
10
|
description: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fingerprint.d.ts","sourceRoot":"","sources":["../../../../src/lib/plugins/fingerprint.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAYtD,KAAK,+BAA+B,GAAG;IACrC,QAAQ,EAAE,KAAK,GAAG,SAAS,CAAC;IAC5B,GAAG,CAAC,EAAE,OAAO,CAAC;CACf,CAAC;AAEF,wBAAsB,wBAAwB,CAC5C,IAAI,EAAE,MAAM,EACZ,EAAE,YAAY,EAAE,WAAW,EAAE,EAAE,kBAAkB,EACjD,OAAO,EAAE,+BAA+B,iBAqDzC;AAeD,eAAO,MAAM,iBAAiB,SAAU,KAAK,SAAS;;;CA4BrD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { performance } from 'node:perf_hooks';
|
|
2
2
|
import { color, intro, isInteractive, logger, nativeFingerprint, outro, RockError, spinner, } from '@rock-js/tools';
|
|
3
|
-
export async function nativeFingerprintCommand(path, { extraSources, ignorePaths }, options) {
|
|
3
|
+
export async function nativeFingerprintCommand(path, { extraSources, ignorePaths, env }, options) {
|
|
4
4
|
validateOptions(options);
|
|
5
5
|
const platform = options.platform;
|
|
6
6
|
const readablePlatformName = platform === 'ios' ? 'iOS' : 'Android';
|
|
@@ -9,12 +9,13 @@ export async function nativeFingerprintCommand(path, { extraSources, ignorePaths
|
|
|
9
9
|
platform,
|
|
10
10
|
extraSources,
|
|
11
11
|
ignorePaths,
|
|
12
|
+
env,
|
|
12
13
|
});
|
|
13
14
|
console.log(fingerprint.hash);
|
|
14
15
|
// log sources to stderr to avoid polluting the standard output
|
|
15
16
|
console.error(JSON.stringify({
|
|
16
17
|
hash: fingerprint.hash,
|
|
17
|
-
sources: fingerprint.
|
|
18
|
+
sources: fingerprint.inputs.filter((source) => source.hash != null),
|
|
18
19
|
}, null, 2));
|
|
19
20
|
return;
|
|
20
21
|
}
|
|
@@ -26,10 +27,11 @@ export async function nativeFingerprintCommand(path, { extraSources, ignorePaths
|
|
|
26
27
|
platform,
|
|
27
28
|
extraSources,
|
|
28
29
|
ignorePaths,
|
|
30
|
+
env,
|
|
29
31
|
});
|
|
30
32
|
const duration = performance.now() - start;
|
|
31
33
|
loader.stop(`Fingerprint calculated: ${color.bold(color.magenta(fingerprint.hash))}`);
|
|
32
|
-
logger.debug('Sources:', JSON.stringify(fingerprint.
|
|
34
|
+
logger.debug('Sources:', JSON.stringify(fingerprint.inputs.filter((source) => source.hash != null), null, 2));
|
|
33
35
|
logger.debug(`Duration: ${(duration / 1000).toFixed(1)}s`);
|
|
34
36
|
outro('Success 🎉.');
|
|
35
37
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fingerprint.js","sourceRoot":"","sources":["../../../../src/lib/plugins/fingerprint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAG9C,OAAO,EACL,KAAK,EACL,KAAK,EACL,aAAa,EACb,MAAM,EACN,iBAAiB,EACjB,KAAK,EACL,SAAS,EACT,OAAO,GACR,MAAM,gBAAgB,CAAC;AAOxB,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAC5C,IAAY,EACZ,EAAE,YAAY,EAAE,WAAW,EAAsB,
|
|
1
|
+
{"version":3,"file":"fingerprint.js","sourceRoot":"","sources":["../../../../src/lib/plugins/fingerprint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAG9C,OAAO,EACL,KAAK,EACL,KAAK,EACL,aAAa,EACb,MAAM,EACN,iBAAiB,EACjB,KAAK,EACL,SAAS,EACT,OAAO,GACR,MAAM,gBAAgB,CAAC;AAOxB,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAC5C,IAAY,EACZ,EAAE,YAAY,EAAE,WAAW,EAAE,GAAG,EAAsB,EACtD,OAAwC;IAExC,eAAe,CAAC,OAAO,CAAC,CAAC;IACzB,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;IAClC,MAAM,oBAAoB,GAAG,QAAQ,KAAK,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;IAEpE,IAAI,OAAO,CAAC,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QAC5B,WAAW,EAAE,oBAAoB;KAClC,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logConfig.d.ts","sourceRoot":"","sources":["../../../../src/lib/plugins/logConfig.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AA4B5D,eAAO,MAAM,SAAS,GACpB,MAAM;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,EAC3B,WAAW;IACT,SAAS,EAAE,YAAY,CAAC,WAAW,CAAC,CAAC;IACrC,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;CAC5B,kBAoBF,CAAC;AAEF,eAAO,MAAM,eAAe,GACzB,WAAW;IACV,SAAS,EAAE,YAAY,CAAC,WAAW,CAAC,CAAC;IACrC,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;CAC5B,MACA,KAAK,SAAS;;;CAmBd,CAAC"}
|
|
@@ -7,6 +7,8 @@ function filterConfig(config) {
|
|
|
7
7
|
// but in our case we don't install `@react-native-community/cli-platform-*` as a dependencies
|
|
8
8
|
// so the config.platforms key is empty, which makes autolinking treat it as a dependency.
|
|
9
9
|
delete filtered.dependencies['react-native'];
|
|
10
|
+
// we don't want to show commands in the config
|
|
11
|
+
filtered.commands = [];
|
|
10
12
|
const dependencies = {};
|
|
11
13
|
Object.keys(filtered.dependencies).forEach((item) => {
|
|
12
14
|
if (isValidRNDependency(filtered.dependencies[item])) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logConfig.js","sourceRoot":"","sources":["../../../../src/lib/plugins/logConfig.ts"],"names":[],"mappings":"AAMA,SAAS,mBAAmB,CAAC,MAAwB;IACnD,OAAO,CACL,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAC3C,OAAO,CAAC,MAAM,C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AAS,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AAC7D,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAC1B,CAAC,SAGA,EAAE,EAAE,CACL,CAAC,GAAc,EAAE,EAAE;IACjB,GAAG,CAAC,eAAe,CAAC;QAClB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,2BAA2B;QACxC,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;YACrB,MAAM,SAAS,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QACnC,CAAC;QACD,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,yBAAyB;gBAC/B,WAAW,EAAE,sCAAsC;aACpD;SACF;KACF,CAAC,CAAC;IAEH,OAAO;QACL,IAAI,EAAE,iBAAiB;QACvB,WAAW,EAAE,sBAAsB;KACpC,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remoteCache.d.ts","sourceRoot":"","sources":["../../../../src/lib/plugins/remoteCache.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAiP5D,eAAO,MAAM,iBAAiB,SAE3B,KAAK,SAAS,KAAG,YA6DjB,CAAC"}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
export const templateIndexHtmlPlugin = ({ appName, version, manifestPlistUrl, }) => {
|
|
2
|
+
return `<!DOCTYPE html>
|
|
3
|
+
<html lang="en">
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<title>Download iOS App</title>
|
|
8
|
+
<style>
|
|
9
|
+
* {
|
|
10
|
+
margin: 0;
|
|
11
|
+
padding: 0;
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
body {
|
|
16
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
|
|
17
|
+
Oxygen, Ubuntu, Cantarell, sans-serif;
|
|
18
|
+
min-height: 100vh;
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
padding: 20px;
|
|
23
|
+
font-size: 16px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.container {
|
|
27
|
+
text-align: center;
|
|
28
|
+
max-width: 500px;
|
|
29
|
+
width: 100%;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.app-icon {
|
|
33
|
+
width: 100px;
|
|
34
|
+
height: 100px;
|
|
35
|
+
margin: 0 auto 15px;
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
font-size: 48px;
|
|
40
|
+
color: white;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
h1 {
|
|
44
|
+
color: #1d1d1f;
|
|
45
|
+
font-size: 28px;
|
|
46
|
+
font-weight: 600;
|
|
47
|
+
margin-bottom: 15px;
|
|
48
|
+
overflow-wrap: break-word;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.subtitle {
|
|
52
|
+
color: #86868b;
|
|
53
|
+
font-size: 16px;
|
|
54
|
+
line-height: 1.5;
|
|
55
|
+
margin-bottom: 30px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.version {
|
|
59
|
+
color: #1d1d1f;
|
|
60
|
+
font-size: 16px;
|
|
61
|
+
line-height: 1.5;
|
|
62
|
+
margin-bottom: 10px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.download-button {
|
|
66
|
+
background: #8232ff;
|
|
67
|
+
color: white;
|
|
68
|
+
border: none;
|
|
69
|
+
padding: 16px 32px;
|
|
70
|
+
border-radius: 2px;
|
|
71
|
+
font-size: 14px;
|
|
72
|
+
cursor: pointer;
|
|
73
|
+
transition: all 0.3s ease;
|
|
74
|
+
text-decoration: none;
|
|
75
|
+
display: inline-block;
|
|
76
|
+
margin-bottom: 20px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.download-button:hover {
|
|
80
|
+
transform: translateY(-2px);
|
|
81
|
+
box-shadow: 0 10px 25px rgba(0, 122, 255, 0.3);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.download-button:active {
|
|
85
|
+
transform: translateY(0);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.instructions {
|
|
89
|
+
background: #f5f5f7;
|
|
90
|
+
border-radius: 2px;
|
|
91
|
+
padding: 20px;
|
|
92
|
+
margin-top: 20px;
|
|
93
|
+
text-align: left;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.instructions h3 {
|
|
97
|
+
color: #1d1d1f;
|
|
98
|
+
font-size: 16px;
|
|
99
|
+
margin-bottom: 10px;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.instructions ol {
|
|
103
|
+
color: #86868b;
|
|
104
|
+
font-size: 14px;
|
|
105
|
+
line-height: 1.6;
|
|
106
|
+
padding-left: 20px;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.instructions li {
|
|
110
|
+
margin-bottom: 8px;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.adhoc-info {
|
|
114
|
+
text-align: left;
|
|
115
|
+
margin-top: 20px;
|
|
116
|
+
padding: 1em 2em;
|
|
117
|
+
border-left: 2px solid #8232ff;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.adhoc-info-title {
|
|
121
|
+
font-weight: 600;
|
|
122
|
+
margin-bottom: 10px;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.adhoc-info-text {
|
|
126
|
+
color: #1d1d1f;
|
|
127
|
+
margin: 0;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.footer {
|
|
131
|
+
text-align: center;
|
|
132
|
+
margin-top: 40px;
|
|
133
|
+
font-size: 12px;
|
|
134
|
+
color: #86868b;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.link {
|
|
138
|
+
color: #8232ff;
|
|
139
|
+
text-decoration: none;
|
|
140
|
+
}
|
|
141
|
+
</style>
|
|
142
|
+
</head>
|
|
143
|
+
<body>
|
|
144
|
+
<div class="container">
|
|
145
|
+
<div class="app-icon">📱</div>
|
|
146
|
+
|
|
147
|
+
<h1>${appName}</h1>
|
|
148
|
+
<p class="version">Version ${version}</p>
|
|
149
|
+
<p class="subtitle">
|
|
150
|
+
Download and install the latest version of our iOS app directly to your
|
|
151
|
+
device.
|
|
152
|
+
</p>
|
|
153
|
+
|
|
154
|
+
<a
|
|
155
|
+
href="itms-services://?action=download-manifest&url=${manifestPlistUrl}"
|
|
156
|
+
class="download-button">
|
|
157
|
+
Download App
|
|
158
|
+
</a>
|
|
159
|
+
|
|
160
|
+
<div class="instructions">
|
|
161
|
+
<h3>Installation Instructions:</h3>
|
|
162
|
+
<ol>
|
|
163
|
+
<li>Tap the "Download App" button above</li>
|
|
164
|
+
<li>If prompted, tap "Install" in the popup dialog</li>
|
|
165
|
+
<li>Go to Settings > General > VPN & Device Management</li>
|
|
166
|
+
<li>Find your developer certificate and tap "Trust"</li>
|
|
167
|
+
<li>The app will now be available on your home screen</li>
|
|
168
|
+
</ol>
|
|
169
|
+
</div>
|
|
170
|
+
|
|
171
|
+
<div class="adhoc-info">
|
|
172
|
+
<p class="adhoc-info-title">Ad-hoc build notice</p>
|
|
173
|
+
<p class="adhoc-info-text">
|
|
174
|
+
This is an ad-hoc build for testing purposes. Make sure you're using a
|
|
175
|
+
device that's registered in the provisioning profile.
|
|
176
|
+
</p>
|
|
177
|
+
</div>
|
|
178
|
+
<div class="footer">
|
|
179
|
+
<p>
|
|
180
|
+
Generated with <a class="link" href="https://rnef.dev">RNEF</a> by
|
|
181
|
+
<a class="link" href="https://callstack.com">Callstack</a>
|
|
182
|
+
</p>
|
|
183
|
+
</div>
|
|
184
|
+
</div>
|
|
185
|
+
</body>
|
|
186
|
+
</html>
|
|
187
|
+
`;
|
|
188
|
+
};
|
|
189
|
+
//# sourceMappingURL=templateIndexHtml.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templateIndexHtml.js","sourceRoot":"","sources":["../../../../src/lib/plugins/templateIndexHtml.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,EACtC,OAAO,EACP,OAAO,EACP,gBAAgB,GAKjB,EAAE,EAAE;IACH,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAiJG,OAAO;mCACgB,OAAO;;;;;;;8DAOoB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgC7E,CAAC;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const templateManifestPlistPlugin: ({ baseUrl, ipaName, bundleIdentifier, version, appName, platformIdentifier, }: {
|
|
2
|
+
baseUrl: string;
|
|
3
|
+
ipaName: string;
|
|
4
|
+
bundleIdentifier: string;
|
|
5
|
+
version: string;
|
|
6
|
+
appName: string;
|
|
7
|
+
platformIdentifier: string;
|
|
8
|
+
}) => string;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export const templateManifestPlistPlugin = ({ baseUrl, ipaName, bundleIdentifier, version, appName, platformIdentifier, }) => {
|
|
2
|
+
return `<?xml version="1.0" encoding="UTF-8"?>
|
|
3
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
4
|
+
<plist version="1.0">
|
|
5
|
+
<dict>
|
|
6
|
+
<key>items</key>
|
|
7
|
+
<array>
|
|
8
|
+
<dict>
|
|
9
|
+
<key>assets</key>
|
|
10
|
+
<array>
|
|
11
|
+
<dict>
|
|
12
|
+
<key>kind</key>
|
|
13
|
+
<string>software-package</string>
|
|
14
|
+
<key>url</key>
|
|
15
|
+
<string>${baseUrl}/${ipaName}</string>
|
|
16
|
+
</dict>
|
|
17
|
+
</array>
|
|
18
|
+
<key>metadata</key>
|
|
19
|
+
<dict>
|
|
20
|
+
<key>bundle-identifier</key>
|
|
21
|
+
<string>${bundleIdentifier}</string>
|
|
22
|
+
<key>bundle-version</key>
|
|
23
|
+
<string>${version}</string>
|
|
24
|
+
<key>kind</key>
|
|
25
|
+
<string>software</string>
|
|
26
|
+
<key>platform-identifier</key>
|
|
27
|
+
<string>${platformIdentifier ?? 'com.apple.platform.iphoneos'}</string>
|
|
28
|
+
<key>title</key>
|
|
29
|
+
<string>${appName}</string>
|
|
30
|
+
</dict>
|
|
31
|
+
</dict>
|
|
32
|
+
</array>
|
|
33
|
+
</dict>
|
|
34
|
+
</plist>`;
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=templateManifestPlist.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templateManifestPlist.js","sourceRoot":"","sources":["../../../../src/lib/plugins/templateManifestPlist.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,EAC1C,OAAO,EACP,OAAO,EACP,gBAAgB,EAChB,OAAO,EACP,OAAO,EACP,kBAAkB,GAQnB,EAAE,EAAE;IACH,OAAO;;;;;;;;;;;;;8BAaqB,OAAO,IAAI,OAAO;;;;;;0BAMtB,gBAAgB;;0BAEhB,OAAO;;;;0BAKf,kBAAkB,IAAI,6BACxB;;0BAEU,OAAO;;;;;WAKtB,CAAC;AACZ,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rock",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "./dist/src/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
"publish:verdaccio": "npm publish --registry http://localhost:4873 --userconfig ../../.npmrc"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"adm-zip": "^0.5.16",
|
|
27
26
|
"@react-native-community/cli-config": "^20.0.0",
|
|
28
|
-
"@rock-js/config": "^0.
|
|
29
|
-
"@rock-js/tools": "^0.
|
|
27
|
+
"@rock-js/config": "^0.11.1",
|
|
28
|
+
"@rock-js/tools": "^0.11.1",
|
|
29
|
+
"adm-zip": "^0.5.16",
|
|
30
30
|
"commander": "^12.1.0",
|
|
31
31
|
"tar": "^7.4.3",
|
|
32
32
|
"tslib": "^2.3.0"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"repository": {
|
|
42
42
|
"type": "git",
|
|
43
|
-
"url": "https://github.com/callstack/rock.git",
|
|
43
|
+
"url": "git+https://github.com/callstack/rock.git",
|
|
44
44
|
"directory": "packages/cli"
|
|
45
45
|
},
|
|
46
46
|
"homepage": "https://rockjs.dev",
|