Skip to content

inking-otd: Find a way to move tablet configurations out of libraries #8

Description

@nahkd123

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions