diff --git a/app/src/main/java/io/neoterm/App.kt b/app/src/main/java/io/neoterm/App.kt index 1ca1ca8..007945e 100644 --- a/app/src/main/java/io/neoterm/App.kt +++ b/app/src/main/java/io/neoterm/App.kt @@ -9,7 +9,7 @@ import android.net.Uri import android.view.Gravity import android.widget.Toast import io.neoterm.component.NeoInitializer -import io.neoterm.frontend.preference.NeoPreference +import io.neoterm.frontend.config.NeoPreference import io.neoterm.ui.bonus.BonusActivity import io.neoterm.utils.CrashHandler diff --git a/app/src/main/java/io/neoterm/component/color/ColorSchemeComponent.kt b/app/src/main/java/io/neoterm/component/color/ColorSchemeComponent.kt index ee9a25e..a51a051 100644 --- a/app/src/main/java/io/neoterm/component/color/ColorSchemeComponent.kt +++ b/app/src/main/java/io/neoterm/component/color/ColorSchemeComponent.kt @@ -4,10 +4,9 @@ import android.content.Context import io.neoterm.App import io.neoterm.R import io.neoterm.component.codegen.CodeGenComponent -import io.neoterm.component.config.ConfigureComponent import io.neoterm.frontend.component.ComponentManager -import io.neoterm.frontend.preference.NeoPreference -import io.neoterm.frontend.preference.NeoTermPath +import io.neoterm.frontend.config.NeoPreference +import io.neoterm.frontend.config.NeoTermPath import io.neoterm.frontend.component.NeoComponent import io.neoterm.frontend.logging.NLog import io.neoterm.utils.AssetsUtils diff --git a/app/src/main/java/io/neoterm/component/eks/ExtraKeysComponent.kt b/app/src/main/java/io/neoterm/component/eks/ExtraKeysComponent.kt index 46e83a0..fdfde5c 100644 --- a/app/src/main/java/io/neoterm/component/eks/ExtraKeysComponent.kt +++ b/app/src/main/java/io/neoterm/component/eks/ExtraKeysComponent.kt @@ -3,7 +3,7 @@ package io.neoterm.component.eks import android.content.Context import io.neoterm.App import io.neoterm.frontend.logging.NLog -import io.neoterm.frontend.preference.NeoTermPath +import io.neoterm.frontend.config.NeoTermPath import io.neoterm.frontend.component.NeoComponent import io.neoterm.utils.AssetsUtils import io.neoterm.frontend.terminal.eks.ExtraKeysView diff --git a/app/src/main/java/io/neoterm/component/font/FontComponent.kt b/app/src/main/java/io/neoterm/component/font/FontComponent.kt index 9043dfa..3b567f0 100644 --- a/app/src/main/java/io/neoterm/component/font/FontComponent.kt +++ b/app/src/main/java/io/neoterm/component/font/FontComponent.kt @@ -2,13 +2,12 @@ package io.neoterm.component.font import android.content.Context import android.graphics.Typeface -import android.view.View import io.neoterm.App import io.neoterm.R -import io.neoterm.frontend.preference.NeoPreference -import io.neoterm.frontend.preference.NeoTermPath +import io.neoterm.frontend.config.NeoPreference +import io.neoterm.frontend.config.NeoTermPath import io.neoterm.frontend.component.NeoComponent -import io.neoterm.frontend.preference.DefaultPreference +import io.neoterm.frontend.config.DefaultPreference import io.neoterm.frontend.terminal.TerminalView import io.neoterm.frontend.terminal.eks.ExtraKeysView import io.neoterm.utils.AssetsUtils diff --git a/app/src/main/java/io/neoterm/component/pm/SourceManager.kt b/app/src/main/java/io/neoterm/component/pm/SourceManager.kt index a8bf7d1..127aab5 100644 --- a/app/src/main/java/io/neoterm/component/pm/SourceManager.kt +++ b/app/src/main/java/io/neoterm/component/pm/SourceManager.kt @@ -2,7 +2,7 @@ package io.neoterm.component.pm import io.neoterm.App import io.neoterm.R -import io.neoterm.frontend.preference.NeoPreference +import io.neoterm.frontend.config.NeoPreference /** * @author kiva diff --git a/app/src/main/java/io/neoterm/component/pm/SourceUtils.kt b/app/src/main/java/io/neoterm/component/pm/SourceUtils.kt index 96981a1..4ba5d7a 100644 --- a/app/src/main/java/io/neoterm/component/pm/SourceUtils.kt +++ b/app/src/main/java/io/neoterm/component/pm/SourceUtils.kt @@ -2,8 +2,8 @@ package io.neoterm.component.pm import io.neoterm.R import io.neoterm.frontend.logging.NLog -import io.neoterm.frontend.preference.NeoPreference -import io.neoterm.frontend.preference.NeoTermPath +import io.neoterm.frontend.config.NeoPreference +import io.neoterm.frontend.config.NeoTermPath import java.io.File import java.net.URL diff --git a/app/src/main/java/io/neoterm/component/script/UserScriptComponent.kt b/app/src/main/java/io/neoterm/component/script/UserScriptComponent.kt index cf4bbcd..5c392c4 100644 --- a/app/src/main/java/io/neoterm/component/script/UserScriptComponent.kt +++ b/app/src/main/java/io/neoterm/component/script/UserScriptComponent.kt @@ -5,7 +5,7 @@ import android.system.Os import io.neoterm.App import io.neoterm.frontend.component.NeoComponent import io.neoterm.frontend.logging.NLog -import io.neoterm.frontend.preference.NeoTermPath +import io.neoterm.frontend.config.NeoTermPath import io.neoterm.utils.AssetsUtils import java.io.File diff --git a/app/src/main/java/io/neoterm/component/session/SessionComponent.kt b/app/src/main/java/io/neoterm/component/session/SessionComponent.kt index 6fc7212..05b58cc 100644 --- a/app/src/main/java/io/neoterm/component/session/SessionComponent.kt +++ b/app/src/main/java/io/neoterm/component/session/SessionComponent.kt @@ -6,7 +6,7 @@ import android.content.Context import io.neoterm.Globals import io.neoterm.frontend.component.NeoComponent import io.neoterm.frontend.logging.NLog -import io.neoterm.frontend.preference.NeoTermPath +import io.neoterm.frontend.config.NeoTermPath import io.neoterm.frontend.session.shell.ShellParameter import io.neoterm.frontend.session.shell.ShellTermSession import io.neoterm.frontend.session.xorg.XParameter diff --git a/app/src/main/java/io/neoterm/component/setup/BaseFileInstaller.java b/app/src/main/java/io/neoterm/component/setup/BaseFileInstaller.java index d4b6818..97b7c8a 100644 --- a/app/src/main/java/io/neoterm/component/setup/BaseFileInstaller.java +++ b/app/src/main/java/io/neoterm/component/setup/BaseFileInstaller.java @@ -23,8 +23,8 @@ import java.util.zip.ZipInputStream; import io.neoterm.R; import io.neoterm.backend.EmulatorDebug; import io.neoterm.frontend.logging.NLog; -import io.neoterm.frontend.preference.NeoPreference; -import io.neoterm.frontend.preference.NeoTermPath; +import io.neoterm.frontend.config.NeoPreference; +import io.neoterm.frontend.config.NeoTermPath; public final class BaseFileInstaller { public interface ResultListener { diff --git a/app/src/main/java/io/neoterm/frontend/preference/DefaultPreference.kt b/app/src/main/java/io/neoterm/frontend/config/DefaultPreference.kt similarity index 94% rename from app/src/main/java/io/neoterm/frontend/preference/DefaultPreference.kt rename to app/src/main/java/io/neoterm/frontend/config/DefaultPreference.kt index 6534208..f821350 100644 --- a/app/src/main/java/io/neoterm/frontend/preference/DefaultPreference.kt +++ b/app/src/main/java/io/neoterm/frontend/config/DefaultPreference.kt @@ -1,4 +1,4 @@ -package io.neoterm.frontend.preference +package io.neoterm.frontend.config import io.neoterm.component.color.DefaultColorScheme diff --git a/app/src/main/java/io/neoterm/frontend/preference/NeoPermission.kt b/app/src/main/java/io/neoterm/frontend/config/NeoPermission.kt similarity index 97% rename from app/src/main/java/io/neoterm/frontend/preference/NeoPermission.kt rename to app/src/main/java/io/neoterm/frontend/config/NeoPermission.kt index 381c80d..661fdb4 100644 --- a/app/src/main/java/io/neoterm/frontend/preference/NeoPermission.kt +++ b/app/src/main/java/io/neoterm/frontend/config/NeoPermission.kt @@ -1,4 +1,4 @@ -package io.neoterm.frontend.preference +package io.neoterm.frontend.config import android.Manifest import android.app.Activity diff --git a/app/src/main/java/io/neoterm/frontend/preference/NeoPreference.kt b/app/src/main/java/io/neoterm/frontend/config/NeoPreference.kt similarity index 95% rename from app/src/main/java/io/neoterm/frontend/preference/NeoPreference.kt rename to app/src/main/java/io/neoterm/frontend/config/NeoPreference.kt index 1507b71..005e564 100644 --- a/app/src/main/java/io/neoterm/frontend/preference/NeoPreference.kt +++ b/app/src/main/java/io/neoterm/frontend/config/NeoPreference.kt @@ -1,4 +1,4 @@ -package io.neoterm.frontend.preference +package io.neoterm.frontend.config import android.content.Context import android.content.SharedPreferences @@ -109,7 +109,7 @@ object NeoPreference { fun storeCurrentSession(session: TerminalSession) { preference!!.edit() - .putString(NeoPreference.KEY_CURRENT_SESSION, session.mHandle) + .putString(KEY_CURRENT_SESSION, session.mHandle) .apply() } @@ -179,7 +179,7 @@ object NeoPreference { } fun getFontSize(): Int { - return loadInt(NeoPreference.KEY_FONT_SIZE, + return loadInt(KEY_FONT_SIZE, DefaultPreference.fontSize) } @@ -224,22 +224,22 @@ object NeoPreference { } fun isExplicitExtraKeysWeightEnabled() :Boolean { - return NeoPreference.loadBoolean(R.string.key_ui_eks_weight_explicit, + return loadBoolean(R.string.key_ui_eks_weight_explicit, DefaultPreference.enableExplicitExtraKeysWeight) } fun isFullScreenEnabled() : Boolean { - return NeoPreference.loadBoolean(R.string.key_ui_fullscreen, + return loadBoolean(R.string.key_ui_fullscreen, DefaultPreference.enableFullScreen) } fun isHideToolbarEnabled() :Boolean { - return NeoPreference.loadBoolean(R.string.key_ui_hide_toolbar, + return loadBoolean(R.string.key_ui_hide_toolbar, DefaultPreference.enableAutoHideToolbar) } fun isNextTabEnabled() :Boolean { - return NeoPreference.loadBoolean(R.string.key_ui_next_tab_anim, + return loadBoolean(R.string.key_ui_next_tab_anim, DefaultPreference.enableSwitchNextTab) } diff --git a/app/src/main/java/io/neoterm/frontend/config/NeoTermPath.kt b/app/src/main/java/io/neoterm/frontend/config/NeoTermPath.kt new file mode 100644 index 0000000..02084c7 --- /dev/null +++ b/app/src/main/java/io/neoterm/frontend/config/NeoTermPath.kt @@ -0,0 +1,38 @@ +package io.neoterm.frontend.config + +import android.annotation.SuppressLint + +/** + * @author kiva + */ +object NeoTermPath { + @SuppressLint("SdCardPath") + const val ROOT_PATH = "/data/data/io.neoterm/files" + const val USR_PATH = "${ROOT_PATH}/usr" + const val HOME_PATH = "${ROOT_PATH}/home" + const val APT_BIN_PATH = "${USR_PATH}/bin/apt" + const val LIB_PATH = "${USR_PATH}/lib" + + const val CUSTOM_PATH = "${HOME_PATH}/.neoterm" + const val NEOTERM_SHELL_PATH = "${CUSTOM_PATH}/shell" + const val EKS_PATH = "${CUSTOM_PATH}/eks" + const val EKS_DEFAULT_FILE = "${EKS_PATH}/default.nl" + const val FONT_PATH = "${CUSTOM_PATH}/font" + const val COLORS_PATH = "${CUSTOM_PATH}/color" + const val USER_SCRIPT_PATH = "${CUSTOM_PATH}/script" + + const val SOURCE_FILE = "${USR_PATH}/etc/apt/sources.list" + const val PACKAGE_LIST_DIR = "${USR_PATH}/var/lib/apt/lists" + + const val SOURCE = "http://neoterm.studio" + + val DEFAULT_SOURCE: String + val SERVER_BASE_URL: String + val SERVER_BOOT_URL: String + + init { + DEFAULT_SOURCE = SOURCE + SERVER_BASE_URL = DEFAULT_SOURCE + SERVER_BOOT_URL = "${SERVER_BASE_URL}/boot" + } +} \ No newline at end of file diff --git a/app/src/main/java/io/neoterm/frontend/preference/NeoTermPath.kt b/app/src/main/java/io/neoterm/frontend/preference/NeoTermPath.kt deleted file mode 100644 index ad2a8ba..0000000 --- a/app/src/main/java/io/neoterm/frontend/preference/NeoTermPath.kt +++ /dev/null @@ -1,38 +0,0 @@ -package io.neoterm.frontend.preference - -import android.annotation.SuppressLint - -/** - * @author kiva - */ -object NeoTermPath { - @SuppressLint("SdCardPath") - const val ROOT_PATH = "/data/data/io.neoterm/files" - const val USR_PATH = "$ROOT_PATH/usr" - const val HOME_PATH = "$ROOT_PATH/home" - const val APT_BIN_PATH = "$USR_PATH/bin/apt" - const val LIB_PATH = "$USR_PATH/lib" - - const val CUSTOM_PATH = "$HOME_PATH/.neoterm" - const val NEOTERM_SHELL_PATH = "$CUSTOM_PATH/shell" - const val EKS_PATH = "$CUSTOM_PATH/eks" - const val EKS_DEFAULT_FILE = "$EKS_PATH/default.nl" - const val FONT_PATH = "$CUSTOM_PATH/font" - const val COLORS_PATH = "$CUSTOM_PATH/color" - const val USER_SCRIPT_PATH = "$CUSTOM_PATH/script" - - const val SOURCE_FILE = "$USR_PATH/etc/apt/sources.list" - const val PACKAGE_LIST_DIR = "$USR_PATH/var/lib/apt/lists" - - const val SOURCE = "http://neoterm.studio" - - val DEFAULT_SOURCE: String - val SERVER_BASE_URL: String - val SERVER_BOOT_URL: String - - init { - DEFAULT_SOURCE = SOURCE - SERVER_BASE_URL = DEFAULT_SOURCE - SERVER_BOOT_URL = "$SERVER_BASE_URL/boot" - } -} \ No newline at end of file diff --git a/app/src/main/java/io/neoterm/frontend/session/shell/ShellProfile.kt b/app/src/main/java/io/neoterm/frontend/session/shell/ShellProfile.kt index f31c96c..e01a50f 100644 --- a/app/src/main/java/io/neoterm/frontend/session/shell/ShellProfile.kt +++ b/app/src/main/java/io/neoterm/frontend/session/shell/ShellProfile.kt @@ -3,8 +3,8 @@ package io.neoterm.frontend.session.shell import io.neoterm.component.color.ColorSchemeComponent import io.neoterm.component.font.FontComponent import io.neoterm.frontend.component.ComponentManager -import io.neoterm.frontend.preference.DefaultPreference -import io.neoterm.frontend.preference.NeoPreference +import io.neoterm.frontend.config.DefaultPreference +import io.neoterm.frontend.config.NeoPreference /** * @author kiva diff --git a/app/src/main/java/io/neoterm/frontend/session/shell/ShellTermSession.kt b/app/src/main/java/io/neoterm/frontend/session/shell/ShellTermSession.kt index bedf48f..34cdf1e 100644 --- a/app/src/main/java/io/neoterm/frontend/session/shell/ShellTermSession.kt +++ b/app/src/main/java/io/neoterm/frontend/session/shell/ShellTermSession.kt @@ -4,8 +4,8 @@ import android.content.Context import io.neoterm.App import io.neoterm.R import io.neoterm.backend.TerminalSession -import io.neoterm.frontend.preference.NeoPreference -import io.neoterm.frontend.preference.NeoTermPath +import io.neoterm.frontend.config.NeoPreference +import io.neoterm.frontend.config.NeoTermPath import io.neoterm.frontend.session.shell.client.TermSessionCallback import java.io.File diff --git a/app/src/main/java/io/neoterm/frontend/session/shell/client/BasicViewClient.kt b/app/src/main/java/io/neoterm/frontend/session/shell/client/BasicViewClient.kt index 8045e89..36d3fe1 100644 --- a/app/src/main/java/io/neoterm/frontend/session/shell/client/BasicViewClient.kt +++ b/app/src/main/java/io/neoterm/frontend/session/shell/client/BasicViewClient.kt @@ -5,7 +5,7 @@ import android.view.KeyEvent import android.view.MotionEvent import android.view.inputmethod.InputMethodManager import io.neoterm.backend.TerminalSession -import io.neoterm.frontend.preference.NeoPreference +import io.neoterm.frontend.config.NeoPreference import io.neoterm.frontend.terminal.TerminalView import io.neoterm.frontend.terminal.TerminalViewClient diff --git a/app/src/main/java/io/neoterm/frontend/session/shell/client/TermSessionCallback.kt b/app/src/main/java/io/neoterm/frontend/session/shell/client/TermSessionCallback.kt index 5b9a082..3509b48 100644 --- a/app/src/main/java/io/neoterm/frontend/session/shell/client/TermSessionCallback.kt +++ b/app/src/main/java/io/neoterm/frontend/session/shell/client/TermSessionCallback.kt @@ -3,12 +3,7 @@ package io.neoterm.frontend.session.shell.client import android.content.ClipData import android.content.ClipboardManager import android.content.Context -import android.media.SoundPool -import android.os.Vibrator -import io.neoterm.R import io.neoterm.backend.TerminalSession -import io.neoterm.frontend.preference.DefaultPreference -import io.neoterm.frontend.preference.NeoPreference import io.neoterm.frontend.session.shell.ShellTermSession /** diff --git a/app/src/main/java/io/neoterm/frontend/session/shell/client/TermViewClient.kt b/app/src/main/java/io/neoterm/frontend/session/shell/client/TermViewClient.kt index fe576ad..650fcc8 100644 --- a/app/src/main/java/io/neoterm/frontend/session/shell/client/TermViewClient.kt +++ b/app/src/main/java/io/neoterm/frontend/session/shell/client/TermViewClient.kt @@ -7,13 +7,11 @@ import android.view.KeyEvent import android.view.MotionEvent import android.view.View import android.view.inputmethod.InputMethodManager -import io.neoterm.R import io.neoterm.backend.KeyHandler import io.neoterm.backend.TerminalSession import io.neoterm.component.eks.ExtraKeysComponent import io.neoterm.frontend.component.ComponentManager -import io.neoterm.frontend.preference.DefaultPreference -import io.neoterm.frontend.preference.NeoPreference +import io.neoterm.frontend.config.NeoPreference import io.neoterm.frontend.session.shell.ShellTermSession import io.neoterm.frontend.terminal.TerminalViewClient diff --git a/app/src/main/java/io/neoterm/frontend/terminal/eks/ExtraKeysView.kt b/app/src/main/java/io/neoterm/frontend/terminal/eks/ExtraKeysView.kt index bdcf103..c77ff2a 100755 --- a/app/src/main/java/io/neoterm/frontend/terminal/eks/ExtraKeysView.kt +++ b/app/src/main/java/io/neoterm/frontend/terminal/eks/ExtraKeysView.kt @@ -8,9 +8,8 @@ import android.widget.GridLayout import android.widget.LinearLayout import io.neoterm.R import io.neoterm.component.eks.NeoExtraKey -import io.neoterm.frontend.preference.DefaultPreference -import io.neoterm.frontend.preference.NeoPreference -import io.neoterm.frontend.preference.NeoTermPath +import io.neoterm.frontend.config.NeoPreference +import io.neoterm.frontend.config.NeoTermPath import io.neoterm.frontend.session.shell.client.event.ToggleImeEvent import io.neoterm.frontend.terminal.eks.button.ControlButton import io.neoterm.frontend.terminal.eks.button.IExtraButton diff --git a/app/src/main/java/io/neoterm/services/NeoTermEmbeddedService.kt b/app/src/main/java/io/neoterm/services/NeoTermEmbeddedService.kt index cdf3db5..4ff018c 100644 --- a/app/src/main/java/io/neoterm/services/NeoTermEmbeddedService.kt +++ b/app/src/main/java/io/neoterm/services/NeoTermEmbeddedService.kt @@ -20,7 +20,7 @@ import android.widget.FrameLayout import io.neoterm.R import io.neoterm.backend.TerminalSession -import io.neoterm.frontend.preference.NeoPreference +import io.neoterm.frontend.config.NeoPreference import io.neoterm.frontend.session.shell.ShellParameter import io.neoterm.frontend.terminal.TerminalView diff --git a/app/src/main/java/io/neoterm/ui/customize/BaseCustomizeActivity.kt b/app/src/main/java/io/neoterm/ui/customize/BaseCustomizeActivity.kt index 5f6200b..4986848 100644 --- a/app/src/main/java/io/neoterm/ui/customize/BaseCustomizeActivity.kt +++ b/app/src/main/java/io/neoterm/ui/customize/BaseCustomizeActivity.kt @@ -6,7 +6,7 @@ import android.support.v7.widget.Toolbar import android.view.MenuItem import io.neoterm.R import io.neoterm.backend.TerminalSession -import io.neoterm.frontend.preference.NeoTermPath +import io.neoterm.frontend.config.NeoTermPath import io.neoterm.frontend.session.shell.ShellParameter import io.neoterm.frontend.session.shell.client.BasicSessionCallback import io.neoterm.frontend.session.shell.client.BasicViewClient diff --git a/app/src/main/java/io/neoterm/ui/customize/CustomizeActivity.kt b/app/src/main/java/io/neoterm/ui/customize/CustomizeActivity.kt index f9276e6..4fc6269 100644 --- a/app/src/main/java/io/neoterm/ui/customize/CustomizeActivity.kt +++ b/app/src/main/java/io/neoterm/ui/customize/CustomizeActivity.kt @@ -1,7 +1,6 @@ package io.neoterm.ui.customize import android.app.Activity -import android.app.AlertDialog import android.content.Intent import android.os.Bundle import android.view.MenuItem @@ -14,7 +13,7 @@ import io.neoterm.R import io.neoterm.component.color.ColorSchemeComponent import io.neoterm.component.font.FontComponent import io.neoterm.frontend.component.ComponentManager -import io.neoterm.frontend.preference.NeoTermPath +import io.neoterm.frontend.config.NeoTermPath import io.neoterm.utils.FileUtils import io.neoterm.utils.MediaUtils import java.io.File diff --git a/app/src/main/java/io/neoterm/ui/pm/PackageManagerActivity.kt b/app/src/main/java/io/neoterm/ui/pm/PackageManagerActivity.kt index 61f53be..8bee53b 100644 --- a/app/src/main/java/io/neoterm/ui/pm/PackageManagerActivity.kt +++ b/app/src/main/java/io/neoterm/ui/pm/PackageManagerActivity.kt @@ -20,8 +20,8 @@ import io.neoterm.component.pm.SourceManager import io.neoterm.component.pm.SourceUtils import io.neoterm.frontend.component.ComponentManager import io.neoterm.frontend.floating.TerminalDialog -import io.neoterm.frontend.preference.NeoPreference -import io.neoterm.frontend.preference.NeoTermPath +import io.neoterm.frontend.config.NeoPreference +import io.neoterm.frontend.config.NeoTermPath import io.neoterm.ui.pm.adapter.PackageAdapter import io.neoterm.ui.pm.model.PackageModel import io.neoterm.utils.PackageUtils diff --git a/app/src/main/java/io/neoterm/ui/settings/GeneralSettingsActivity.kt b/app/src/main/java/io/neoterm/ui/settings/GeneralSettingsActivity.kt index cda634c..6aa4048 100644 --- a/app/src/main/java/io/neoterm/ui/settings/GeneralSettingsActivity.kt +++ b/app/src/main/java/io/neoterm/ui/settings/GeneralSettingsActivity.kt @@ -4,8 +4,7 @@ import android.app.AlertDialog import android.os.Bundle import android.view.MenuItem import io.neoterm.R -import io.neoterm.frontend.preference.DefaultPreference -import io.neoterm.frontend.preference.NeoPreference +import io.neoterm.frontend.config.NeoPreference import io.neoterm.utils.PackageUtils /** diff --git a/app/src/main/java/io/neoterm/ui/term/NeoTermActivity.kt b/app/src/main/java/io/neoterm/ui/term/NeoTermActivity.kt index 5b95457..09ffd78 100644 --- a/app/src/main/java/io/neoterm/ui/term/NeoTermActivity.kt +++ b/app/src/main/java/io/neoterm/ui/term/NeoTermActivity.kt @@ -21,12 +21,11 @@ import io.neoterm.App import io.neoterm.R import io.neoterm.backend.TerminalSession import io.neoterm.component.setup.BaseFileInstaller -import io.neoterm.frontend.preference.DefaultPreference import io.neoterm.frontend.session.shell.client.TermSessionCallback import io.neoterm.frontend.session.shell.client.TermViewClient import io.neoterm.frontend.session.shell.client.event.* -import io.neoterm.frontend.preference.NeoPermission -import io.neoterm.frontend.preference.NeoPreference +import io.neoterm.frontend.config.NeoPermission +import io.neoterm.frontend.config.NeoPreference import io.neoterm.frontend.session.shell.ShellParameter import io.neoterm.frontend.session.xorg.XParameter import io.neoterm.frontend.session.xorg.XSession diff --git a/app/src/main/java/io/neoterm/ui/term/NeoTermRemoteInterface.kt b/app/src/main/java/io/neoterm/ui/term/NeoTermRemoteInterface.kt index f3dbf39..c149ee3 100644 --- a/app/src/main/java/io/neoterm/ui/term/NeoTermRemoteInterface.kt +++ b/app/src/main/java/io/neoterm/ui/term/NeoTermRemoteInterface.kt @@ -16,7 +16,7 @@ import io.neoterm.component.script.UserScript import io.neoterm.component.script.UserScriptComponent import io.neoterm.frontend.session.shell.client.TermSessionCallback import io.neoterm.frontend.component.ComponentManager -import io.neoterm.frontend.preference.NeoPreference +import io.neoterm.frontend.config.NeoPreference import io.neoterm.frontend.session.shell.ShellParameter import io.neoterm.services.NeoTermService import io.neoterm.utils.MediaUtils diff --git a/app/src/main/java/io/neoterm/utils/PackageUtils.kt b/app/src/main/java/io/neoterm/utils/PackageUtils.kt index 7154f69..324af17 100644 --- a/app/src/main/java/io/neoterm/utils/PackageUtils.kt +++ b/app/src/main/java/io/neoterm/utils/PackageUtils.kt @@ -4,8 +4,8 @@ import android.content.Context import io.neoterm.R import io.neoterm.backend.TerminalSession import io.neoterm.frontend.floating.TerminalDialog -import io.neoterm.frontend.preference.NeoPreference -import io.neoterm.frontend.preference.NeoTermPath +import io.neoterm.frontend.config.NeoPreference +import io.neoterm.frontend.config.NeoTermPath import java.io.File /** diff --git a/app/src/main/java/io/neoterm/utils/TerminalUtils.kt b/app/src/main/java/io/neoterm/utils/TerminalUtils.kt index d28c4af..1fce78e 100644 --- a/app/src/main/java/io/neoterm/utils/TerminalUtils.kt +++ b/app/src/main/java/io/neoterm/utils/TerminalUtils.kt @@ -2,14 +2,12 @@ package io.neoterm.utils import android.app.Activity import android.content.Context -import io.neoterm.R import io.neoterm.backend.TerminalSession import io.neoterm.component.font.FontComponent import io.neoterm.component.session.SessionComponent import io.neoterm.frontend.component.ComponentManager -import io.neoterm.frontend.preference.NeoPreference +import io.neoterm.frontend.config.NeoPreference import io.neoterm.frontend.session.shell.ShellParameter -import io.neoterm.frontend.session.shell.ShellTermSession import io.neoterm.frontend.session.xorg.XParameter import io.neoterm.frontend.session.xorg.XSession import io.neoterm.frontend.terminal.TerminalView