B4XSerializator says that it wants any types to be defined in the Main module. Why is that?
Background:
I'm building a multi-user version of my checklist app using CloudKVS, which uses B4XSerializator to send objects back and forth.
Normally I declare my types and most global variables and constants in a code module called "c" (for "common", but shorter as a prefix in the code). That's also where I put subs that are used across activities, because it's a central place. That's worked well in all my apps so far.
But if I try to use those types with B4XSerializator, it fails because it expects to find them in Main.
So I guess this is more a question about best practices - doesn't it make more sense to declare app-wide stuff in a code module rather than in a particular activity? Do I really need to move all those types that CloudKVS needs into my Main module?
Just seems a bit counter-intuitive. Am I missing something?
Thanks!
Background:
I'm building a multi-user version of my checklist app using CloudKVS, which uses B4XSerializator to send objects back and forth.
Normally I declare my types and most global variables and constants in a code module called "c" (for "common", but shorter as a prefix in the code). That's also where I put subs that are used across activities, because it's a central place. That's worked well in all my apps so far.
But if I try to use those types with B4XSerializator, it fails because it expects to find them in Main.
So I guess this is more a question about best practices - doesn't it make more sense to declare app-wide stuff in a code module rather than in a particular activity? Do I really need to move all those types that CloudKVS needs into my Main module?
Just seems a bit counter-intuitive. Am I missing something?
Thanks!