@dubsdotapp/expo 0.2.23 → 0.2.24

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/dist/index.mjs CHANGED
@@ -495,7 +495,7 @@ import { Connection as Connection2 } from "@solana/web3.js";
495
495
 
496
496
  // src/managed-wallet.tsx
497
497
  import { createContext, useContext, useState, useEffect, useRef, useCallback } from "react";
498
- import { Platform as Platform2 } from "react-native";
498
+ import { Platform } from "react-native";
499
499
 
500
500
  // src/wallet/mwa-adapter.ts
501
501
  import { PublicKey } from "@solana/web3.js";
@@ -1053,53 +1053,6 @@ var PhantomDeeplinkAdapter = class {
1053
1053
  }
1054
1054
  };
1055
1055
 
1056
- // src/utils/device.ts
1057
- import { Platform } from "react-native";
1058
- function isSolanaSeeker() {
1059
- try {
1060
- const Device = __require("expo-device");
1061
- return Device.brand?.toLowerCase() === "solanamobile";
1062
- } catch {
1063
- return false;
1064
- }
1065
- }
1066
- async function getDeviceInfo() {
1067
- try {
1068
- const Device = __require("expo-device");
1069
- return {
1070
- platform: Platform.OS,
1071
- modelName: Device.modelName,
1072
- brand: Device.brand,
1073
- manufacturer: Device.manufacturer,
1074
- osName: Device.osName,
1075
- osVersion: Device.osVersion,
1076
- deviceType: Device.deviceType,
1077
- deviceName: Device.deviceName,
1078
- totalMemory: Device.totalMemory,
1079
- modelId: Device.modelId,
1080
- designName: Device.designName,
1081
- productName: Device.productName,
1082
- isDevice: Device.isDevice
1083
- };
1084
- } catch {
1085
- return {
1086
- platform: Platform.OS,
1087
- modelName: null,
1088
- brand: null,
1089
- manufacturer: null,
1090
- osName: null,
1091
- osVersion: null,
1092
- deviceType: null,
1093
- deviceName: null,
1094
- totalMemory: null,
1095
- modelId: null,
1096
- designName: null,
1097
- productName: null,
1098
- isDevice: null
1099
- };
1100
- }
1101
- }
1102
-
1103
1056
  // src/ui/ConnectWalletScreen.tsx
1104
1057
  import {
1105
1058
  View,
@@ -1325,9 +1278,8 @@ function ManagedWalletProvider({
1325
1278
  const [connecting, setConnecting] = useState(false);
1326
1279
  const [isReady, setIsReady] = useState(false);
1327
1280
  const [error, setError] = useState(null);
1328
- const seeker = Platform2.OS === "android" && isSolanaSeeker();
1329
- const usePhantom = !seeker && !!redirectUri;
1330
- console.log(TAG3, `Platform: ${Platform2.OS}, seeker: ${seeker}, redirectUri: ${redirectUri ? "provided" : "not set"}, usePhantom: ${usePhantom}`);
1281
+ const usePhantom = Platform.OS === "ios" && !!redirectUri;
1282
+ console.log(TAG3, `Platform: ${Platform.OS}, redirectUri: ${redirectUri ? "provided" : "not set"}, usePhantom: ${usePhantom}`);
1331
1283
  const adapterRef = useRef(null);
1332
1284
  const transactRef = useRef(null);
1333
1285
  if (!adapterRef.current) {
@@ -1900,6 +1852,53 @@ import bs583 from "bs58";
1900
1852
  import { createContext as createContext2 } from "react";
1901
1853
  var AuthContext = createContext2(null);
1902
1854
 
1855
+ // src/utils/device.ts
1856
+ import { Platform as Platform2 } from "react-native";
1857
+ function isSolanaSeeker() {
1858
+ try {
1859
+ const Device = __require("expo-device");
1860
+ return Device.brand?.toLowerCase() === "solanamobile";
1861
+ } catch {
1862
+ return false;
1863
+ }
1864
+ }
1865
+ async function getDeviceInfo() {
1866
+ try {
1867
+ const Device = __require("expo-device");
1868
+ return {
1869
+ platform: Platform2.OS,
1870
+ modelName: Device.modelName,
1871
+ brand: Device.brand,
1872
+ manufacturer: Device.manufacturer,
1873
+ osName: Device.osName,
1874
+ osVersion: Device.osVersion,
1875
+ deviceType: Device.deviceType,
1876
+ deviceName: Device.deviceName,
1877
+ totalMemory: Device.totalMemory,
1878
+ modelId: Device.modelId,
1879
+ designName: Device.designName,
1880
+ productName: Device.productName,
1881
+ isDevice: Device.isDevice
1882
+ };
1883
+ } catch {
1884
+ return {
1885
+ platform: Platform2.OS,
1886
+ modelName: null,
1887
+ brand: null,
1888
+ manufacturer: null,
1889
+ osName: null,
1890
+ osVersion: null,
1891
+ deviceType: null,
1892
+ deviceName: null,
1893
+ totalMemory: null,
1894
+ modelId: null,
1895
+ designName: null,
1896
+ productName: null,
1897
+ isDevice: null
1898
+ };
1899
+ }
1900
+ }
1901
+
1903
1902
  // src/hooks/useAuth.ts
1904
1903
  function useAuth() {
1905
1904
  const sharedAuth = useContext2(AuthContext);