Skip to content

Commit

Permalink
Bump version to 2.4 (106)
Browse files Browse the repository at this point in the history
  • Loading branch information
krlvm committed Jun 4, 2022
1 parent bf97cfe commit ce6fb27
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ android {
applicationId 'io.github.krlvm.powertunnel.android'
minSdkVersion 16
targetSdkVersion 30
versionCode 105
versionName "2.3.1"
versionCode 106
versionName "2.4"
multiDexEnabled true

externalNativeBuild {
Expand Down
Binary file modified app/libs/core-2.3-all.jar
Binary file not shown.
Binary file modified app/src/main/assets/plugins/Hosts-Android.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ public class ConfigEditActivity extends AppCompatActivity {
private static final String LOG_TAG = "ConfigEdit";
private String fileName;

private long tBackPressed;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Expand All @@ -63,6 +65,16 @@ protected void onCreate(Bundle savedInstanceState) {
reloadContents();
}

@Override
public void onBackPressed() {
if (System.currentTimeMillis() - tBackPressed > 500L) {
tBackPressed = System.currentTimeMillis();
Toast.makeText(this, R.string.plugins_activity_toast_back, Toast.LENGTH_SHORT).show();
return;
}
super.onBackPressed();
}

@Override
public boolean onCreateOptionsMenu(@NonNull Menu menu) {
getMenuInflater().inflate(R.menu.menu_config_edit, menu);
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/config_edit_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
android:selectAllOnFocus="false"
android:singleLine="false"
android:textSize="14sp"
android:padding="4dp"
android:typeface="monospace" />


Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-ru/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -166,4 +166,5 @@
<string name="toast_config_init_error">Ошибка при инициализации файла конфигурации</string>
<string name="toast_config_editor_saved_error">Ошибка при сохранении файла конфигурации</string>
<string name="plugins_activity_tip">Удерживайте значок настроек для редактирования дополнительной конфигурации</string>
<string name="plugins_activity_toast_back">Нажмите еще раз, чтобы выйти без сохранения</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@
<string name="action_plugin_settings_reset">Reset configuration</string>
<string name="toast_permission_for_external_configs">Please, grant the permission to save configurations to Documents folder</string>
<string name="plugins_activity_tip">Hold the gear icon to view additional configuration files</string>
<string name="plugins_activity_toast_back">Tap again to quit without saving</string>

<!-- Logs Activity -->
<string name="title_activity_logs">Log Viewer</string>
Expand Down
14 changes: 14 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/106.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
New features:
- In-app editor for plugin configuration files

Improvements:
- Disabled Quick Tile on lockscreen
- Disabled vibration for sticky notifications

Bugfixes:
- Fixed an issue when LibertyTunnel could not generate PAC file properly
- Fixed an issue when LibertyTunnel went in global mode after enabling mirror

Release notes:
- Preinstalled Firewall plugin
- Preinstalled Hosts plugin

0 comments on commit ce6fb27

Please sign in to comment.