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.
Add to the
:library:binary
module anOSInfo
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
andJvm
, 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 theException
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.