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
51260fac
Commit
51260fac
authored
Sep 26, 2016
by
消失的旅人
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'upstream/master'
parents
0021bb10
00783a11
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletion
+19
-1
README.md
README.md
+19
-0
RNDeviceInfo.m
RNDeviceInfo/RNDeviceInfo.m
+0
-1
No files found.
README.md
View file @
51260fac
...
...
@@ -55,6 +55,25 @@ Run your project (Cmd+R)
### Android
- in `
android/app/build.gradle
`:
```diff
dependencies {
...
compile "com.facebook.react:react-native:+" // From node_modules
+ compile project(':react-native-device-info')
}
```
- in `
android/settings.gradle
`:
```diff
...
include ':app'
+ include ':react-native-device-info'
+ project(':react-native-device-info').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-device-info/android')
```
#### With React Native 0.29+
- in `
MainApplication.java
`:
...
...
RNDeviceInfo/RNDeviceInfo.m
View file @
51260fac
...
...
@@ -157,7 +157,6 @@ RCT_EXPORT_MODULE()
{
UIDevice
*
currentDevice
=
[
UIDevice
currentDevice
];
NSUUID
*
identifierForVendor
=
[
currentDevice
identifierForVendor
];
NSString
*
uniqueId
=
[
DeviceUID
uid
];
return
@{
...
...
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