Skip to content

Commit

Permalink
2.6.0版本发布,安卓9支持,稳定性改进,翻译改进。
Browse files Browse the repository at this point in the history
  • Loading branch information
xausky committed Sep 16, 2018
1 parent ad5bcc1 commit 6abaacc
Show file tree
Hide file tree
Showing 10 changed files with 159 additions and 131 deletions.
12 changes: 6 additions & 6 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ android {
applicationId "io.github.xausky.unitymodmanager"
minSdkVersion 19
targetSdkVersion 23
versionCode 252
versionName "2.5.2"
versionCode 260
versionName "2.6.0"
ndk{
abiFilters "armeabi-v7a","x86"
}
Expand Down Expand Up @@ -53,13 +53,13 @@ dependencies {
implementation 'com.android.support:cardview-v7:27.1.1'

implementation 'com.hzy:libp7zip:1.5.0' //https://github.com/hzy3774/AndroidP7zip
implementation 'com.github.topjohnwu:libsu:1.1.1' //https://github.com/topjohnwu/libsu
implementation 'com.github.topjohnwu:libsu:2.0.2' //https://github.com/topjohnwu/libsu
implementation 'com.daimajia.slider:library:1.1.5' //https://github.com/daimajia/AndroidImageSlider
implementation 'com.github.xausky:VirtualXposed:dde76419bf' //https://github.com/xausky/VirtualXposed
implementation 'com.github.xausky:VirtualXposed:32f1085f5a' //https://github.com/xausky/VirtualXposed
implementation 'com.github.medyo:android-about-page:1.2.4' //https://github.com/medyo/android-about-page
implementation 'com.github.bartwell:ExFilePicker:0c5a7c83ae' //https://github.com/bartwell/ExFilePicker
implementation 'com.github.xausky:CheckVersionLib:17a5d19c40' //https://github.com/xausky/CheckVersionLib

implementation 'com.crashlytics.sdk.android:answers:1.4.2'
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.4'
implementation 'com.crashlytics.sdk.android:answers:1.4.3'
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.5'
}
4 changes: 3 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="io.github.xausky.unitymodmanager">
<uses-sdk tools:overrideLibrary="com.lody.virtual"/>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
<application
android:name=".MainApplication"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@

import android.app.Application;
import android.content.Context;
import android.os.Build;

import com.crashlytics.android.Crashlytics;
import com.lody.virtual.client.NativeEngine;
import com.lody.virtual.client.core.VirtualCore;
import com.lody.virtual.client.stub.VASettings;

import io.fabric.sdk.android.Fabric;

Expand All @@ -18,6 +21,11 @@ public class MainApplication extends Application {
@Override
protected void attachBaseContext(Context base) {
super.attachBaseContext(base);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
NativeEngine.disableJit(Build.VERSION.SDK_INT);
}
VASettings.ENABLE_IO_REDIRECT = true;
VASettings.ENABLE_INNER_SHORTCUT = false;
try {
VirtualCore.get().startup(base);
} catch (Throwable throwable) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,9 @@ private void process(final String path, final String name, final Iterator<String
result = ModUtils.Standardization(sourceFile, targetFile);
}
if(result >= 0){
if(result == 0){
Toast.makeText(context, String.format(context.getString(R.string.valid_files_zero), name), Toast.LENGTH_LONG).show();
}
mods.add(new Mod(name, false, Integer.MAX_VALUE, result, targetFile.getAbsolutePath(), null));
notifyDataSetChanged();
if (iterator.hasNext()) {
Expand All @@ -215,7 +218,7 @@ private void process(final String path, final String name, final Iterator<String
}
switch (result) {
case RESULT_STATE_INTERNAL_ERROR:
Toast.makeText(context, String.format("模组[%s]解压错误,请确认模组文件未损坏。", name), Toast.LENGTH_LONG).show();
Toast.makeText(context, String.format(context.getString(R.string.mod_decompression_error), name), Toast.LENGTH_LONG).show();
try {
FileUtils.deleteDirectory(targetFile);
} catch (Exception e) {
Expand Down
33 changes: 18 additions & 15 deletions app/src/main/res/values-ja-rJP/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,35 @@
<!--Generated by crowdin.com-->
<resources>
<string name="app_name">Unity Mod Manager</string>
<string name="menu_launch_game">Launch Game</string>
<string name="nav_home">Home</string>
<string name="menu_launch_game">カメラを起動</string>
<string name="nav_home">ホーム</string>
<string name="nav_mod">Mod</string>
<string name="nav_attach">Attach</string>
<string name="nav_setting">Settings</string>
<string name="nav_system">System</string>
<string name="nav_info">About</string>
<string name="nav_attach">添付</string>
<string name="nav_setting">設定</string>
<string name="nav_system">システム</string>
<string name="nav_info">について</string>
<string name="info_context_text">
This program is open source under the GPL agreement at Github and should not be used for commercial purposes.\n
The birth of this program is inseparable from the following open source projects:\n
UnityStudio, miniz, VirtualXposed, AndroidP7zip, ExFilePicker, android-about-page, CheckVersionLib, AndroidImageSlider. \n
Thanks to the following translator:\n
Traditional Chinese - 栗子\n
Russian - onemeshnig
Russian - onemeshnig\n
Korean - Bebridge
</string>
<string name="home_summary_context">
Enable mod: %d\nInstalled mod: %d\nInstalled attach: %d\nVisible applications: %d\nApplications in VirtualApp: %d
</string>
<string name="home_latest_version">Latest Version: %s</string>
<string name="home_latest_version_default">Latest Version: .....</string>
<string name="home_current_version">Current Version: %s</string>
<string name="home_latest_version">最新バージョン: %s</string>
<string name="home_latest_version_default">最新バージョン: .....</string>
<string name="home_current_version">現在のバージョン: %s</string>
<string name="home_client_uninstalled">Click Install Client</string>
<string name="home_client_installed">Client version:%s</string>
<string name="home_client_installed">クライアントのバージョン: %s</string>
<string name="client_list_item_icon">icon</string>
<string name="progress_dialog_processing">Processing</string>
<string name="confirm">Confirm</string>
<string name="cancel">Cancel</string>
<string name="prompt">Prompt</string>
<string name="progress_dialog_processing">処理中</string>
<string name="confirm">確定する</string>
<string name="cancel">キャンセル</string>
<string name="prompt">プロンプト</string>
<string name="attach_delete_confirm_message">Are you sure you want to delete [%s] attach?</string>
<string name="visibility_delete_confirm_message">Are you sure you want to remove [%s] visibility?</string>
<string name="attach_delete_fail">Failed to delete attach.</string>
Expand Down Expand Up @@ -110,4 +111,6 @@
<string name="mod_info_conflict">Conflict files: %s</string>
<string name="show_conflict_info_title">Display mod file conflict information</string>
<string name="show_conflict_info_summary">Display mod file conflict information for module authors to debug.</string>
<string name="valid_files_zero">The number of valid files in mod [%s] is zero. Please make sure the mapping is generated correctly.</string>
<string name="mod_decompression_error">Mod [%s] decompression error, please confirm that the module file is not damaged.</string>
</resources>
Loading

0 comments on commit 6abaacc

Please sign in to comment.