Skip to content

Commit 6ea4f28

Browse files
committed
fix(android): update targetSdkVersion to 35 for Android build
- Change targetSdkVersion from 26 to 35 in variables.gradle - Fix header access for origin in trpc context to correctly use headers object syntax
1 parent c39b428 commit 6ea4f28

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mobile/android/variables.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ext {
22
minSdkVersion = 26
33
compileSdkVersion = 35
4-
targetSdkVersion = 26
4+
targetSdkVersion = 35
55
androidxActivityVersion = '1.9.2'
66
androidxAppCompatVersion = '1.7.0'
77
androidxCoordinatorLayoutVersion = '1.2.0'

web/src/server/trpc/context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const createContext = async ({
1111
req,
1212
res,
1313
}: trpcNext.CreateNextContextOptions) => {
14-
const origin = res.req?.headers?.get('origin');
14+
const origin = res.req?.headers?.['origin'];
1515
if (origin) {
1616
if (res.req.method === 'OPTIONS') {
1717
res.setHeader('Access-Control-Allow-Origin', origin);

0 commit comments

Comments
 (0)