@bacons/apple-targets 3.0.3 → 3.0.4
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/build/target.js +0 -1
- package/build/withXcodeChanges.js +9 -3
- package/package.json +1 -1
package/build/target.js
CHANGED
|
@@ -90,7 +90,6 @@ function getTargetInfoPlistForType(type) {
|
|
|
90
90
|
return plist_1.default.build({
|
|
91
91
|
CFBundleName: "$(PRODUCT_NAME)",
|
|
92
92
|
CFBundleIdentifier: "$(PRODUCT_BUNDLE_IDENTIFIER)",
|
|
93
|
-
CFBundleVersion: "$(CURRENT_PROJECT_VERSION)",
|
|
94
93
|
CFBundleExecutable: "$(EXECUTABLE_NAME)",
|
|
95
94
|
CFBundlePackageType: "$(PRODUCT_BUNDLE_PACKAGE_TYPE)",
|
|
96
95
|
CFBundleShortVersionString: "$(MARKETING_VERSION)",
|
|
@@ -475,8 +475,15 @@ function createAppClipConfigurationList(project, { name, cwd, bundleId, deployme
|
|
|
475
475
|
INFOPLIST_KEY_UIApplicationSceneManifest_Generation: "YES",
|
|
476
476
|
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents: "YES",
|
|
477
477
|
INFOPLIST_KEY_UILaunchScreen_Generation: "YES",
|
|
478
|
+
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad: "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight",
|
|
478
479
|
...getOrientationBuildSettings(orientation),
|
|
479
480
|
};
|
|
481
|
+
// Attempt to automatically set the build number to match the main app.
|
|
482
|
+
// This only works with EAS Build, other processes can simply set the number manually.
|
|
483
|
+
if (process.env.EAS_BUILD_IOS_BUILD_NUMBER) {
|
|
484
|
+
// NOTE: INFOPLIST_KEY_CFBundleVersion doesn't work here.
|
|
485
|
+
infoPlist.CURRENT_PROJECT_VERSION = process.env.EAS_BUILD_IOS_BUILD_NUMBER;
|
|
486
|
+
}
|
|
480
487
|
// @ts-expect-error
|
|
481
488
|
const common = {
|
|
482
489
|
...dynamic,
|
|
@@ -517,22 +524,21 @@ function createAppClipConfigurationList(project, { name, cwd, bundleId, deployme
|
|
|
517
524
|
return configurationList;
|
|
518
525
|
}
|
|
519
526
|
function getOrientationBuildSettings(orientation) {
|
|
527
|
+
// NOTE: The requiresFullScreen support is deprecated in iOS 26+
|
|
528
|
+
// https://developer.apple.com/documentation/BundleResources/Information-Property-List/UIRequiresFullScreen
|
|
520
529
|
// Try to align the orientation with the main app.
|
|
521
530
|
if (orientation === "landscape") {
|
|
522
531
|
return {
|
|
523
532
|
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone: "UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight",
|
|
524
|
-
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad: "UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight",
|
|
525
533
|
};
|
|
526
534
|
}
|
|
527
535
|
else if (orientation === "portrait") {
|
|
528
536
|
return {
|
|
529
537
|
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone: "UIInterfaceOrientationPortrait",
|
|
530
|
-
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad: "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown",
|
|
531
538
|
};
|
|
532
539
|
}
|
|
533
540
|
return {
|
|
534
541
|
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone: "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight",
|
|
535
|
-
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad: "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight",
|
|
536
542
|
};
|
|
537
543
|
}
|
|
538
544
|
function getDeviceFamilyBuildSettings(deviceFamilies) {
|