Migrations.Json.Net icon indicating copy to clipboard operation
Migrations.Json.Net copied to clipboard

Doesn't work with IL2Cpp

Open kjyv opened this issue 4 years ago • 4 comments

Probably because of incomplete reflection support in il2cpp, GetTypeInfo().DefinedMethods doesn't return static methods, instance methods are included. This sadly makes this library unavailable with Unity for now.

kjyv avatar Jun 11 '21 16:06 kjyv

I've tested this in unity 2022.1.0a16 and migrations work correctly. As well I've built a project for the android platform and everything works fine.

vangogih avatar Dec 16 '21 11:12 vangogih

Sorry, I don't have the time to test this again but at the time of reporting, it was not working with Unity 2020.3 which is still current LTS and most likely still has the described issue.

It's possible that il2cpp has support for this now, I don't know. The alpha version is not a good version to test this on though, it should at least work on the current stable 2021.2. But of course you can decide for your project that it will work in the future at some point and you don't need to change anything.

kjyv avatar Dec 16 '21 12:12 kjyv

Just as info: I didn't found migrations issues with Android il2cpp builds produced by Unity 2021.3

Aquastorm avatar Sep 30 '22 09:09 Aquastorm

@kjyv @Aquastorm Hey guys,

I have rewrote this plugin, made it from 5 to 10 times faster and added unity support https://github.com/vangogih/FastMigrations.Json.Net

vangogih avatar Mar 28 '24 13:03 vangogih