Minor fix

This commit is contained in:
yangzhi 2023-06-27 07:56:28 +08:00
parent a026f8cfe4
commit acca0f3d1c
12 changed files with 39 additions and 34 deletions

View File

@ -10,13 +10,16 @@ android {
defaultConfig { defaultConfig {
applicationId "com.zane.smapiinstaller" applicationId "com.zane.smapiinstaller"
minSdkVersion 21 minSdkVersion 21
//noinspection ExpiringTargetSdkVersion //noinspection ExpiredTargetSdkVersion
targetSdkVersion 30 targetSdkVersion 30
versionCode 74 versionCode 75
versionName "3.18.2.2" versionName "3.18.3.1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled true multiDexEnabled true
lintOptions {
abortOnError false
}
} }
buildTypes { buildTypes {

View File

@ -188,18 +188,20 @@ public class ZipUtils {
taskBundle.join(); taskBundle.join();
progressCallback.accept(100); progressCallback.accept(100);
} }
for (String resourcePack : resourcePacks) { if(resourcePacks != null) {
try (ZipInput input = new ZipInput(resourcePack)) { for (String resourcePack : resourcePacks) {
for (ZioEntry inEntry : input.entries.values()) { try (ZipInput input = new ZipInput(resourcePack)) {
if (inEntry.getName().startsWith("assets/Content")) { for (ZioEntry inEntry : input.entries.values()) {
ZioEntry zioEntry = new ZioEntry(inEntry.getName()); if (inEntry.getName().startsWith("assets/Content")) {
zioEntry.setCompression(inEntry.getCompression()); ZioEntry zioEntry = new ZioEntry(inEntry.getName());
try (InputStream inputStream = inEntry.getInputStream()) { zioEntry.setCompression(inEntry.getCompression());
ByteStreams.copy(inputStream, zioEntry.getOutputStream()); try (InputStream inputStream = inEntry.getInputStream()) {
} catch (IOException e) { ByteStreams.copy(inputStream, zioEntry.getOutputStream());
throw new RuntimeException(e); } catch (IOException e) {
throw new RuntimeException(e);
}
zipOutput.write(zioEntry);
} }
zipOutput.write(zioEntry);
} }
} }
} }

View File

@ -61,8 +61,8 @@
<string name="settings_verbose_logging">Registro detallado</string> <string name="settings_verbose_logging">Registro detallado</string>
<string name="signing_package">Firmando paquete deinstalación</string> <string name="signing_package">Firmando paquete deinstalación</string>
<string name="smapi_game_name">SMAPI Stardew Valley</string> <string name="smapi_game_name">SMAPI Stardew Valley</string>
<string name="smapi_version">Versión SMAPI: 3.7.6.1</string> <string name="smapi_version">Versión SMAPI: 3.18.3.1</string>
<string name="text_install_tip1">Nota: Requiere la versión del juego 1.4.5.148 o superior</string> <string name="text_install_tip1">Nota: Requiere la versión del juego 1.5.6.39 o superior</string>
<string name="text_install_tip2">El cuerpo del juego debe instalarse durante la actualización o instalación</string> <string name="text_install_tip2">El cuerpo del juego debe instalarse durante la actualización o instalación</string>
<string name="unpacking_smapi_files">Desempacando</string> <string name="unpacking_smapi_files">Desempacando</string>
</resources> </resources>

View File

@ -61,8 +61,8 @@
<string name="settings_verbose_logging">Journalisation détaillée</string> <string name="settings_verbose_logging">Journalisation détaillée</string>
<string name="signing_package">Signature</string> <string name="signing_package">Signature</string>
<string name="smapi_game_name">SMAPI Stardew Valley</string> <string name="smapi_game_name">SMAPI Stardew Valley</string>
<string name="smapi_version">Version SMAPI: 3.7.6.1</string> <string name="smapi_version">Version SMAPI: 3.18.3.1</string>
<string name="text_install_tip1">Remarques: La version du jeu 1.4.5.148 ou ultérieure est requise.</string> <string name="text_install_tip1">Remarques: La version du jeu 1.5.6.39 ou ultérieure est requise.</string>
<string name="text_install_tip2">Le jeu de base est requis lors de la mise à jour / installation.</string> <string name="text_install_tip2">Le jeu de base est requis lors de la mise à jour / installation.</string>
<string name="unpacking_smapi_files">Déballage</string> <string name="unpacking_smapi_files">Déballage</string>
</resources> </resources>

View File

@ -61,8 +61,8 @@
<string name="settings_verbose_logging">Catatan Terperinci</string> <string name="settings_verbose_logging">Catatan Terperinci</string>
<string name="signing_package">Menandatangani</string> <string name="signing_package">Menandatangani</string>
<string name="smapi_game_name">SMAPI Stardew Valley</string> <string name="smapi_game_name">SMAPI Stardew Valley</string>
<string name="smapi_version">Versi SMAPI: 3.7.6.1</string> <string name="smapi_version">Versi SMAPI: 3.18.3.1</string>
<string name="text_install_tip1">Catatan: Dibutuhkan Stardew Valley versi 1.4.5.148 atau yang lebih baru.</string> <string name="text_install_tip1">Catatan: Dibutuhkan Stardew Valley versi 1.5.6.39 atau yang lebih baru.</string>
<string name="text_install_tip2">Permainan dasar diperlukan saat memperbarui/menginstal.</string> <string name="text_install_tip2">Permainan dasar diperlukan saat memperbarui/menginstal.</string>
<string name="unpacking_smapi_files">Membongkar</string> <string name="unpacking_smapi_files">Membongkar</string>
</resources> </resources>

View File

@ -61,8 +61,8 @@
<string name="settings_verbose_logging">자세한 로그</string> <string name="settings_verbose_logging">자세한 로그</string>
<string name="signing_package">설치 패키지 서명</string> <string name="signing_package">설치 패키지 서명</string>
<string name="smapi_game_name">SMAPI Stardew Valley</string> <string name="smapi_game_name">SMAPI Stardew Valley</string>
<string name="smapi_version">SMAPI버전: 3.7.6.1</string> <string name="smapi_version">SMAPI버전: 3.18.3.1</string>
<string name="text_install_tip1">참고 : 게임 버전 1.4.5.148 이상이 필요합니다</string> <string name="text_install_tip1">참고 : 게임 버전 1.5.6.39 이상이 필요합니다</string>
<string name="text_install_tip2">업데이트 또는 설치 중에 게임 본체를 설치해야합니다</string> <string name="text_install_tip2">업데이트 또는 설치 중에 게임 본체를 설치해야합니다</string>
<string name="unpacking_smapi_files">포장 풀기</string> <string name="unpacking_smapi_files">포장 풀기</string>
</resources> </resources>

View File

@ -61,8 +61,8 @@
<string name="settings_verbose_logging">Log detalhado</string> <string name="settings_verbose_logging">Log detalhado</string>
<string name="signing_package">Assinatura</string> <string name="signing_package">Assinatura</string>
<string name="smapi_game_name">SMAPI Stardew Valley</string> <string name="smapi_game_name">SMAPI Stardew Valley</string>
<string name="smapi_version">Versão SMAPI: 3.7.6.1</string> <string name="smapi_version">Versão SMAPI: 3.18.3.1</string>
<string name="text_install_tip1">Notas: É necessária a versão do jogo 1.4.5.148 ou posterior.</string> <string name="text_install_tip1">Notas: É necessária a versão do jogo 1.5.6.39 ou posterior.</string>
<string name="text_install_tip2">O jogo base é necessário ao atualizar / instalar.</string> <string name="text_install_tip2">O jogo base é necessário ao atualizar / instalar.</string>
<string name="unpacking_smapi_files">Desembalar</string> <string name="unpacking_smapi_files">Desembalar</string>
</resources> </resources>

View File

@ -61,8 +61,8 @@
<string name="settings_verbose_logging">บันทึกอย่างละเอียด</string> <string name="settings_verbose_logging">บันทึกอย่างละเอียด</string>
<string name="signing_package">กำลังลงทะเบียนแอป</string> <string name="signing_package">กำลังลงทะเบียนแอป</string>
<string name="smapi_game_name">SMAPI Stardew Valley</string> <string name="smapi_game_name">SMAPI Stardew Valley</string>
<string name="smapi_version">เวอร์ชั่น SMAPI: 3.7.6.1</string> <string name="smapi_version">เวอร์ชั่น SMAPI: 3.18.3.1</string>
<string name="text_install_tip1">หมายเหตุ: ต้องการเกมเวอร์ชั่น 1.4.5.148 หรือใหม่กว่า</string> <string name="text_install_tip1">หมายเหตุ: ต้องการเกมเวอร์ชั่น 1.5.6.39 หรือใหม่กว่า</string>
<string name="text_install_tip2">ต้องการเกมหลักเมื่อทำการอัปเดต / ติดตั้ง</string> <string name="text_install_tip2">ต้องการเกมหลักเมื่อทำการอัปเดต / ติดตั้ง</string>
<string name="unpacking_smapi_files">กำลังแกะกล่อง</string> <string name="unpacking_smapi_files">กำลังแกะกล่อง</string>

View File

@ -60,8 +60,8 @@
<string name="settings_verbose_logging">Докдадний вхід</string> <string name="settings_verbose_logging">Докдадний вхід</string>
<string name="signing_package">Реєстрація</string> <string name="signing_package">Реєстрація</string>
<string name="smapi_game_name">SMAPI Stardew Valley</string> <string name="smapi_game_name">SMAPI Stardew Valley</string>
<string name="smapi_version">Версія SMAPI: 3.7.6.1</string> <string name="smapi_version">Версія SMAPI: 3.18.3.1</string>
<string name="text_install_tip1">Примітка: Необхідна версія гри 1.4.5.148 або вище.</string> <string name="text_install_tip1">Примітка: Необхідна версія гри 1.5.6.39 або вище.</string>
<string name="text_install_tip2">Базова гра потрібна при оновленні/встановленні.</string> <string name="text_install_tip2">Базова гра потрібна при оновленні/встановленні.</string>
<string name="unpacking_smapi_files">Розпакування</string> <string name="unpacking_smapi_files">Розпакування</string>
<string name="toast_redpacket_message" translatable="false">红包码已复制\n支付宝首页搜索“9188262” 立即领红包</string> <string name="toast_redpacket_message" translatable="false">红包码已复制\n支付宝首页搜索“9188262” 立即领红包</string>

View File

@ -60,8 +60,8 @@
<string name="settings_verbose_logging">詳細日誌</string> <string name="settings_verbose_logging">詳細日誌</string>
<string name="signing_package">正在簽名安裝包</string> <string name="signing_package">正在簽名安裝包</string>
<string name="smapi_game_name">SMAPI 星露谷物語</string> <string name="smapi_game_name">SMAPI 星露谷物語</string>
<string name="smapi_version">SMAPI版本: 3.7.6.1</string> <string name="smapi_version">SMAPI版本: 3.18.3.1</string>
<string name="text_install_tip1">注意:需要 1.4.5.148 以上遊戲版本</string> <string name="text_install_tip1">注意:需要 1.5.6.39 以上遊戲版本</string>
<string name="text_install_tip2">更新或安裝期間需要安裝遊戲</string> <string name="text_install_tip2">更新或安裝期間需要安裝遊戲</string>
<string name="unpacking_smapi_files">正在解包</string> <string name="unpacking_smapi_files">正在解包</string>
<string name="sort_by">排序方式</string> <string name="sort_by">排序方式</string>

View File

@ -60,8 +60,8 @@
<string name="settings_verbose_logging">详细日志</string> <string name="settings_verbose_logging">详细日志</string>
<string name="signing_package">正在签名安装包</string> <string name="signing_package">正在签名安装包</string>
<string name="smapi_game_name">SMAPI星露谷物语</string> <string name="smapi_game_name">SMAPI星露谷物语</string>
<string name="smapi_version">SMAPI版本: 3.7.6.1</string> <string name="smapi_version">SMAPI版本: 3.18.3.1</string>
<string name="text_install_tip1">注意需要不低于1.4.5.148版本的游戏本体</string> <string name="text_install_tip1">注意需要不低于1.5.6.39版本的游戏本体</string>
<string name="text_install_tip2">更新或安装期间需要安装游戏本体</string> <string name="text_install_tip2">更新或安装期间需要安装游戏本体</string>
<string name="unpacking_smapi_files">正在解包</string> <string name="unpacking_smapi_files">正在解包</string>
<string name="sort_by">排序方式</string> <string name="sort_by">排序方式</string>

View File

@ -60,8 +60,8 @@
<string name="settings_verbose_logging">Verbose Logging</string> <string name="settings_verbose_logging">Verbose Logging</string>
<string name="signing_package">Signing</string> <string name="signing_package">Signing</string>
<string name="smapi_game_name">SMAPI Stardew Valley</string> <string name="smapi_game_name">SMAPI Stardew Valley</string>
<string name="smapi_version">SMAPI Version: 3.7.6.1</string> <string name="smapi_version">SMAPI Version: 3.18.3.1</string>
<string name="text_install_tip1">Notes: Game version 1.4.5.148 or later is required.</string> <string name="text_install_tip1">Notes: Game version 1.5.6.39 or later is required.</string>
<string name="text_install_tip2">The base game is required when updating/installing.</string> <string name="text_install_tip2">The base game is required when updating/installing.</string>
<string name="unpacking_smapi_files">Unpacking</string> <string name="unpacking_smapi_files">Unpacking</string>