Skip to content

Commit

Permalink
[menu-bar] Bump version to 1.2.1 (#216)
Browse files Browse the repository at this point in the history
* [menu-bar] Bump version to 1.2.1

* Show debug menu in release mode

* update changelog
  • Loading branch information
gabrieldonadel authored Nov 5, 2024
1 parent acd176c commit 10af6f4
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 44 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,17 @@

### 🐛 Bug fixes

### 🛠 Breaking changes

## 1.2.1— 2024-11-05

### 🐛 Bug fixes

- Fixed CLI on x64 machines. ([#215](https://github.com/expo/orbit/pull/215) by [@gabrieldonadel](https://github.com/gabrieldonadel))

### 🛠 Breaking changes
### 💡 Others

- Show Debug Window in release mode. ([#216](https://github.com/expo/orbit/pull/216) by [@gabrieldonadel](https://github.com/gabrieldonadel))

## 1.2.0 — 2024-11-05

Expand Down
4 changes: 2 additions & 2 deletions apps/menu-bar/macos/ExpoMenuBar-macOS/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.2.0</string>
<string>1.2.1</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
Expand All @@ -70,7 +70,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>28</string>
<string>29</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.developer-tools</string>
<key>LSMinimumSystemVersion</key>
Expand Down
2 changes: 1 addition & 1 deletion apps/menu-bar/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "orbit",
"version": "1.2.0",
"version": "1.2.1",
"private": true,
"scripts": {
"archive": "yarn update-cli && xcodebuild archive -workspace macos/ExpoMenuBar.xcworkspace -scheme ExpoMenuBar-macOS -destination 'generic/platform=macOS,name=Any Mac' -archivePath build/ExpoOrbit.xcarchive",
Expand Down
2 changes: 1 addition & 1 deletion apps/menu-bar/src/components/DebugLogs/ObjectInspector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const ObjectInspector = ({ obj, name }: { obj: any; name?: string }) => {
{isObject && isOpen ? (
<View style={{ marginLeft: 10 }}>
{Object.keys(obj).map((key) => (
<ObjectInspector obj={obj[key]} name={isArray ? `[${key}]` : key} />
<ObjectInspector key={key} obj={obj[key]} name={isArray ? `[${key}]` : key} />
))}
</View>
) : null}
Expand Down
47 changes: 26 additions & 21 deletions apps/menu-bar/src/components/NativeColorPalette.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,34 @@ import { FlatList, TouchableOpacity, Text, View, StyleSheet } from 'react-native

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

const SMALL_SQUARE_SIZE = 25;
const NUMBER_OF_COLUMNS = 9;

const NativeColorPalette = () => {
const [selectedColor, setSelectedColor] = useState<string>();
const [, setClipboardString] = useClipboard();
return (
<View style={styles.container}>
<View style={{ alignItems: 'flex-start' }}>
<FlatList
data={colorsArray}
renderItem={({ item }) => {
return (
<TouchableOpacity
style={[
styles.smallSquare,
{
backgroundColor: PlatformColor(item),
},
]}
onPress={() => setSelectedColor((prev) => (prev !== item ? item : undefined))}
/>
);
}}
keyExtractor={(item) => item}
numColumns={NUMBER_OF_COLUMNS}
/>
</View>
{selectedColor ? (
<View style={styles.selectedContainer}>
<View
Expand All @@ -26,24 +49,6 @@ const NativeColorPalette = () => {
</TouchableOpacity>
</View>
) : null}
<FlatList
data={colorsArray}
renderItem={({ item }) => {
return (
<TouchableOpacity
style={[
styles.smallSquare,
{
backgroundColor: PlatformColor(item),
},
]}
onPress={() => setSelectedColor((prev) => (prev !== item ? item : undefined))}
/>
);
}}
keyExtractor={(item) => item}
numColumns={9}
/>
</View>
);
};
Expand All @@ -52,12 +57,13 @@ export default NativeColorPalette;

const styles = StyleSheet.create({
container: {
flexDirection: 'row',
borderWidth: 2,
borderColor: PlatformColor('tertiaryLabelColor'),
},
smallSquare: {
height: 25,
width: 25,
height: SMALL_SQUARE_SIZE,
width: SMALL_SQUARE_SIZE,
},
bigSquare: {
height: 40,
Expand All @@ -71,7 +77,6 @@ const styles = StyleSheet.create({
},
selectedColorText: {
margin: 10,
flex: 1,
},
});

Expand Down
36 changes: 18 additions & 18 deletions apps/menu-bar/src/windows/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,16 +210,6 @@ const Settings = () => {
</View>
</Row>
) : null}
{__DEV__ ? (
<TouchableOpacity
onPress={() => WindowsNavigator.open('DebugMenu')}
style={[
styles.debugButton,
getStylesForColor('primary', theme)?.touchableStyle,
]}>
<SystemIconView systemIconName="ladybug" />
</TouchableOpacity>
) : null}
<Button title="Log Out" onPress={handleLogout} style={styles.button} />
</Row>
) : (
Expand Down Expand Up @@ -343,14 +333,21 @@ const Settings = () => {
</View>
</View>
</View>
<Text color="secondary" size="tiny" align="center">
{`Version: ${MenuBarModule.appVersion} ${
MenuBarModule.buildVersion ? `(${MenuBarModule.buildVersion})` : ''
}`}
</Text>
<Text color="secondary" size="tiny" align="center">
Copyright 650 Industries Inc, 2023
</Text>
<View>
<Text color="secondary" size="tiny" align="center">
{`Version: ${MenuBarModule.appVersion} ${
MenuBarModule.buildVersion ? `(${MenuBarModule.buildVersion})` : ''
}`}
</Text>
<Text color="secondary" size="tiny" align="center">
Copyright 650 Industries Inc, 2023
</Text>
<TouchableOpacity
onPress={() => WindowsNavigator.open('DebugMenu')}
style={[styles.debugButton, getStylesForColor('primary', theme)?.touchableStyle]}>
<SystemIconView systemIconName="ladybug" />
</TouchableOpacity>
</View>
</View>
);
};
Expand All @@ -375,6 +372,9 @@ const styles = StyleSheet.create({
marginTop: -3,
},
debugButton: {
position: 'absolute',
bottom: 0,
right: 0,
height: 32,
borderRadius: 6,
paddingHorizontal: 8,
Expand Down

0 comments on commit 10af6f4

Please sign in to comment.