Skip to content

Commit 10af6f4

Browse files
[menu-bar] Bump version to 1.2.1 (#216)
* [menu-bar] Bump version to 1.2.1 * Show debug menu in release mode * update changelog
1 parent acd176c commit 10af6f4

File tree

6 files changed

+57
-44
lines changed

6 files changed

+57
-44
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,17 @@
88

99
### 🐛 Bug fixes
1010

11+
### 🛠 Breaking changes
12+
13+
## 1.2.1— 2024-11-05
14+
15+
### 🐛 Bug fixes
16+
1117
- Fixed CLI on x64 machines. ([#215](https://github.com/expo/orbit/pull/215) by [@gabrieldonadel](https://github.com/gabrieldonadel))
1218

13-
### 🛠 Breaking changes
19+
### 💡 Others
20+
21+
- Show Debug Window in release mode. ([#216](https://github.com/expo/orbit/pull/216) by [@gabrieldonadel](https://github.com/gabrieldonadel))
1422

1523
## 1.2.0 — 2024-11-05
1624

apps/menu-bar/macos/ExpoMenuBar-macOS/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
<key>CFBundlePackageType</key>
5959
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
6060
<key>CFBundleShortVersionString</key>
61-
<string>1.2.0</string>
61+
<string>1.2.1</string>
6262
<key>CFBundleURLTypes</key>
6363
<array>
6464
<dict>
@@ -70,7 +70,7 @@
7070
</dict>
7171
</array>
7272
<key>CFBundleVersion</key>
73-
<string>28</string>
73+
<string>29</string>
7474
<key>LSApplicationCategoryType</key>
7575
<string>public.app-category.developer-tools</string>
7676
<key>LSMinimumSystemVersion</key>

apps/menu-bar/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "orbit",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"private": true,
55
"scripts": {
66
"archive": "yarn update-cli && xcodebuild archive -workspace macos/ExpoMenuBar.xcworkspace -scheme ExpoMenuBar-macOS -destination 'generic/platform=macOS,name=Any Mac' -archivePath build/ExpoOrbit.xcarchive",

apps/menu-bar/src/components/DebugLogs/ObjectInspector.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const ObjectInspector = ({ obj, name }: { obj: any; name?: string }) => {
3636
{isObject && isOpen ? (
3737
<View style={{ marginLeft: 10 }}>
3838
{Object.keys(obj).map((key) => (
39-
<ObjectInspector obj={obj[key]} name={isArray ? `[${key}]` : key} />
39+
<ObjectInspector key={key} obj={obj[key]} name={isArray ? `[${key}]` : key} />
4040
))}
4141
</View>
4242
) : null}

apps/menu-bar/src/components/NativeColorPalette.tsx

Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,34 @@ import { FlatList, TouchableOpacity, Text, View, StyleSheet } from 'react-native
44

55
import { PlatformColor } from '../modules/PlatformColor';
66

7+
const SMALL_SQUARE_SIZE = 25;
8+
const NUMBER_OF_COLUMNS = 9;
9+
710
const NativeColorPalette = () => {
811
const [selectedColor, setSelectedColor] = useState<string>();
912
const [, setClipboardString] = useClipboard();
1013
return (
1114
<View style={styles.container}>
15+
<View style={{ alignItems: 'flex-start' }}>
16+
<FlatList
17+
data={colorsArray}
18+
renderItem={({ item }) => {
19+
return (
20+
<TouchableOpacity
21+
style={[
22+
styles.smallSquare,
23+
{
24+
backgroundColor: PlatformColor(item),
25+
},
26+
]}
27+
onPress={() => setSelectedColor((prev) => (prev !== item ? item : undefined))}
28+
/>
29+
);
30+
}}
31+
keyExtractor={(item) => item}
32+
numColumns={NUMBER_OF_COLUMNS}
33+
/>
34+
</View>
1235
{selectedColor ? (
1336
<View style={styles.selectedContainer}>
1437
<View
@@ -26,24 +49,6 @@ const NativeColorPalette = () => {
2649
</TouchableOpacity>
2750
</View>
2851
) : null}
29-
<FlatList
30-
data={colorsArray}
31-
renderItem={({ item }) => {
32-
return (
33-
<TouchableOpacity
34-
style={[
35-
styles.smallSquare,
36-
{
37-
backgroundColor: PlatformColor(item),
38-
},
39-
]}
40-
onPress={() => setSelectedColor((prev) => (prev !== item ? item : undefined))}
41-
/>
42-
);
43-
}}
44-
keyExtractor={(item) => item}
45-
numColumns={9}
46-
/>
4752
</View>
4853
);
4954
};
@@ -52,12 +57,13 @@ export default NativeColorPalette;
5257

5358
const styles = StyleSheet.create({
5459
container: {
60+
flexDirection: 'row',
5561
borderWidth: 2,
5662
borderColor: PlatformColor('tertiaryLabelColor'),
5763
},
5864
smallSquare: {
59-
height: 25,
60-
width: 25,
65+
height: SMALL_SQUARE_SIZE,
66+
width: SMALL_SQUARE_SIZE,
6167
},
6268
bigSquare: {
6369
height: 40,
@@ -71,7 +77,6 @@ const styles = StyleSheet.create({
7177
},
7278
selectedColorText: {
7379
margin: 10,
74-
flex: 1,
7580
},
7681
});
7782

apps/menu-bar/src/windows/Settings.tsx

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -210,16 +210,6 @@ const Settings = () => {
210210
</View>
211211
</Row>
212212
) : null}
213-
{__DEV__ ? (
214-
<TouchableOpacity
215-
onPress={() => WindowsNavigator.open('DebugMenu')}
216-
style={[
217-
styles.debugButton,
218-
getStylesForColor('primary', theme)?.touchableStyle,
219-
]}>
220-
<SystemIconView systemIconName="ladybug" />
221-
</TouchableOpacity>
222-
) : null}
223213
<Button title="Log Out" onPress={handleLogout} style={styles.button} />
224214
</Row>
225215
) : (
@@ -343,14 +333,21 @@ const Settings = () => {
343333
</View>
344334
</View>
345335
</View>
346-
<Text color="secondary" size="tiny" align="center">
347-
{`Version: ${MenuBarModule.appVersion} ${
348-
MenuBarModule.buildVersion ? `(${MenuBarModule.buildVersion})` : ''
349-
}`}
350-
</Text>
351-
<Text color="secondary" size="tiny" align="center">
352-
Copyright 650 Industries Inc, 2023
353-
</Text>
336+
<View>
337+
<Text color="secondary" size="tiny" align="center">
338+
{`Version: ${MenuBarModule.appVersion} ${
339+
MenuBarModule.buildVersion ? `(${MenuBarModule.buildVersion})` : ''
340+
}`}
341+
</Text>
342+
<Text color="secondary" size="tiny" align="center">
343+
Copyright 650 Industries Inc, 2023
344+
</Text>
345+
<TouchableOpacity
346+
onPress={() => WindowsNavigator.open('DebugMenu')}
347+
style={[styles.debugButton, getStylesForColor('primary', theme)?.touchableStyle]}>
348+
<SystemIconView systemIconName="ladybug" />
349+
</TouchableOpacity>
350+
</View>
354351
</View>
355352
);
356353
};
@@ -375,6 +372,9 @@ const styles = StyleSheet.create({
375372
marginTop: -3,
376373
},
377374
debugButton: {
375+
position: 'absolute',
376+
bottom: 0,
377+
right: 0,
378378
height: 32,
379379
borderRadius: 6,
380380
paddingHorizontal: 8,

0 commit comments

Comments
 (0)