Skip to content

Commit 6520024

Browse files
committed
new icons and configs
1 parent 1349993 commit 6520024

File tree

6 files changed

+45
-22
lines changed

6 files changed

+45
-22
lines changed

app.config.js

+25-6
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,43 @@
11
const packageJson = require("./package.json");
22

3-
const IS_DEV = process.env.APP_VARIANT === "development";
3+
const appVariant = process.env.APP_VARIANT; // 'development' | 'preview' | 'production';
4+
5+
const appIcon =
6+
{
7+
development: "./assets/images/dev-icon.png",
8+
preview: "./assets/images/preview-icon.png",
9+
production: "./assets/images/icon.png",
10+
}[appVariant] || "./assets/images/icon.png";
11+
12+
const appBundleIdentifier =
13+
{
14+
development: "dev.js00001.hogliteposthogclient",
15+
preview: "preview.js00001.hogliteposthogclient",
16+
production: "com.js00001.hogliteposthogclient",
17+
}[appVariant] || "com.js00001.hogliteposthogclient";
18+
19+
const appDisplayName =
20+
{
21+
development: "HogLite (Dev)",
22+
preview: "HogLite (Preview)",
23+
production: "HogLite",
24+
}[appVariant] || "HogLite";
425

526
export default {
627
expo: {
728
name: "HogLite PostHog Client",
829
slug: "hoglite-posthog-client",
930
version: packageJson.version,
1031
orientation: "portrait",
11-
icon: IS_DEV ? "./assets/images/dev-icon.png" : "./assets/images/icon.png",
32+
icon: appIcon,
1233
scheme: "myapp",
1334
userInterfaceStyle: "automatic",
1435
newArchEnabled: false,
1536
ios: {
1637
supportsTablet: false,
17-
bundleIdentifier: IS_DEV
18-
? "dev.js00001.hogliteposthogclient"
19-
: "com.js00001.hogliteposthogclient",
38+
bundleIdentifier: appBundleIdentifier,
2039
infoPlist: {
21-
CFBundleDisplayName: IS_DEV ? "HogLite (Dev)" : "HogLite",
40+
CFBundleDisplayName: appDisplayName,
2241
},
2342
config: {
2443
usesNonExemptEncryption: false,

assets/images/preview-icon.png

45 KB
Loading

eas.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,17 @@
1414
},
1515
"preview": {
1616
"distribution": "internal",
17-
"channel": "preview"
17+
"channel": "preview",
18+
"env": {
19+
"APP_VARIANT": "preview"
20+
}
1821
},
1922
"production": {
2023
"autoIncrement": true,
21-
"channel": "production"
24+
"channel": "production",
25+
"env": {
26+
"APP_VARIANT": "production"
27+
}
2228
}
2329
},
2430
"submit": {

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "hoglite-posthog-client",
33
"main": "expo-router/entry",
4-
"version": "1.0.12",
5-
"updateVersion": "2025.2.26.1",
4+
"version": "1.0.13",
5+
"updateVersion": "2025.2.28.1",
66
"scripts": {
77
"start": "expo start",
88
"dev": "expo start --dev-client",

src/app/main/settings/appearance.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { FlatList } from "react-native";
2-
// import { setAppIcon } from "expo-dynamic-app-icon";
2+
import { setAppIcon } from "expo-dynamic-app-icon";
33

44
import Text from "@/ui/Text";
55
import Select from "@/ui/Select";
@@ -22,8 +22,7 @@ export default function Appearance() {
2222
};
2323

2424
const onAppIconChange = (value: TAppIcon) => {
25-
// TODO: Enable
26-
// setAppIcon(value);
25+
setAppIcon(value);
2726
setClientStore("appIcon", value);
2827
posthog.capture("app_icon_changed", { appIcon: value });
2928
};

src/components/ActivityList/ListItem.tsx

+8-9
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { timeAgo } from "@/lib/utils";
99
import useClientStore from "@/store/client";
1010
import usePosthog from "@/hooks/usePosthog";
1111
import { EventData, IEvent } from "@/@types";
12-
import TruncatedText from "@/ui/TruncatedText";
1312

1413
interface Props {
1514
event: IEvent;
@@ -101,30 +100,30 @@ export default function ListItem({ event }: Props) {
101100

102101
{/* Event Display */}
103102
{columns.includes("event") && (
104-
<TruncatedText className={eventRowClasses} numberOfLines={1}>
103+
<Text className={eventRowClasses} numberOfLines={1}>
105104
{eventName}
106-
</TruncatedText>
105+
</Text>
107106
)}
108107

109108
{/* Person Display */}
110109
{columns.includes("person") && (
111-
<TruncatedText className={personRowClasses} numberOfLines={1}>
110+
<Text className={personRowClasses} numberOfLines={1}>
112111
{person.distinct_id}
113-
</TruncatedText>
112+
</Text>
114113
)}
115114

116115
{/* URL/Screen Display */}
117116
{columns.includes("url") && (
118-
<TruncatedText className={urlRowClasses} numberOfLines={1}>
117+
<Text className={urlRowClasses} numberOfLines={1}>
119118
{eventUrl}
120-
</TruncatedText>
119+
</Text>
121120
)}
122121

123122
{/* Timestamp Display */}
124123
{columns.includes("timestamp") && (
125-
<TruncatedText className={timeRowClasses} numberOfLines={1}>
124+
<Text className={timeRowClasses} numberOfLines={1}>
126125
{timeAgo(eventTimestamp)}
127-
</TruncatedText>
126+
</Text>
128127
)}
129128
</View>
130129

0 commit comments

Comments
 (0)