这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@agnostic-apollo
Copy link
Member

No description provided.

Both static and dynamic versions of the libraries are provided and they can be used internally for `termux-core` executables/libraries, and also for other packages. Various standardized and safe utils are provided, the primary ones are listed below.
- Added logger framework with multiple log levels that supports writing logs to standard streams and to a file, or a custom implementation. The log level can be read from an environment variable by calling `getLogLevelFromEnv()` which maps to `(OFF=0, NORMAL=1, DEBUG=2, VERBOSE=3, VVERBOSE=4 and VVVERBOSE=5)`. The default value is `1`.
- Added various file utils including normalize and absolutize path functions from `portal-io` library and AOSP that has been tested on hundreds of test cases.
- Add Termux shell environment headers for Unix/Android/Termux variable names, and for reading Termux scoped environment variable values with a fallback for build time values, like for `TERMUX_APP__DATA_DIR`, `TERMUX__ROOTFS`, `TERMUX__PREFIX`, etc.
In future, tests should be moved to each package's own repo which are currently implemented here.
@agnostic-apollo agnostic-apollo merged commit 12dc16a into master Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant