@mediacubeco/expo-template-fsd 2.1.2 → 2.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Expo-Template-FSD
1
+ # Application
2
2
 
3
3
  This project is built on top of the `@mediacubeco/expo-template-fsd` template.
4
4
 
package/app.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "expo": {
3
3
  "name": "expo-template-fsd",
4
4
  "slug": "expo-template-fsd",
5
- "scheme": "expo-template-fsd",
5
+ "scheme": "application",
6
6
  "version": "1.0.0",
7
7
  "orientation": "portrait",
8
8
  "userInterfaceStyle": "automatic",
@@ -12,12 +12,12 @@
12
12
  },
13
13
  "ios": {
14
14
  "supportsTablet": true,
15
- "bundleIdentifier": "com.mediacube.expo-template-fsd",
15
+ "bundleIdentifier": "com.mediacube.application",
16
16
  "icon": "./src/shared/assets/images/logo-ios.png"
17
17
  },
18
18
  "android": {
19
19
  "predictiveBackGestureEnabled": false,
20
- "package": "com.mediacube.expo-template-fsd",
20
+ "package": "com.mediacube.application",
21
21
  "adaptiveIcon": {
22
22
  "backgroundColor": "#ffffff00",
23
23
  "foregroundImage": "./src/shared/assets/images/logo-android-foreground.png",
package/eas.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "build": {
3
+ "development": {
4
+ "developmentClient": true,
5
+ "distribution": "internal"
6
+ },
7
+ "preview": {
8
+ "distribution": "internal"
9
+ },
10
+ "production": {}
11
+ }
12
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "private": false,
3
- "version": "2.1.2",
3
+ "version": "2.1.4",
4
4
  "name": "@mediacubeco/expo-template-fsd",
5
5
  "description": "Application by Mediacube developers",
6
6
  "license": "MIT",
@@ -18,6 +18,7 @@
18
18
  "AGENTS.md",
19
19
  "app.json",
20
20
  "CLAUDE.md",
21
+ "eas.json",
21
22
  "env.d.ts",
22
23
  "eslint.config.js",
23
24
  "expo-env.d.ts",
@@ -56,6 +57,7 @@
56
57
  "expo-status-bar": "~56.0.4",
57
58
  "expo-symbols": "~56.0.5",
58
59
  "expo-system-ui": "~56.0.5",
60
+ "expo-updates": "~56.0.17",
59
61
  "expo-web-browser": "~56.0.5",
60
62
  "i18next": "^26.0.5",
61
63
  "react": "19.2.3",
@@ -82,14 +84,14 @@
82
84
  "prettier": "^3.8.1",
83
85
  "typescript": "^6.0.3",
84
86
  "@mediacubeco/eslint-config": "2.1.0",
85
- "@mediacubeco/eslint-config-fsd": "2.1.0",
86
87
  "@mediacubeco/eslint-config-react-native": "2.1.0",
87
- "@mediacubeco/prettier-config-fsd": "2.1.0",
88
- "@mediacubeco/typescript-config": "2.1.0",
89
88
  "@mediacubeco/prettier-config": "2.1.0",
89
+ "@mediacubeco/eslint-config-fsd": "2.1.0",
90
+ "@mediacubeco/prettier-config-fsd": "2.1.0",
90
91
  "@mediacubeco/eslint-config-react": "2.1.0",
91
- "@mediacubeco/typescript-config-react": "2.1.0",
92
+ "@mediacubeco/typescript-config": "2.1.0",
92
93
  "@mediacubeco/typescript-config-fsd": "2.1.0",
94
+ "@mediacubeco/typescript-config-react": "2.1.0",
93
95
  "@mediacubeco/typescript-config-react-native": "2.1.0"
94
96
  },
95
97
  "scripts": {
package/skills-lock.json CHANGED
@@ -17,13 +17,13 @@
17
17
  "source": "vercel-labs/agent-skills",
18
18
  "sourceType": "github",
19
19
  "skillPath": "skills/react-best-practices/SKILL.md",
20
- "computedHash": "3219a1944e404ffc14d1d9d6aef6dd2e3855b81387ee0a044ccbfe14d34c2357"
20
+ "computedHash": "ca7b0c0c6e5f2750043f7f0cd72d16ac4e2abc48f9b5500d047a4b77a2506212"
21
21
  },
22
22
  "vercel-react-native-skills": {
23
23
  "source": "vercel-labs/agent-skills",
24
24
  "sourceType": "github",
25
25
  "skillPath": "skills/react-native-skills/SKILL.md",
26
- "computedHash": "2e9088a7333666d8c2833b8ff58bd51b955501c42b4c7244f72b4cbf22dafcc4"
26
+ "computedHash": "41d24eafa7c3d82e270439808f7cfbc4d51aeb2d14f2809a2267c16275784d06"
27
27
  }
28
28
  }
29
29
  }
@@ -1,18 +1,33 @@
1
1
  import { Platform } from '@mediacubeco/base-react-native'
2
2
  import * as SecureStore from 'expo-secure-store'
3
3
 
4
+ const localStorageFallback = {
5
+ state: {} as Record<string, string>,
6
+ getItem(key: string) {
7
+ return this.state[key]
8
+ },
9
+ setItem(key: string, value: string) {
10
+ this.state[key] = value
11
+ },
12
+ removeItem(key: string) {
13
+ delete this.state[key]
14
+ },
15
+ }
16
+
17
+ const webStorage = typeof window !== 'undefined' ? localStorage : localStorageFallback
18
+
19
+ const storageModelWeb = {
20
+ getItem: (key: string) => Promise.resolve(webStorage.getItem(key)),
21
+ setItem: (key: string, value: string) => Promise.resolve(webStorage.setItem(key, value)),
22
+ removeItem: (key: string) => Promise.resolve(webStorage.removeItem(key)),
23
+ }
24
+
4
25
  const storageModelNative = {
5
26
  getItem: SecureStore.getItemAsync,
6
27
  setItem: SecureStore.setItemAsync,
7
28
  removeItem: SecureStore.deleteItemAsync,
8
29
  }
9
30
 
10
- const storageModelWeb = {
11
- getItem: (key: string) => Promise.resolve(localStorage.getItem(key)),
12
- setItem: (key: string, value: string) => Promise.resolve(localStorage.setItem(key, value)),
13
- removeItem: (key: string) => Promise.resolve(localStorage.removeItem(key)),
14
- }
15
-
16
31
  const storageAsync = Platform.by({
17
32
  web: storageModelWeb,
18
33
  default: storageModelNative,
@@ -1,3 +1,4 @@
1
+ import { Platform } from '@mediacubeco/base-react-native'
1
2
  import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
2
3
  import { Appearance, StatusBar, useColorScheme } from 'react-native'
3
4
  import { themeStorage } from './utils'
@@ -21,15 +22,15 @@ const ThemeProvider = ({ children }: ThemeProviderProps) => {
21
22
  }, [currentThemeMode])
22
23
 
23
24
  const updateThemeModeSystem = useCallback((themeMode: ThemeMode) => {
24
- // if (Platform.isIos) {
25
- if (!hasDarkMode) {
26
- Appearance.setColorScheme('light')
27
- } else if (themeMode === ThemeMode.System) {
28
- Appearance.setColorScheme('unspecified')
29
- } else {
30
- Appearance.setColorScheme(themeMode)
25
+ if (Platform.isIos) {
26
+ if (!hasDarkMode) {
27
+ Appearance.setColorScheme('light')
28
+ } else if (themeMode === ThemeMode.System) {
29
+ Appearance.setColorScheme('unspecified')
30
+ } else {
31
+ Appearance.setColorScheme(themeMode)
32
+ }
31
33
  }
32
- // }
33
34
  }, [])
34
35
 
35
36
  useEffect(() => {