netpyoung / SqlCipher4Unity3D

💾 SqlCipher made easy for Unity3d
MIT License
163 stars 37 forks source link

Is it possible to add async? #28

Closed Avatarchik closed 3 years ago

Avatarchik commented 4 years ago

Is it possible to add asynchrony?

netpyoung commented 4 years ago

I just pushed support-async branch.

refer https://github.com/praeclarum/sqlite-net/tree/9a66dc7a711781cbf5bee8a142d29bd57830203f .

But I just tested on my PC but not other platforms.

netpyoung commented 4 years ago

tested on android. then got error.

2020/08/28 08:29:58.256 7338 7363 Error Unity NotSupportedException: C:\Program Files\Unity\Hub\Editor\2019.4.5f1\Editor\Data\il2cpp\libil2cpp\icalls\mscorlib\System.Reflection\CustomAttributeData.cpp(17) : Unsupported internal call for IL2CPP:CustomAttributeData::ResolveArgumentsInternal - "IL2CPP does not support inspection of attribute constructor arguments at run time."
2020/08/28 08:29:58.256 7338 7363 Error Unity   at System.Reflection.CustomAttributeData.ResolveArguments () [0x00000] in <00000000000000000000000000000000>:0 
2020/08/28 08:29:58.256 7338 7363 Error Unity   at System.Reflection.CustomAttributeData.get_ConstructorArguments () [0x00000] in <00000000000000000000000000000000>:0 
2020/08/28 08:29:58.256 7338 7363 Error Unity   at SqlCipher4Unity3D.TableMapping+Column..ctor (System.Reflection.PropertyInfo prop, SqlCipher4Unity3D.CreateFlags createFlags) [0x00000] in <00000000000000000000000000000000>:0 
2020/08/28 08:29:58.256 7338 7363 Error Unity   at SqlCipher4Unity3D.TableMapping..ctor (System.Type type, SqlCipher4Unity3D.CreateFlags createFlags) [0x00000] in <00000000000000000000000000000000>:0 
2020/08/28 08:29:58.256 7338 7363 Error Unity   at SqlCipher4Unity3D.SQLiteConnection.GetMapping (System.Type type, SqlCipher4Unity3D.CreateFlags createFlags) [0x0000
netpyoung commented 4 years ago

I fixed above error on android. I don't have iOS and macOS devices. So If you have that devices please test enough before release.

netpyoung commented 3 years ago

@Avatarchik Could you check this release?

then please reopen this issue if you have any problem on this.