voltra 1.2.0-rc.4 → 1.2.0-rc.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "voltra",
3
- "version": "1.2.0-rc.4",
3
+ "version": "1.2.0-rc.6",
4
4
  "description": "Build Live Activities with JSX in React Native",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -68,7 +68,7 @@ const generateWidgetExtensionFiles = (config, props) => {
68
68
  fs.mkdirSync(targetPath, { recursive: true });
69
69
  }
70
70
  // Generate Info.plist
71
- (0, infoPlist_1.generateInfoPlist)(targetPath, version, buildNumber);
71
+ (0, infoPlist_1.generateInfoPlist)(targetPath, targetName, version, buildNumber);
72
72
  // Generate Assets.xcassets and copy user images
73
73
  (0, assets_1.generateAssets)({ targetPath });
74
74
  // Generate Swift files (widget bundle, initial states)
@@ -2,7 +2,8 @@
2
2
  * Generates the Info.plist file for the widget extension.
3
3
  *
4
4
  * @param targetPath - Path to the widget extension target directory
5
+ * @param targetName - The widget extension target name (used for CFBundleDisplayName)
5
6
  * @param version - The app version (CFBundleShortVersionString)
6
7
  * @param buildNumber - The build number (CFBundleVersion)
7
8
  */
8
- export declare function generateInfoPlist(targetPath: string, version: string, buildNumber: string): void;
9
+ export declare function generateInfoPlist(targetPath: string, targetName: string, version: string, buildNumber: string): void;
@@ -43,11 +43,25 @@ const logger_1 = require("../../utils/logger");
43
43
  * This includes version information and the required WidgetKit extension point.
44
44
  * Version keys are written directly to the plist following the Expo pattern.
45
45
  */
46
- function generateInfoPlistContent(version, buildNumber) {
46
+ function generateInfoPlistContent(targetName, version, buildNumber) {
47
47
  return `<?xml version="1.0" encoding="UTF-8"?>
48
48
  <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
49
49
  <plist version="1.0">
50
50
  <dict>
51
+ <key>CFBundleDevelopmentRegion</key>
52
+ <string>$(DEVELOPMENT_LANGUAGE)</string>
53
+ <key>CFBundleDisplayName</key>
54
+ <string>${targetName}</string>
55
+ <key>CFBundleExecutable</key>
56
+ <string>$(EXECUTABLE_NAME)</string>
57
+ <key>CFBundleIdentifier</key>
58
+ <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
59
+ <key>CFBundleInfoDictionaryVersion</key>
60
+ <string>6.0</string>
61
+ <key>CFBundleName</key>
62
+ <string>$(PRODUCT_NAME)</string>
63
+ <key>CFBundlePackageType</key>
64
+ <string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
51
65
  <key>CFBundleShortVersionString</key>
52
66
  <string>${version}</string>
53
67
  <key>CFBundleVersion</key>
@@ -65,11 +79,12 @@ function generateInfoPlistContent(version, buildNumber) {
65
79
  * Generates the Info.plist file for the widget extension.
66
80
  *
67
81
  * @param targetPath - Path to the widget extension target directory
82
+ * @param targetName - The widget extension target name (used for CFBundleDisplayName)
68
83
  * @param version - The app version (CFBundleShortVersionString)
69
84
  * @param buildNumber - The build number (CFBundleVersion)
70
85
  */
71
- function generateInfoPlist(targetPath, version, buildNumber) {
86
+ function generateInfoPlist(targetPath, targetName, version, buildNumber) {
72
87
  const infoPlistPath = path.join(targetPath, 'Info.plist');
73
- fs.writeFileSync(infoPlistPath, generateInfoPlistContent(version, buildNumber));
88
+ fs.writeFileSync(infoPlistPath, generateInfoPlistContent(targetName, version, buildNumber));
74
89
  logger_1.logger.info('Generated Info.plist');
75
90
  }
@@ -15,9 +15,6 @@ function createCommonBuildSettings(options) {
15
15
  MARKETING_VERSION: `"1.0"`,
16
16
  IPHONEOS_DEPLOYMENT_TARGET: `"${deploymentTarget}"`,
17
17
  PRODUCT_BUNDLE_IDENTIFIER: `"${bundleIdentifier}"`,
18
- GENERATE_INFOPLIST_FILE: `"YES"`,
19
- INFOPLIST_KEY_CFBundleDisplayName: targetName,
20
- INFOPLIST_KEY_NSHumanReadableCopyright: `""`,
21
18
  SWIFT_OPTIMIZATION_LEVEL: `"-Onone"`,
22
19
  CODE_SIGN_ENTITLEMENTS: `"${targetName}/${targetName}.entitlements"`,
23
20
  APPLICATION_EXTENSION_API_ONLY: '"YES"',