Updated Files for 0.8.9
This commit is contained in:
parent
488dd29c89
commit
15583aa99d
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"Name": "VirtualKeyboard",
|
||||
"Author": "MartyrPher",
|
||||
"Version": "0.9.5",
|
||||
"Version": "0.9.6",
|
||||
"MinimumApiVersion": "2.10.1",
|
||||
"Description": "A much needed Virtual Keyboard for SMAPI Android.",
|
||||
"UniqueID": "VirtualKeyboard",
|
||||
|
|
|
@ -0,0 +1,48 @@
|
|||
import android.os.Bundle;
|
||||
import android.support.v4.app.Fragment;
|
||||
import android.view.View;
|
||||
import android.widget.Button;
|
||||
|
||||
import com.MartyrPher.smapiandroidinstaller.ApkExtractor;
|
||||
import com.MartyrPher.smapiandroidinstaller.BackgroundTask;
|
||||
import com.MartyrPher.smapiandroidinstaller.DialogFrag;
|
||||
import com.MartyrPher.smapiandroidinstaller.MainActivity;
|
||||
import com.MartyrPher.smapiandroidinstaller.R;
|
||||
|
||||
//import androidx.annotation.NonNull;
|
||||
//import androidx.annotation.Nullable;
|
||||
|
||||
public class InstallFragment extends Fragment {
|
||||
|
||||
// @Override
|
||||
// public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState)
|
||||
// {
|
||||
// final Button start_button = view.findViewById(R.id.start_button);
|
||||
// start_button.setOnClickListener(new View.OnClickListener() {
|
||||
// @Override
|
||||
// public void onClick(View v) {
|
||||
// start_button.setBackgroundColor(getResources().getColor(R.color.colorAccent));
|
||||
// if (true)
|
||||
// {
|
||||
// boolean[] foundGame;
|
||||
// ApkExtractor apkExtractor = new ApkExtractor(null);
|
||||
//
|
||||
// foundGame = apkExtractor.checkForInstallOrUpgrade();
|
||||
//
|
||||
// if((foundGame[0] || foundGame[1]))
|
||||
// {
|
||||
// BackgroundTask backgroundTask = new BackgroundTask(null, apkExtractor, foundGame[0]);
|
||||
// backgroundTask.execute();
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// DialogFrag.showDialog(null, R.string.cant_find, 1);
|
||||
// start_button.setBackgroundColor(getResources().getColor(R.color.colorPrimary));
|
||||
// }
|
||||
//
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
//
|
||||
// }
|
||||
}
|
|
@ -13,7 +13,17 @@ public class BackgroundTask extends AsyncTask<Void, Integer, Boolean> {
|
|||
private static final String ASSET_STARDEW_FILES = "Stardew";
|
||||
private static final String MOD_FILES_VK = "VirtualKeyboard";
|
||||
private static final String MOD_FILES_VK_ASSET = "VirtualKeyboard/assets";
|
||||
private static final String MIPMAP_XXXHDPI_ASSET = "mipmap-xxxhdpi-v4";
|
||||
private static final String MIPMAP_XXHDPI_ASSET = "mipmap-xxhdpi-v4";
|
||||
private static final String MIPMAP_XHDPI_ASSET = "mipmap-xhdpi-v4";
|
||||
private static final String MIPMAP_MDPI_ASSET = "mipmap-mdpi";
|
||||
private static final String MIPMAP_HDPI_ASSET = "mipmap-hdpi";
|
||||
private static final String DIR_APK_FILES = "/SMAPI Installer/ApkFiles/";
|
||||
private static final String DIR_APK_FILES_XXXHDPI = "/SMAPI Installer/ApkFiles/mipmap-xxxhdpi-v4/";
|
||||
private static final String DIR_APK_FILES_XXHDPI = "/SMAPI Installer/ApkFiles/mipmap-xxhdpi-v4/";
|
||||
private static final String DIR_APK_FILES_XHDPI = "/SMAPI Installer/ApkFiles/mipmap-xhdpi-v4/";
|
||||
private static final String DIR_APK_FILES_MDPI = "/SMAPI Installer/ApkFiles/mipmap-mdpi/";
|
||||
private static final String DIR_APK_FILES_HDPI = "/SMAPI Installer/ApkFiles/mipmap-hdpi/";
|
||||
private static final String DIR_STARDEW_FILES = "/StardewValley/smapi-internal/";
|
||||
private static final String DIR_MODS_VK = "/StardewValley/Mods/VirtualKeyboard/";
|
||||
private static final String DIR_MODS_VK_ASSET = "/StardewValley/Mods/VirtualKeyboard/assets";
|
||||
|
@ -81,16 +91,107 @@ public class BackgroundTask extends AsyncTask<Void, Integer, Boolean> {
|
|||
copy.copyAssets(MOD_FILES_VK_ASSET, DIR_MODS_VK_ASSET);
|
||||
publishProgress(45);
|
||||
|
||||
File[] moddingAPI = {new File(Environment.getExternalStorageDirectory() + DIR_APK_FILES + "AndroidManifest.xml"),
|
||||
new File( Environment.getExternalStorageDirectory() + DIR_APK_FILES + "classes.dex"),
|
||||
new File( Environment.getExternalStorageDirectory() + DIR_APK_FILES + "StardewModdingAPI.dll"),
|
||||
new File(Environment.getExternalStorageDirectory() + DIR_APK_FILES + "StardewModdingAPI.Toolkit.CoreInterfaces.dll"),
|
||||
new File( Environment.getExternalStorageDirectory() + DIR_APK_FILES + "StardewModdingAPI.Toolkit.dll"),
|
||||
new File( Environment.getExternalStorageDirectory() + DIR_APK_FILES + "Newtonsoft.json.dll"),
|
||||
new File( Environment.getExternalStorageDirectory() + DIR_APK_FILES + "System.Data.dll"),
|
||||
new File( Environment.getExternalStorageDirectory() + DIR_APK_FILES + "System.Numerics.dll")};
|
||||
boolean[] compressed = {true, true, false, false, false, false, false, false};
|
||||
String[] paths = {"", "", "assemblies/", "assemblies/", "assemblies/", "assemblies/", "assemblies/", "assemblies/"};
|
||||
copy.copyAssets(MIPMAP_XXXHDPI_ASSET, DIR_APK_FILES_XXXHDPI);
|
||||
copy.copyAssets(MIPMAP_XXHDPI_ASSET, DIR_APK_FILES_XXHDPI);
|
||||
copy.copyAssets(MIPMAP_XHDPI_ASSET, DIR_APK_FILES_XHDPI);
|
||||
copy.copyAssets(MIPMAP_MDPI_ASSET, DIR_APK_FILES_MDPI);
|
||||
copy.copyAssets(MIPMAP_HDPI_ASSET, DIR_APK_FILES_HDPI);
|
||||
|
||||
File[] moddingAPI =
|
||||
{
|
||||
new File(Environment.getExternalStorageDirectory() + DIR_APK_FILES + "AndroidManifest.xml"),
|
||||
new File( Environment.getExternalStorageDirectory() + DIR_APK_FILES + "classes.dex"),
|
||||
new File( Environment.getExternalStorageDirectory() + DIR_APK_FILES + "StardewModdingAPI.dll"),
|
||||
new File(Environment.getExternalStorageDirectory() + DIR_APK_FILES + "StardewModdingAPI.Toolkit.CoreInterfaces.dll"),
|
||||
new File( Environment.getExternalStorageDirectory() + DIR_APK_FILES + "StardewModdingAPI.Toolkit.dll"),
|
||||
new File( Environment.getExternalStorageDirectory() + DIR_APK_FILES + "Newtonsoft.json.dll"),
|
||||
new File( Environment.getExternalStorageDirectory() + DIR_APK_FILES + "System.Data.dll"),
|
||||
new File( Environment.getExternalStorageDirectory() + DIR_APK_FILES + "System.Numerics.dll"),
|
||||
new File( Environment.getExternalStorageDirectory() + DIR_APK_FILES_XXXHDPI + "ic_launcher.png"),
|
||||
new File( Environment.getExternalStorageDirectory() + DIR_APK_FILES_XXXHDPI + "ic_launcher_background.png"),
|
||||
new File( Environment.getExternalStorageDirectory() + DIR_APK_FILES_XXXHDPI + "ic_launcher_foreground.png"),
|
||||
new File( Environment.getExternalStorageDirectory() + DIR_APK_FILES_XXXHDPI + "ic_launcher_round.png"),
|
||||
new File( Environment.getExternalStorageDirectory() + DIR_APK_FILES_XXHDPI + "ic_launcher.png"),
|
||||
new File( Environment.getExternalStorageDirectory() + DIR_APK_FILES_XXHDPI + "ic_launcher_background.png"),
|
||||
new File( Environment.getExternalStorageDirectory() + DIR_APK_FILES_XXHDPI + "ic_launcher_foreground.png"),
|
||||
new File( Environment.getExternalStorageDirectory() + DIR_APK_FILES_XXHDPI + "ic_launcher_round.png"),
|
||||
new File( Environment.getExternalStorageDirectory() + DIR_APK_FILES_XHDPI + "ic_launcher.png"),
|
||||
new File( Environment.getExternalStorageDirectory() + DIR_APK_FILES_XHDPI + "ic_launcher_background.png"),
|
||||
new File( Environment.getExternalStorageDirectory() + DIR_APK_FILES_XHDPI + "ic_launcher_foreground.png"),
|
||||
new File( Environment.getExternalStorageDirectory() + DIR_APK_FILES_XHDPI + "ic_launcher_round.png"),
|
||||
new File( Environment.getExternalStorageDirectory() + DIR_APK_FILES_MDPI + "ic_launcher.png"),
|
||||
new File( Environment.getExternalStorageDirectory() + DIR_APK_FILES_MDPI + "ic_launcher_background.png"),
|
||||
new File( Environment.getExternalStorageDirectory() + DIR_APK_FILES_MDPI + "ic_launcher_foreground.png"),
|
||||
new File( Environment.getExternalStorageDirectory() + DIR_APK_FILES_MDPI + "ic_launcher_round.png"),
|
||||
new File( Environment.getExternalStorageDirectory() + DIR_APK_FILES_HDPI + "ic_launcher.png"),
|
||||
new File( Environment.getExternalStorageDirectory() + DIR_APK_FILES_HDPI + "ic_launcher_background.png"),
|
||||
new File( Environment.getExternalStorageDirectory() + DIR_APK_FILES_HDPI + "ic_launcher_foreground.png"),
|
||||
new File( Environment.getExternalStorageDirectory() + DIR_APK_FILES_HDPI + "ic_launcher_round.png")
|
||||
};
|
||||
|
||||
boolean[] compressed =
|
||||
{
|
||||
true,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
true,
|
||||
true,
|
||||
true,
|
||||
true,
|
||||
true,
|
||||
true,
|
||||
true,
|
||||
true,
|
||||
true,
|
||||
true,
|
||||
true,
|
||||
true,
|
||||
true,
|
||||
true,
|
||||
true,
|
||||
true,
|
||||
true,
|
||||
true,
|
||||
true,
|
||||
true
|
||||
};
|
||||
|
||||
String[] paths =
|
||||
{
|
||||
"",
|
||||
"",
|
||||
"assemblies/",
|
||||
"assemblies/",
|
||||
"assemblies/",
|
||||
"assemblies/",
|
||||
"assemblies/",
|
||||
"assemblies/",
|
||||
"res/mipmap-xxxhdpi-v4/",
|
||||
"res/mipmap-xxxhdpi-v4/",
|
||||
"res/mipmap-xxxhdpi-v4/",
|
||||
"res/mipmap-xxxhdpi-v4/",
|
||||
"res/mipmap-xxhdpi-v4/",
|
||||
"res/mipmap-xxhdpi-v4/",
|
||||
"res/mipmap-xxhdpi-v4/",
|
||||
"res/mipmap-xxhdpi-v4/",
|
||||
"res/mipmap-xhdpi-v4/",
|
||||
"res/mipmap-xhdpi-v4/",
|
||||
"res/mipmap-xhdpi-v4/",
|
||||
"res/mipmap-xhdpi-v4/",
|
||||
"res/mipmap-mdpi/",
|
||||
"res/mipmap-mdpi/",
|
||||
"res/mipmap-mdpi/",
|
||||
"res/mipmap-mdpi/",
|
||||
"res/mipmap-hdpi/",
|
||||
"res/mipmap-hdpi/",
|
||||
"res/mipmap-hdpi/",
|
||||
"res/mipmap-hdpi/"
|
||||
};
|
||||
publishProgress(54);
|
||||
|
||||
writeApk.addFilesToApk(new File(Environment.getExternalStorageDirectory() + "/SMAPI Installer/base.apk"), moddingAPI, paths, compressed);
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<string name="finished">Finished!</string>
|
||||
<string name="install">Error in opening file!</string>
|
||||
<string name="permission">Permission Granted</string>
|
||||
<string name="notes">Notes: Game version 1.25 and above is required.</string>
|
||||
<string name="notes">Notes: Game version 1.31 and above is required.</string>
|
||||
<string name="base_game_required">The base game is required when updating/installing.</string>
|
||||
<string name="installing_pufferchicks">Installing pufferchicks...</string>
|
||||
<string name="install_milk_cows">Milking the cows...</string>
|
||||
|
|
Loading…
Reference in New Issue