Skip to content

Commit 69dcaa6

Browse files
committed
chore: add web hosting
chore: update alert in example chore: fix example decoding of largeblob
1 parent d9c2558 commit 69dcaa6

File tree

16 files changed

+360
-256
lines changed

16 files changed

+360
-256
lines changed

example/.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,8 @@ yarn-error.*
3232
.env*.local
3333

3434
# typescript
35-
*.tsbuildinfo
35+
*.tsbuildinfo
36+
37+
# firebase
38+
/.firebaserc
39+
**/.firebase

example/app.config.ts

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
1-
import type { ExpoConfig } from '@expo/config-types'
1+
import type { ExpoConfig } from "@expo/config-types";
22

33
// const hostname = process.env.EXPO_PUBLIC_HOSTNAME;
44
// if (!hostname) throw new Error("HOSTNAME environment variable must be set");
5-
const hostname = 'peterferguson.co.uk'
6-
const scheme = 'passkeyexample'
7-
const bundleIdentifier = `${hostname.split('.').reverse().join('.')}.${scheme}`
5+
const hostname = "web.app";
6+
const scheme = "react-native-passkeys";
7+
const bundleIdentifier = `${hostname.split(".").reverse().join(".")}.${scheme}`;
88

99
const config = {
10-
name: 'react-native-passkeys-example',
11-
slug: 'react-native-passkeys-example',
12-
owner: 'peterferguson',
13-
version: '1.0.0',
14-
orientation: 'portrait',
10+
name: `${scheme}-example`,
11+
slug: `${scheme}-example`,
12+
owner: "peterferguson",
13+
version: "1.0.0",
14+
orientation: "portrait",
1515
scheme,
16-
icon: './assets/icon.png',
17-
userInterfaceStyle: 'light',
16+
icon: "./assets/icon.png",
17+
userInterfaceStyle: "light",
1818
splash: {
19-
image: './assets/splash.png',
20-
resizeMode: 'contain',
21-
backgroundColor: '#ffffff',
19+
image: "./assets/splash.png",
20+
resizeMode: "contain",
21+
backgroundColor: "#ffffff",
2222
},
23-
assetBundlePatterns: ['**/*'],
23+
assetBundlePatterns: ["**/*"],
2424
ios: {
2525
supportsTablet: true,
2626
bundleIdentifier,
2727
associatedDomains: [`applinks:${scheme}.${hostname}`, `webcredentials:${scheme}.${hostname}`],
28-
infoPlist: { UIBackgroundModes: ['fetch', 'remote-notification'] },
28+
infoPlist: { UIBackgroundModes: ["fetch", "remote-notification"] },
2929
},
3030
android: {
3131
adaptiveIcon: {
32-
foregroundImage: './assets/adaptive-icon.png',
33-
backgroundColor: '#ffffff',
32+
foregroundImage: "./assets/adaptive-icon.png",
33+
backgroundColor: "#ffffff",
3434
},
3535
package: bundleIdentifier,
3636
},
3737
web: {
38-
bundler: 'metro',
39-
favicon: './assets/favicon.png',
38+
bundler: "metro",
39+
favicon: "./assets/favicon.png",
4040
},
41-
plugins: ['expo-router', ['expo-build-properties', { ios: { deploymentTarget: '15.0' } }]],
42-
} satisfies ExpoConfig
41+
plugins: ["expo-router", ["expo-build-properties", { ios: { deploymentTarget: "15.0" } }]],
42+
} satisfies ExpoConfig;
4343

44-
export default config
44+
export default config;

example/app/index.tsx

Lines changed: 0 additions & 183 deletions
This file was deleted.

example/firebase.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"hosting": {
3+
"public": "dist",
4+
"headers": [
5+
{
6+
"source": "/.well-known/apple-app-site-association",
7+
"headers": [
8+
{
9+
"key": "Content-Type",
10+
"value": "application/json"
11+
}
12+
]
13+
}
14+
],
15+
"appAssociation": "NONE",
16+
"ignore": [
17+
"firebase.json",
18+
"**/.*",
19+
"**/node_modules/**"
20+
]
21+
}
22+
}

example/ios/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ PODS:
457457
- React-jsi (= 0.72.4)
458458
- React-logger (= 0.72.4)
459459
- React-perflogger (= 0.72.4)
460-
- ReactNativePasskeys (0.1.0):
460+
- ReactNativePasskeys (0.1.5):
461461
- ExpoModulesCore
462462
- RNGestureHandler (2.12.0):
463463
- React-Core
@@ -691,7 +691,7 @@ SPEC CHECKSUMS:
691691
React-runtimescheduler: 4941cc1b3cf08b792fbf666342c9fc95f1969035
692692
React-utils: b79f2411931f9d3ea5781404dcbb2fa8a837e13a
693693
ReactCommon: 4b2bdcb50a3543e1c2b2849ad44533686610826d
694-
ReactNativePasskeys: 0dba5b20a06d80da9f1fa00924d143b54f0660f8
694+
ReactNativePasskeys: 5d543113b1014799dbac1a17891cdc997c5f5d01
695695
RNGestureHandler: dec4645026e7401a0899f2846d864403478ff6a5
696696
RNScreens: 68fd1060f57dd1023880bf4c05d74784b5392789
697697
SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17

0 commit comments

Comments
 (0)