Support XAPKs and ZIPs containing APKs

This commit is contained in:
Katy Coe
2020-12-08 18:57:48 +01:00
parent c3f59120df
commit 21fa006085
3 changed files with 45 additions and 23 deletions

View File

@@ -451,7 +451,7 @@
<TextBlock TextAlignment="Center">
<TextBlock FontSize="22">Option 2</TextBlock>
<LineBreak/>
<TextBlock>Select or drag &amp; drop one or more APK files, an AAB or IPA file</TextBlock>
<TextBlock>Select or drag &amp; drop one or more APK files,<LineBreak/>an XAPK, AAB, IPA or Zip file</TextBlock>
<LineBreak/>
<TextBlock FontSize="16">Encrypted IPA files are not supported</TextBlock>
</TextBlock>

View File

@@ -141,7 +141,7 @@ namespace Il2CppInspectorGUI
/// </summary>
private async void BtnSelectPackageFile_OnClick(object sender, RoutedEventArgs e) {
var openFileDialog = new OpenFileDialog {
Filter = "Android/iOS Application Package (*.apk;*.aab;*.ipa;*.zip)|*.apk;*.aab;*.ipa;*.zip|All files (*.*)|*.*",
Filter = "Android/iOS Application Package (*.apk;*.aab;*.ipa;*.xapk;*.zip)|*.apk;*.aab;*.ipa;*.xapk;*.zip|All files (*.*)|*.*",
CheckFileExists = true,
Multiselect = true
};
@@ -552,7 +552,7 @@ namespace Il2CppInspectorGUI
await LoadMetadataAsync(s);
break;
case var s when s.EndsWith(".apk") || s.EndsWith(".aab") || s.EndsWith(".ipa") || s.EndsWith(".zip"):
case var s when s.EndsWith(".apk") || s.EndsWith(".aab") || s.EndsWith(".ipa") || s.EndsWith(".xapk") || s.EndsWith(".zip"):
await LoadPackageAsync(s);
break;
}