Commit bbefe341 authored by Mehdi Achour's avatar Mehdi Achour

chore: prepare for 0.21.0

parent e2c877f4
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
### next ### next
* Add more gradle configuration properties `compileSdkVersion`, `buildToolsVersion`, `targetSdkVersion` ### 0.21.0
* Add more gradle configuration properties `compileSdkVersion`, `buildToolsVersion`, `targetSdkVersion` (https://github.com/rebeccahughes/react-native-device-info/pull/343)
### 0.20.0 ### 0.20.0
......
...@@ -89,7 +89,10 @@ Run your project (Cmd+R) ...@@ -89,7 +89,10 @@ Run your project (Cmd+R)
... ...
ext { ext {
// dependency versions // dependency versions
googlePlayServicesVersion = "<Your Services Version>" googlePlayServicesVersion = "<Your play services version>" // default: "+"
compileSdkVersion = "<Your compile SDK version>" // default: 23
buildToolsVersion = "<Your build tools version>" // default: "25.0.2"
targetSdkVersion = "<Your target SDK version>" // default: 22
} }
... ...
``` ```
...@@ -273,7 +276,7 @@ Gets the battery level of the device as a float comprised between 0 and 1. ...@@ -273,7 +276,7 @@ Gets the battery level of the device as a float comprised between 0 and 1.
**Examples** **Examples**
```js ```js
DeviceInfo.getBatteryLevel().then((batteryLevel) => { DeviceInfo.getBatteryLevel().then(batteryLevel => {
// 0.759999 // 0.759999
}); });
``` ```
...@@ -733,6 +736,7 @@ const uniqueId = DeviceInfo.getUniqueID(); ...@@ -733,6 +736,7 @@ const uniqueId = DeviceInfo.getUniqueID();
> * iOS: This is [`IDFV`](https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor) so it will change if all apps from the current apps vendor have been previously uninstalled. > * iOS: This is [`IDFV`](https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor) so it will change if all apps from the current apps vendor have been previously uninstalled.
> * android: Prior to Oreo, this id ([ANDROID_ID](https://developer.android.com/reference/android/provider/Settings.Secure.html#ANDROID_ID)) will always be the same once you set up your phone. > * android: Prior to Oreo, this id ([ANDROID_ID](https://developer.android.com/reference/android/provider/Settings.Secure.html#ANDROID_ID)) will always be the same once you set up your phone.
--- ---
### getUserAgent() ### getUserAgent()
......
Pod::Spec.new do |s| Pod::Spec.new do |s|
s.name = "RNDeviceInfo" s.name = "RNDeviceInfo"
s.version = "0.20.0" s.version = "0.21.0"
s.summary = "Device Information for react-native" s.summary = "Device Information for react-native"
s.homepage = "https://github.com/rebeccahughes/react-native-device-info" s.homepage = "https://github.com/rebeccahughes/react-native-device-info"
......
...@@ -24,6 +24,6 @@ using System.Runtime.InteropServices; ...@@ -24,6 +24,6 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.20.0.0")] [assembly: AssemblyVersion("0.21.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: ComVisible(false)] [assembly: ComVisible(false)]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment