From 5cbd2e6df5ea76ec210747f14f228b5c19acfcf7 Mon Sep 17 00:00:00 2001 From: Eliot Gevers Date: Tue, 29 Sep 2026 15:20:49 +0200 Subject: [PATCH] test(expo): explore aligned Kotlin dependencies on SDK 58 --- .changeset/fair-expo-kotlin-fixture.md | 2 + .../expo-kotlin-alignment/.gitignore | 6 + .../templates/expo-kotlin-alignment/App.js | 75 ++++++++++ .../templates/expo-kotlin-alignment/README.md | 128 ++++++++++++++++++ .../templates/expo-kotlin-alignment/app.json | 24 ++++ .../templates/expo-kotlin-alignment/index.js | 4 + .../expo-kotlin-alignment/package.json | 25 ++++ .../patches/clerk-expo.patch | 94 +++++++++++++ .../expo-kotlin-alignment/pnpm-workspace.yaml | 5 + 9 files changed, 363 insertions(+) create mode 100644 .changeset/fair-expo-kotlin-fixture.md create mode 100644 integration/templates/expo-kotlin-alignment/.gitignore create mode 100644 integration/templates/expo-kotlin-alignment/App.js create mode 100644 integration/templates/expo-kotlin-alignment/README.md create mode 100644 integration/templates/expo-kotlin-alignment/app.json create mode 100644 integration/templates/expo-kotlin-alignment/index.js create mode 100644 integration/templates/expo-kotlin-alignment/package.json create mode 100644 integration/templates/expo-kotlin-alignment/patches/clerk-expo.patch create mode 100644 integration/templates/expo-kotlin-alignment/pnpm-workspace.yaml diff --git a/.changeset/fair-expo-kotlin-fixture.md b/.changeset/fair-expo-kotlin-fixture.md new file mode 100644 index 00000000000..a845151cc84 --- /dev/null +++ b/.changeset/fair-expo-kotlin-fixture.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/integration/templates/expo-kotlin-alignment/.gitignore b/integration/templates/expo-kotlin-alignment/.gitignore new file mode 100644 index 00000000000..c31beb8f218 --- /dev/null +++ b/integration/templates/expo-kotlin-alignment/.gitignore @@ -0,0 +1,6 @@ +/.expo/ +/.env* +/android/ +/ios/ +/node_modules/ +/pnpm-lock.yaml diff --git a/integration/templates/expo-kotlin-alignment/App.js b/integration/templates/expo-kotlin-alignment/App.js new file mode 100644 index 00000000000..a8ff51ae5ac --- /dev/null +++ b/integration/templates/expo-kotlin-alignment/App.js @@ -0,0 +1,75 @@ +import React, { useState } from 'react'; +import { Button, Text, View } from 'react-native'; +import { ClerkProvider, useAuth, useClerk } from '@clerk/expo'; +import { AuthView, UserProfileView } from '@clerk/expo/native'; +import { tokenCache } from '@clerk/expo/token-cache'; + +function Probe() { + const { isLoaded, isSignedIn, getToken } = useAuth(); + const { signOut } = useClerk(); + const [message, setMessage] = useState(''); + const [profile, setProfile] = useState(false); + const [mounted, setMounted] = useState(true); + + async function checkToken() { + try { + setMessage((await getToken()) ? 'Session token obtained' : 'No session token'); + } catch (error) { + setMessage(error.message); + } + } + + return ( + + Clerk Kotlin alignment probe + + Loaded: {String(isLoaded)}; signed in: {String(isSignedIn)} + + {message} +