sitepong 0.1.8 → 0.1.9
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/entries/rn.js +8 -70
- package/dist/entries/rn.js.map +1 -1
- package/package.json +1 -1
package/dist/entries/rn.js
CHANGED
|
@@ -2811,83 +2811,21 @@ function createAsyncStorageAdapter(asyncStorage) {
|
|
|
2811
2811
|
removeItem: (key) => asyncStorage.removeItem(key)
|
|
2812
2812
|
};
|
|
2813
2813
|
}
|
|
2814
|
-
var deviceIdModule = null;
|
|
2815
|
-
function getDeviceIdModule() {
|
|
2816
|
-
if (!deviceIdModule) {
|
|
2817
|
-
try {
|
|
2818
|
-
const n = ["@sitepong", "device-id"].join("/");
|
|
2819
|
-
deviceIdModule = __require(n);
|
|
2820
|
-
} catch {
|
|
2821
|
-
deviceIdModule = null;
|
|
2822
|
-
}
|
|
2823
|
-
}
|
|
2824
|
-
return deviceIdModule;
|
|
2825
|
-
}
|
|
2826
2814
|
function collectDeviceInfo() {
|
|
2827
|
-
const
|
|
2815
|
+
const screen = reactNative.Dimensions.get("screen");
|
|
2816
|
+
return {
|
|
2828
2817
|
platform: reactNative.Platform.OS,
|
|
2829
|
-
osVersion: String(reactNative.Platform.Version)
|
|
2818
|
+
osVersion: String(reactNative.Platform.Version),
|
|
2819
|
+
screenWidth: screen.width,
|
|
2820
|
+
screenHeight: screen.height,
|
|
2821
|
+
screenScale: screen.scale
|
|
2830
2822
|
};
|
|
2831
|
-
const screen = reactNative.Dimensions.get("screen");
|
|
2832
|
-
info.screenWidth = screen.width;
|
|
2833
|
-
info.screenHeight = screen.height;
|
|
2834
|
-
info.screenScale = screen.scale;
|
|
2835
|
-
let ExpoDevice = null;
|
|
2836
|
-
try {
|
|
2837
|
-
const n = ["expo", "device"].join("-");
|
|
2838
|
-
ExpoDevice = __require(n);
|
|
2839
|
-
} catch {
|
|
2840
|
-
}
|
|
2841
|
-
if (ExpoDevice) {
|
|
2842
|
-
if (ExpoDevice.brand) info.deviceBrand = ExpoDevice.brand;
|
|
2843
|
-
if (ExpoDevice.modelName) info.deviceModel = ExpoDevice.modelName;
|
|
2844
|
-
if (ExpoDevice.deviceName) info.deviceName = ExpoDevice.deviceName;
|
|
2845
|
-
info.isEmulator = !ExpoDevice.isDevice;
|
|
2846
|
-
}
|
|
2847
|
-
let ExpoApplication = null;
|
|
2848
|
-
try {
|
|
2849
|
-
const n = ["expo", "application"].join("-");
|
|
2850
|
-
ExpoApplication = __require(n);
|
|
2851
|
-
} catch {
|
|
2852
|
-
}
|
|
2853
|
-
if (ExpoApplication) {
|
|
2854
|
-
if (ExpoApplication.nativeApplicationVersion) {
|
|
2855
|
-
info.appVersion = ExpoApplication.nativeApplicationVersion;
|
|
2856
|
-
}
|
|
2857
|
-
if (ExpoApplication.nativeBuildVersion) {
|
|
2858
|
-
info.appBuildNumber = ExpoApplication.nativeBuildVersion;
|
|
2859
|
-
}
|
|
2860
|
-
}
|
|
2861
|
-
return info;
|
|
2862
2823
|
}
|
|
2863
2824
|
async function fetchPersistentDeviceId() {
|
|
2864
|
-
|
|
2865
|
-
if (!mod) return null;
|
|
2866
|
-
try {
|
|
2867
|
-
return await mod.getDeviceId();
|
|
2868
|
-
} catch {
|
|
2869
|
-
return null;
|
|
2870
|
-
}
|
|
2825
|
+
return null;
|
|
2871
2826
|
}
|
|
2872
2827
|
async function fetchNativeDeviceSignals() {
|
|
2873
|
-
|
|
2874
|
-
if (!mod) return null;
|
|
2875
|
-
try {
|
|
2876
|
-
const signals = await mod.getDeviceSignals();
|
|
2877
|
-
return {
|
|
2878
|
-
platform: signals.platform,
|
|
2879
|
-
osVersion: signals.osVersion,
|
|
2880
|
-
deviceModel: signals.model,
|
|
2881
|
-
deviceBrand: signals.manufacturer,
|
|
2882
|
-
isEmulator: signals.isEmulator,
|
|
2883
|
-
screenScale: signals.screenScale,
|
|
2884
|
-
deviceId: signals.deviceId,
|
|
2885
|
-
identifierForVendor: signals.identifierForVendor,
|
|
2886
|
-
androidId: signals.androidId
|
|
2887
|
-
};
|
|
2888
|
-
} catch {
|
|
2889
|
-
return null;
|
|
2890
|
-
}
|
|
2828
|
+
return null;
|
|
2891
2829
|
}
|
|
2892
2830
|
|
|
2893
2831
|
// src/react-native/screen-recorder.ts
|