Skip to content

Commit 6fd3582

Browse files
committed
v2.0.5
1 parent c9e6148 commit 6fd3582

File tree

10 files changed

+14
-13
lines changed

10 files changed

+14
-13
lines changed

app/build.gradle

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ android {
1111
minSdkVersion rootProject.ext.android.MIN_SDK_VERSION
1212
targetSdkVersion rootProject.ext.android.TARGET_SDK_VERSION
1313
versionCode 37
14-
versionName "2.1.0"
14+
versionName "2.0.5"
1515
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
1616
resConfigs "zh-rCN", "zh-rTW"
1717
externalNativeBuild {
@@ -35,9 +35,6 @@ android {
3535
proguardFile 'app/proguard-rules.pro'
3636
versionNameSuffix "-${getGitHeadRefsSuffix()}"
3737
}
38-
debug {
39-
versionNameSuffix "-snapshot-${getGitHeadRefsSuffix()}"
40-
}
4138
}
4239
externalNativeBuild {
4340
cmake {

app/src/main/java/io/neoterm/component/pm/SourceHelper.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ object SourceHelper {
2121
val content = buildString {
2222
this.append("# Generated by NeoTerm-Preference\n")
2323
sourceManager.getEnabledSources()
24-
.joinTo(this, "\n") { "deb ${it.url} ${it.repo}\n" }
24+
.joinTo(this, "\n") { "deb [trusted=yes] ${it.url} ${it.repo}\n" }
2525
}
2626
FileUtils.writeFile(sourceFile, content.toByteArray())
2727
}

app/src/main/java/io/neoterm/frontend/config/DefaultValues.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ object DefaultValues {
1919
const val enableSpecialVolumeKeys = false
2020
const val enableWordBasedIme = false
2121

22-
const val loginShell = "sh"
22+
const val loginShell = "bash"
2323
const val initialCommand = ""
2424
const val defaultFont = "SourceCodePro"
2525
}

app/src/main/java/io/neoterm/frontend/config/NeoTermPath.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ object NeoTermPath {
2525
const val SOURCE_FILE = "$USR_PATH/etc/apt/sources.list"
2626
const val PACKAGE_LIST_DIR = "$USR_PATH/var/lib/apt/lists"
2727

28-
private const val SOURCE = "http://120.79.193.152/neoterm"
28+
private const val SOURCE = "https://raw.githubusercontent.com/NeoTerm/NeoTerm-repo/main"
2929

3030
val DEFAULT_MAIN_PACKAGE_SOURCE: String
3131

app/src/main/java/io/neoterm/frontend/session/shell/ShellTermSession.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ open class ShellTermSession private constructor(shellPath: String, cwd: String,
182182
val androidRootEnv = "ANDROID_ROOT=" + System.getenv("ANDROID_ROOT")
183183
val androidDataEnv = "ANDROID_DATA=" + System.getenv("ANDROID_DATA")
184184
val externalStorageEnv = "EXTERNAL_STORAGE=" + System.getenv("EXTERNAL_STORAGE")
185+
val colorterm = "COLORTERM=truecolor"
185186

186187
// PY Trade: Some programs support NeoTerm in a special way.
187188
val neotermIdEnv = "__NEOTERM=1"
@@ -192,7 +193,7 @@ open class ShellTermSession private constructor(shellPath: String, cwd: String,
192193
val pathEnv = "PATH=" + System.getenv("PATH")
193194
arrayOf(termEnv, homeEnv, androidRootEnv, androidDataEnv,
194195
externalStorageEnv, pathEnv, neotermIdEnv, prefixEnv,
195-
originLdEnv, originPathEnv)
196+
originLdEnv, originPathEnv, colorterm)
196197

197198
} else {
198199
val ps1Env = "PS1=$ "
@@ -213,7 +214,7 @@ open class ShellTermSession private constructor(shellPath: String, cwd: String,
213214
arrayOf(termEnv, homeEnv, ps1Env, ldEnv, langEnv, pathEnv, pwdEnv,
214215
androidRootEnv, androidDataEnv, externalStorageEnv,
215216
tmpdirEnv, neotermIdEnv, originPathEnv, originLdEnv,
216-
ldPreloadEnv, prefixEnv)
217+
ldPreloadEnv, prefixEnv, colorterm)
217218
}
218219
.filter { it.isNotEmpty() }
219220
.toTypedArray()

app/src/main/java/io/neoterm/ui/customize/BaseCustomizeActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ open class BaseCustomizeActivity : AppCompatActivity() {
4141

4242
val script = resources.getStringArray(R.array.custom_preview_script_colors)
4343
val parameter = ShellParameter()
44-
.executablePath("${NeoTermPath.USR_PATH}/bin/applets/echo")
44+
.executablePath("${NeoTermPath.USR_PATH}/bin/echo")
4545
.arguments(arrayOf("echo", "-e", *script))
4646
.callback(sessionCallback)
4747
.systemShell(false)

app/src/main/java/io/neoterm/ui/term/NeoTermActivity.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ import io.neoterm.R
2525
import io.neoterm.backend.TerminalSession
2626
import io.neoterm.component.profile.ProfileComponent
2727
import io.neoterm.frontend.component.ComponentManager
28+
import io.neoterm.frontend.config.DefaultValues
2829
import io.neoterm.frontend.config.NeoPermission
2930
import io.neoterm.frontend.config.NeoPreference
31+
import io.neoterm.frontend.config.NeoTermPath
3032
import io.neoterm.frontend.session.shell.ShellParameter
3133
import io.neoterm.frontend.session.shell.ShellProfile
3234
import io.neoterm.frontend.session.shell.client.TermSessionCallback
@@ -179,7 +181,7 @@ class NeoTermActivity : AppCompatActivity(), ServiceConnection, SharedPreference
179181
true
180182
}
181183
R.id.menu_item_new_x_session -> {
182-
addXSession();
184+
addXSession()
183185
true
184186
}
185187
else -> super.onOptionsItemSelected(item)

app/src/main/res/menu/menu_main.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
<item
3131
android:id="@+id/menu_item_new_x_session"
3232
android:title="@string/new_x_session"
33+
android:visible="false"
3334
app:showAsAction="never" />
3435
</menu>
3536
</item>

app/src/main/res/values/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168
<string name="dangerous_zone">Dangerous Zone</string>
169169
<string name="reset_app_warning">You will have to re-setup later, confirm?</string>
170170

171-
<string name="default_source_url" translatable="false">http://120.79.193.152/neoterm</string>
171+
<string name="default_source_url" translatable="false">https://raw.githubusercontent.com/NeoTerm/NeoTerm-repo/main</string>
172172

173173
<string-array name="pref_general_shell_entries" translatable="false">
174174
<item>sh</item>

app/src/main/res/xml/setting_general.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
33
<ListPreference
4-
android:defaultValue="sh"
4+
android:defaultValue="bash"
55
android:entries="@array/pref_general_shell_entries"
66
android:entryValues="@array/pref_general_shell_entries"
77
android:key="@string/key_general_shell"

0 commit comments

Comments
 (0)