Skip to content

Commit 50e0dd5

Browse files
committed
add logging componenets for camera and audio
1 parent cbbb7e0 commit 50e0dd5

25 files changed

+1011
-383
lines changed

apps/mobile/app.config.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,19 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
7070
fonts: ["./assets/fonts/Monocraft.ttf"],
7171
},
7272
],
73+
[
74+
"expo-camera",
75+
{
76+
cameraPermission: "Allow 1up Health to access your camera",
77+
microphonePermission: "Allow 1up Health to access your microphone",
78+
recordAudioAndroid: true,
79+
},
80+
],
81+
[
82+
"expo-av",
83+
{
84+
microphonePermission: "Allow 1up Health to access your microphone.",
85+
},
86+
],
7387
],
7488
});

apps/mobile/ios/1up.xcodeproj/project.pbxproj

Lines changed: 78 additions & 78 deletions
Large diffs are not rendered by default.

apps/mobile/ios/1up/Info.plist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,12 @@
5151
<key>NSAllowsLocalNetworking</key>
5252
<true/>
5353
</dict>
54+
<key>NSCameraUsageDescription</key>
55+
<string>Allow 1up Health to access your camera</string>
5456
<key>NSFaceIDUsageDescription</key>
5557
<string>Allow $(PRODUCT_NAME) to access your Face ID biometric data.</string>
58+
<key>NSMicrophoneUsageDescription</key>
59+
<string>Allow 1up Health to access your microphone</string>
5660
<key>NSUserActivityTypes</key>
5761
<array>
5862
<string>$(PRODUCT_BUNDLE_IDENTIFIER).expo.index_route</string>

apps/mobile/ios/Podfile.lock

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
PODS:
22
- boost (1.84.0)
33
- DoubleConversion (1.1.6)
4+
- EXAV (15.0.3-canary-20250304-f08e984):
5+
- ExpoModulesCore
6+
- ReactCommon/turbomodule/core
47
- EXConstants (18.0.0-canary-20250304-f08e984):
58
- ExpoModulesCore
69
- EXJSONUtils (0.14.1-canary-20250304-f08e984)
@@ -221,6 +224,10 @@ PODS:
221224
- Yoga
222225
- ExpoAsset (12.0.0-canary-20250304-f08e984):
223226
- ExpoModulesCore
227+
- ExpoCamera (16.1.0-canary-20250304-f08e984):
228+
- ExpoModulesCore
229+
- ZXingObjC/OneD
230+
- ZXingObjC/PDF417
224231
- ExpoFileSystem (19.0.0-canary-20250304-f08e984):
225232
- ExpoModulesCore
226233
- ExpoFont (14.0.0-canary-20250304-f08e984):
@@ -1975,10 +1982,16 @@ PODS:
19751982
- React-Core
19761983
- SocketRocket (0.7.1)
19771984
- Yoga (0.0.0)
1985+
- ZXingObjC/Core (3.6.9)
1986+
- ZXingObjC/OneD (3.6.9):
1987+
- ZXingObjC/Core
1988+
- ZXingObjC/PDF417 (3.6.9):
1989+
- ZXingObjC/Core
19781990

19791991
DEPENDENCIES:
19801992
- boost (from `../../../node_modules/react-native/third-party-podspecs/boost.podspec`)
19811993
- DoubleConversion (from `../../../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`)
1994+
- EXAV (from `../../../node_modules/expo-av/ios`)
19821995
- EXConstants (from `../../../node_modules/expo-constants/ios`)
19831996
- EXJSONUtils (from `../../../node_modules/expo-json-utils/ios`)
19841997
- EXManifests (from `../../../node_modules/expo-manifests/ios`)
@@ -1988,6 +2001,7 @@ DEPENDENCIES:
19882001
- expo-dev-menu (from `../../../node_modules/expo-dev-menu`)
19892002
- expo-dev-menu-interface (from `../../../node_modules/expo-dev-menu-interface/ios`)
19902003
- ExpoAsset (from `../../../node_modules/expo-asset/ios`)
2004+
- ExpoCamera (from `../../../node_modules/expo-camera/ios`)
19912005
- ExpoFileSystem (from `../../../node_modules/expo-file-system/ios`)
19922006
- ExpoFont (from `../../../node_modules/expo-font/ios`)
19932007
- ExpoHead (from `../../../node_modules/expo-router/ios`)
@@ -2074,12 +2088,15 @@ DEPENDENCIES:
20742088
SPEC REPOS:
20752089
trunk:
20762090
- SocketRocket
2091+
- ZXingObjC
20772092

20782093
EXTERNAL SOURCES:
20792094
boost:
20802095
:podspec: "../../../node_modules/react-native/third-party-podspecs/boost.podspec"
20812096
DoubleConversion:
20822097
:podspec: "../../../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec"
2098+
EXAV:
2099+
:path: "../../../node_modules/expo-av/ios"
20832100
EXConstants:
20842101
:path: "../../../node_modules/expo-constants/ios"
20852102
EXJSONUtils:
@@ -2098,6 +2115,8 @@ EXTERNAL SOURCES:
20982115
:path: "../../../node_modules/expo-dev-menu-interface/ios"
20992116
ExpoAsset:
21002117
:path: "../../../node_modules/expo-asset/ios"
2118+
ExpoCamera:
2119+
:path: "../../../node_modules/expo-camera/ios"
21012120
ExpoFileSystem:
21022121
:path: "../../../node_modules/expo-file-system/ios"
21032122
ExpoFont:
@@ -2263,6 +2282,7 @@ EXTERNAL SOURCES:
22632282
SPEC CHECKSUMS:
22642283
boost: 7e761d76ca2ce687f7cc98e698152abd03a18f90
22652284
DoubleConversion: cb417026b2400c8f53ae97020b2be961b59470cb
2285+
EXAV: 624d33de7b956433117693e737bac77a1ba5aa38
22662286
EXConstants: 7b75661a962523d0787be64686418225e34a3e36
22672287
EXJSONUtils: e666e14aa24dd2851f734aaf53dc3e76786feb5f
22682288
EXManifests: 42b208668376452c9b2655a0122490245db9fd73
@@ -2272,6 +2292,7 @@ SPEC CHECKSUMS:
22722292
expo-dev-menu: b7ea1c1d0fc9652a77e31aac436dea4f62bdd9c0
22732293
expo-dev-menu-interface: a750bce59cf65904d5a9b88e8b26cdd7cb9804ca
22742294
ExpoAsset: 4e648c6f1e5926e45132daefc1cb59db04951652
2295+
ExpoCamera: 4b37c012d9916b93b911e9e92e0ffad849410b77
22752296
ExpoFileSystem: 86f07793baf5d572588019f4ab4bcf9b5d672406
22762297
ExpoFont: 60f2a66fdb18048fbb62ee71bc4b999c0c1f21d6
22772298
ExpoHead: 34e96e3df811f948e6b9d910c52fd155104e3f65
@@ -2353,6 +2374,7 @@ SPEC CHECKSUMS:
23532374
RNSVG: 4c63b12b7b5761063bca4f20dd228f6a8370f614
23542375
SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748
23552376
Yoga: afd04ff05ebe0121a00c468a8a3c8080221cb14c
2377+
ZXingObjC: 8898711ab495761b2dbbdec76d90164a6d7e14c5
23562378

23572379
PODFILE CHECKSUM: 3d57511620d118434a37a23b2ab6b4aa1cc1f3b8
23582380

apps/mobile/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
"class-variance-authority": "^0.7.1",
3838
"clsx": "^2.1.1",
3939
"expo": "53.0.0-canary-20250304-f08e984",
40+
"expo-av": "15.0.3-canary-20250304-f08e984",
41+
"expo-camera": "16.1.0-canary-20250304-f08e984",
4042
"expo-constants": "18.0.0-canary-20250304-f08e984",
4143
"expo-dev-client": "5.0.13-canary-20250304-f08e984",
4244
"expo-font": "14.0.0-canary-20250304-f08e984",

apps/mobile/src/app/(home)/_layout.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -78,18 +78,6 @@ export default function DashboardLayout() {
7878
),
7979
}}
8080
/>
81-
<Stack.Screen
82-
name="log2"
83-
options={{
84-
title: "New Log",
85-
presentation: "modal",
86-
headerRight: () => (
87-
<Button variant="link" size="icon" onPress={() => router.back()}>
88-
<X size={24} />
89-
</Button>
90-
),
91-
}}
92-
/>
9381
</Stack>
9482
);
9583
}

apps/mobile/src/app/(home)/index.tsx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ import { useRouter } from "expo-router";
55

66
import { Button } from "~/components/ui/button";
77
import { Text } from "~/components/ui/text";
8-
import { authClient } from "~/utils/auth-client";
98

109
export default function DashboardHome() {
11-
const { data: session } = authClient.useSession();
1210
const router = useRouter();
1311
// const queryClient = useQueryClient();
1412

@@ -40,14 +38,6 @@ export default function DashboardHome() {
4038
<Text>Log</Text>
4139
</Button>
4240
</View>
43-
<View>
44-
<Button
45-
onPress={() => router.push("/(home)/log2")}
46-
className="flex flex-row gap-2"
47-
>
48-
<Text>Log2</Text>
49-
</Button>
50-
</View>
5141
</View>
5242
</SafeAreaView>
5343
);

0 commit comments

Comments
 (0)