05nelsonm / kmp-tor-binary

Apache License 2.0
5 stars 2 forks source link

Build out `OSInfo` #95

Closed 05nelsonm closed 10 months ago

05nelsonm commented 10 months ago

Add to the :library:binary module an OSInfo class to detect the machine OS and architecture in order to select the appropriate tor binary resource to extract to the file system.

The Java implementation should be for both Android and Jvm, as Android Unit Tests will have to load binary resources from the :library:binary-android-unit-test module (if present. if not notify user in the Exception if that is the case), which is there as a separate dependency so that the desktop binary resources are not included in the :library:binary Android publication.

The Node-JS implementation I'll have to dig into the APIs to see what is available.