-
Notifications
You must be signed in to change notification settings - Fork 585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to Realm Core 13.2.0 #5252
Conversation
ff373ab
to
f13c4f4
Compare
e9db185
to
5c97c7b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What specification are we implementing these versions towards? Their value should perhaps match some sort of schema to be useful?
deviceVersion = "unknown"; | ||
} else if (Platform.OS === "android") { | ||
deviceName = `${Platform.Manufacturer}:${Platform.Brand}`; | ||
deviceVersion = `${Platform.Model}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The react native docs on this, describes the Model
as:
The end-user-visible name for the Android device.
What is the intended semantics of this property exactly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The specification split "Samsung GT-I9100" so deviceName is "Samsung" and deviceVersion is "GT-I9100", and I have interpreted deviceVersion as the model.
// RN doesn't support Apple Watch | ||
deviceName = "iPhone"; | ||
} | ||
deviceVersion = "unknown"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should be able to use osVersion
here:
deviceVersion = "unknown"; | |
deviceVersion = Platform.osVersion; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't found a way to tell me if it is an iPhone 10 or iPhone 11. Platform.osVersion
will tell me the version of iOS or Android which is unrelated to the device.
Co-authored-by: Kræn Hansen <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aside from Kraens comments I think the changes for the sync connection parameter looks good! Also as we discussed, feel free to change the JS-specific values that are sent over to whatever you think is easiest consumable
Co-authored-by: Kræn Hansen <[email protected]>
I have updated the internal document to reflect the PR. |
if (Platform.isPad()) { | ||
deviceName = "iPad"; | ||
} else if (Platform.isTV()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @kneth, these caused a regression since Platform.isPad
and Platform.isTV
are boolean properties (not methods).
Error getting versions: TypeError: false is not a function
Please see: https://reactnative.dev/docs/platform#ispad-ios
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What, How & Why?
This closes #5244
☑️ ToDos
Compatibility
label is updated or copied from previous entry[ ] 📝 UpdateCOMPATIBILITY.md
[ ] 🚦 Tests[ ] 🔀 Executed flexible sync tests locally if modifying flexible sync[ ] 📦 Updated internal package version in consumingpackage.json
s (if updating internal packages)[ ] 📱 Check the React Native/other sample apps work if necessary[ ] 📝 Public documentation PR created or is not necessary[ ] 💥Breaking
label has been applied or is not necessaryIf this PR adds or changes public API's:
[ ] typescript definitions file is updated[ ] jsdoc files updated