OpenTabletDriver.Configurations.DeviceConfigurationProvider constructor get all configurations from resources inside the OpenTabletDriver.Configurations assembly. If rd.xml can be used to remove all .json files in that assembly when using NativeAOT then I want to:
- Move all configurations into a separate location, preferably right inside
inking-otd.
- Changes the initialize function (from .NET) to accepts the path to configurations directory.
- When initializing driver (from JVM), the initializer will copies all configurations to a directory, then call the initialize function from native code with the path to configurations directory.
- The function from .NET will have to use reflection (if possible?) to add configurations one by one.
DeviceConfigurationProvider.TabletConfigurations is a read-only property, and DeviceConfigurationProvider.Deserialize() is a private method, so reflection is a must here.
"But why?" - Currently, the configurations are copied to all 6 natives (windows, linux and osx with x64 and arm64 as architectures). Unifying everything into a single set of configurations would reduces storage space a lot.
OpenTabletDriver.Configurations.DeviceConfigurationProviderconstructor get all configurations from resources inside theOpenTabletDriver.Configurationsassembly. Ifrd.xmlcan be used to remove all.jsonfiles in that assembly when using NativeAOT then I want to:inking-otd.DeviceConfigurationProvider.TabletConfigurationsis a read-only property, andDeviceConfigurationProvider.Deserialize()is a private method, so reflection is a must here."But why?" - Currently, the configurations are copied to all 6 natives (windows, linux and osx with x64 and arm64 as architectures). Unifying everything into a single set of configurations would reduces storage space a lot.