mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-10 04:24:05 +08:00
Define TermuxConstants
class to store all shared constants of Termux app and its plugins
This commit removes almost all hardcoded paths in Termux app and moves the references to the `TermuxConstants` class. The `TermuxConstants` class should be imported by other termux plugin apps instead of copying and defining their own constants. The 3rd party apps can also import it for interacting with termux apps. App and sub class specific constants are defined in their own nested classes to keep them segregated from each other and for better readability.
This commit is contained in:
@@ -1,6 +1,14 @@
|
||||
<shortcuts xmlns:tools="http://schemas.android.com/tools"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<!--
|
||||
For shortcut.xml:
|
||||
If applicationId in build.gradle is changed from "com.termux", then targetPackage will
|
||||
need to be manually patched since ${applicationId} variable or resource string does not work.
|
||||
If package name in AndroidManifest is changed from "com.termux", then targetClass will
|
||||
need to be manually patched since dot (.) prefix does not work to automatically prefix the
|
||||
package name.
|
||||
-->
|
||||
<shortcut
|
||||
android:shortcutId="new_session"
|
||||
android:enabled="true"
|
||||
|
Reference in New Issue
Block a user