expo-device
Advanced tools
Comparing version 3.3.0 to 4.0.0
@@ -1,2 +0,2 @@ | ||
import { Platform, UnavailabilityError } from '@unimodules/core'; | ||
import { Platform, UnavailabilityError } from 'expo-modules-core'; | ||
import { DeviceType } from './Device.types'; | ||
@@ -3,0 +3,0 @@ import ExpoDevice from './ExpoDevice'; |
@@ -1,2 +0,2 @@ | ||
declare const _default: import("@unimodules/core").ProxyNativeModule; | ||
declare const _default: import("expo-modules-core").ProxyNativeModule; | ||
export default _default; |
@@ -1,3 +0,3 @@ | ||
import { NativeModulesProxy } from '@unimodules/core'; | ||
import { NativeModulesProxy } from 'expo-modules-core'; | ||
export default NativeModulesProxy.ExpoDevice; | ||
//# sourceMappingURL=ExpoDevice.js.map |
@@ -1,2 +0,2 @@ | ||
import { Platform } from '@unimodules/core'; | ||
import { Platform } from 'expo-modules-core'; | ||
import UAParser from 'ua-parser-js'; | ||
@@ -3,0 +3,0 @@ import { DeviceType } from './Device.types'; |
@@ -139,4 +139,4 @@ export function getIosModelName(modelId) { | ||
'AppleTV5,3': 'Apple TV', | ||
'AppleTV6,2': 'Apple TV 4K', | ||
'AppleTV6,2': 'Apple TV 4K', // Apple TV 4K | ||
}; | ||
//# sourceMappingURL=ModelNames.js.map |
@@ -13,2 +13,17 @@ # Changelog | ||
## 4.0.0 — 2021-09-28 | ||
### 🛠 Breaking changes | ||
- Dropped support for iOS 11.0 ([#14383](https://github.com/expo/expo/pull/14383) by [@cruzach](https://github.com/cruzach)) | ||
### 🐛 Bug fixes | ||
- Fix building errors from use_frameworks! in Podfile. ([#14523](https://github.com/expo/expo/pull/14523) by [@kudo](https://github.com/kudo)) | ||
### 💡 Others | ||
- Rewrite android code to Kotlin ([#13955](https://github.com/expo/expo/pull/13955) by [@kkafar](https://github.com/kkafar)) | ||
- Migrated from `@unimodules/core` to `expo-modules-core`. ([#13757](https://github.com/expo/expo/pull/13757) by [@tsapeta](https://github.com/tsapeta)) | ||
## 3.3.0 — 2021-06-16 | ||
@@ -15,0 +30,0 @@ |
{ | ||
"name": "expo-device", | ||
"version": "3.3.0", | ||
"version": "4.0.0", | ||
"description": "A universal module that gets physical information about the device running the application", | ||
@@ -34,7 +34,5 @@ "main": "build/Device.js", | ||
"license": "MIT", | ||
"homepage": "https://docs.expo.io/versions/latest/sdk/device/", | ||
"unimodulePeerDependencies": { | ||
"@unimodules/core": "*" | ||
}, | ||
"homepage": "https://docs.expo.dev/versions/latest/sdk/device/", | ||
"dependencies": { | ||
"expo-modules-core": "~0.4.0", | ||
"ua-parser-js": "^0.7.19" | ||
@@ -45,3 +43,3 @@ }, | ||
}, | ||
"gitHead": "c80d4c938920c5111e34c2dbca3a6bf500dff0e1" | ||
"gitHead": "1fffde73411ee7a642b98f1506a8de921805d52b" | ||
} |
@@ -1,2 +0,2 @@ | ||
import { Platform, UnavailabilityError } from '@unimodules/core'; | ||
import { Platform, UnavailabilityError } from 'expo-modules-core'; | ||
@@ -3,0 +3,0 @@ import { DeviceType } from './Device.types'; |
@@ -1,2 +0,2 @@ | ||
import { NativeModulesProxy } from '@unimodules/core'; | ||
import { NativeModulesProxy } from 'expo-modules-core'; | ||
export default NativeModulesProxy.ExpoDevice; |
@@ -1,2 +0,2 @@ | ||
import { Platform } from '@unimodules/core'; | ||
import { Platform } from 'expo-modules-core'; | ||
import UAParser from 'ua-parser-js'; | ||
@@ -6,2 +6,4 @@ | ||
type NavigatorWithDeviceMemory = Navigator & { deviceMemory: number }; | ||
let result: any = null; | ||
@@ -35,3 +37,3 @@ if (Platform.isDOMAvailable) { | ||
if (Platform.isDOMAvailable && 'deviceMemory' in navigator) { | ||
const { deviceMemory } = navigator; | ||
const { deviceMemory } = navigator as NavigatorWithDeviceMemory; | ||
return convertGiBtoBytes(deviceMemory); | ||
@@ -38,0 +40,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
789
78446
2
+ Addedexpo-modules-core@~0.4.0
+ Addedcompare-versions@3.6.0(transitive)
+ Addedexpo-modules-core@0.4.10(transitive)
+ Addedinvariant@2.2.4(transitive)
+ Addedjs-tokens@4.0.0(transitive)
+ Addedloose-envify@1.4.0(transitive)