Closed BillCarsonFr closed 5 months ago
I have to say that having two properties that do the same thing seems like a very bad idea. Can't we just fix the script?
At the very least, the comments should say how the new property differs from the old one, and which we should be using in future.
I have to say that having two properties that do the same thing seems like a very bad idea. Can't we just fix the script?
At the very least, the comments should say how the new property differs from the old one, and which we should be using in future.
Yes fixing the script would be better. But given that the existing appPlatform
is only used by web, I thought I might as well deprecate it and avoid the effort to change all the existing code generation script. On web it's also used in RS and maybe it was a matomo thing previously.
Well, could you at least add a comment to appPlatform
to say that it is deprecated?
Fixes https://github.com/element-hq/crypto-internal/issues/316
Unfortunately I cannot just use the existing app platform, because it uses values with white space (Web Platform). The script we use to generate swift/kotlin enum will generate invalid code for such values. We are using some custom python script to convert, not sure if worth finding how to fix them