Enable object Ids on RN Android (#1481)
* Using C function instead of C++ function since Android NDK r10e doesn't support std::stoull(). * Update CHANGELOG.md
This commit is contained in:
parent
d567cd2dd9
commit
0ca292c133
|
@ -4,10 +4,11 @@ X.Y.Z Release notes
|
|||
* None.
|
||||
|
||||
### Enchancements
|
||||
* Improve notification performance for objects with no object or list properties.
|
||||
* Improved notification performance for objects with no object or list properties.
|
||||
|
||||
### Bug fixes
|
||||
* Fix a race condition where closing and immediately reopening a synchronized
|
||||
* Fixed a compilation error related to object IDs for React Native on Android (#1480).
|
||||
* Fixed a race condition where closing and immediately reopening a synchronized
|
||||
Realm opened using an admin token user would fail.
|
||||
|
||||
### Internal
|
||||
|
|
|
@ -1013,8 +1013,7 @@ inline sync::ObjectID object_id_from_string(std::string const& string)
|
|||
!std::all_of(low_string.begin(), low_string.end(), isxdigit)) {
|
||||
throw std::invalid_argument("Invalid object ID.");
|
||||
}
|
||||
|
||||
return sync::ObjectID(std::stoull(high_string, nullptr, 16), std::stoull(low_string, nullptr, 16));
|
||||
return sync::ObjectID(strtoull(high_string.c_str(), nullptr, 16), strtoull(low_string.c_str(), nullptr, 16));
|
||||
}
|
||||
|
||||
} // unnamed namespace
|
||||
|
|
Loading…
Reference in New Issue