Weingartner / Migrations.Json.Net

A simple framework for data migrations using Newtonsoft Json.Net.
MIT License
30 stars 5 forks source link

Doesn't work with IL2Cpp #18

Open kjyv opened 3 years ago

kjyv commented 3 years ago

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.

vangogih commented 2 years ago

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.

kjyv commented 2 years ago

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.

Aquastorm commented 2 years ago

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

vangogih commented 6 months ago

@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