Skip to content

Commit a8cadff

Browse files
committed
chore: disable more jobs, fix isVisionOS
1 parent 2386cf6 commit a8cadff

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

.circleci/configurations/jobs.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,9 @@ jobs:
247247
# JOBS: Build Android
248248
# -------------------------
249249
build_android:
250+
when:
251+
condition:
252+
equal: [true, false] # Disable for visionOS
250253
executor: reactnativeandroid-xlarge
251254
parameters:
252255
release_type:
@@ -763,6 +766,9 @@ jobs:
763766
- react-native-version
764767

765768
build_hermesc_linux:
769+
when:
770+
condition:
771+
equal: [true, false] # Disable for visionOS
766772
docker:
767773
- image: debian:bullseye
768774
resource_class: "large"
@@ -1071,6 +1077,9 @@ jobs:
10711077
- dSYM/<< parameters.flavor >>
10721078

10731079
build_hermesc_windows:
1080+
when:
1081+
condition:
1082+
equal: [true, false] # Disable for visionOS
10741083
executor:
10751084
name: win/default
10761085
shell: powershell.exe

packages/react-native/Libraries/Utilities/Platform.android.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ const Platform: PlatformType = {
6565
return this.constants.isDisableAnimations ?? this.isTesting;
6666
},
6767
// $FlowFixMe[unsafe-getters-setters]
68+
get isVisionOS(): boolean {
69+
// $FlowFixMe[object-this-reference]
70+
return this.constants.interfaceIdiom === 'vision';
71+
},
72+
// $FlowFixMe[unsafe-getters-setters]
6873
get isTV(): boolean {
6974
// $FlowFixMe[object-this-reference]
7075
return this.constants.uiMode === 'tv';

packages/react-native/Libraries/Utilities/Platform.flow.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ type AndroidPlatform = {
7878
Manufacturer: string,
7979
|},
8080
// $FlowFixMe[unsafe-getters-setters]
81+
get isVisionOS(): boolean,
82+
// $FlowFixMe[unsafe-getters-setters]
8183
get isTV(): boolean,
8284
// $FlowFixMe[unsafe-getters-setters]
8385
get isTesting(): boolean,

0 commit comments

Comments
 (0)