Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
R
react-native-device-info
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
放牛的园子
react-native-device-info
Commits
b6b3b7f4
Unverified
Commit
b6b3b7f4
authored
Feb 15, 2018
by
Mehdi Achour
Committed by
GitHub
Feb 15, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: prevent insertion of nil values in the dictionary (#328)
Closes #38 #89
parent
b1a50f6b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
RNDeviceInfo.m
RNDeviceInfo/RNDeviceInfo.m
+8
-8
No files found.
RNDeviceInfo/RNDeviceInfo.m
View file @
b6b3b7f4
...
@@ -268,21 +268,21 @@ RCT_EXPORT_MODULE(RNDeviceInfo)
...
@@ -268,21 +268,21 @@ RCT_EXPORT_MODULE(RNDeviceInfo)
@"systemName"
:
currentDevice
.
systemName
,
@"systemName"
:
currentDevice
.
systemName
,
@"systemVersion"
:
currentDevice
.
systemVersion
,
@"systemVersion"
:
currentDevice
.
systemVersion
,
@"apiLevel"
:
@"not available"
,
@"apiLevel"
:
@"not available"
,
@"model"
:
self
.
deviceName
,
@"model"
:
self
.
deviceName
?:
[
NSNull
null
]
,
@"brand"
:
@"Apple"
,
@"brand"
:
@"Apple"
,
@"deviceId"
:
self
.
deviceId
,
@"deviceId"
:
self
.
deviceId
?:
[
NSNull
null
]
,
@"deviceName"
:
currentDevice
.
name
,
@"deviceName"
:
currentDevice
.
name
,
@"deviceLocale"
:
self
.
deviceLocale
,
@"deviceLocale"
:
self
.
deviceLocale
?:
[
NSNull
null
]
,
@"deviceCountry"
:
self
.
deviceCountry
?:
[
NSNull
null
],
@"deviceCountry"
:
self
.
deviceCountry
?:
[
NSNull
null
],
@"uniqueId"
:
uniqueId
,
@"uniqueId"
:
uniqueId
,
@"appName"
:
[[
NSBundle
mainBundle
]
objectForInfoDictionaryKey
:
@"CFBundleDisplayName"
],
@"appName"
:
[[
NSBundle
mainBundle
]
objectForInfoDictionaryKey
:
@"CFBundleDisplayName"
]
?:
[
NSNull
null
]
,
@"bundleId"
:
[[
NSBundle
mainBundle
]
objectForInfoDictionaryKey
:
@"CFBundleIdentifier"
],
@"bundleId"
:
[[
NSBundle
mainBundle
]
objectForInfoDictionaryKey
:
@"CFBundleIdentifier"
]
?:
[
NSNull
null
]
,
@"appVersion"
:
[[
NSBundle
mainBundle
]
objectForInfoDictionaryKey
:
@"CFBundleShortVersionString"
]
?:
[
NSNull
null
],
@"appVersion"
:
[[
NSBundle
mainBundle
]
objectForInfoDictionaryKey
:
@"CFBundleShortVersionString"
]
?:
[
NSNull
null
],
@"buildNumber"
:
[[
NSBundle
mainBundle
]
objectForInfoDictionaryKey
:
@"CFBundleVersion"
],
@"buildNumber"
:
[[
NSBundle
mainBundle
]
objectForInfoDictionaryKey
:
@"CFBundleVersion"
]
?:
[
NSNull
null
]
,
@"systemManufacturer"
:
@"Apple"
,
@"systemManufacturer"
:
@"Apple"
,
@"carrier"
:
self
.
carrier
?:
[
NSNull
null
],
@"carrier"
:
self
.
carrier
?:
[
NSNull
null
],
@"userAgent"
:
self
.
userAgent
,
@"userAgent"
:
self
.
userAgent
?:
[
NSNull
null
]
,
@"timezone"
:
self
.
timezone
,
@"timezone"
:
self
.
timezone
?:
[
NSNull
null
]
,
@"isEmulator"
:
@
(
self
.
isEmulator
),
@"isEmulator"
:
@
(
self
.
isEmulator
),
@"isTablet"
:
@
(
self
.
isTablet
),
@"isTablet"
:
@
(
self
.
isTablet
),
@"is24Hour"
:
@
(
self
.
is24Hour
),
@"is24Hour"
:
@
(
self
.
is24Hour
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment