Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: disable custom keyboard globally #2244

Merged
merged 2 commits into from
Dec 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 24 additions & 10 deletions ios/PolkadotVault.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@
6D5801E1289924AD006C41D8 /* ConnectivityMonitoringAdapterTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6D5801E0289924AD006C41D8 /* ConnectivityMonitoringAdapterTests.swift */; };
6D5801E5289937BA006C41D8 /* ConnectivityMonitoringAssemblerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6D5801E4289937BA006C41D8 /* ConnectivityMonitoringAssemblerTests.swift */; };
6D5801E7289937C0006C41D8 /* ConnectivityMonitoringAssembler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6D5801E6289937C0006C41D8 /* ConnectivityMonitoringAssembler.swift */; };
6D5DB5E82B3C61A200EF82AB /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6D5DB5E72B3C61A200EF82AB /* AppDelegate.swift */; };
6D5DCA032A7CFA2E0050B101 /* ExportKeysSelectionModal.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6D5DCA022A7CFA2E0050B101 /* ExportKeysSelectionModal.swift */; };
6D5FDDCC2977D08E0076C1C4 /* LogNoteModal.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6D5FDDCB2977D08E0076C1C4 /* LogNoteModal.swift */; };
6D5FDDD02977DBE00076C1C4 /* HiddenTextEditorBackgroundModifier.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6D5FDDCF2977DBE00076C1C4 /* HiddenTextEditorBackgroundModifier.swift */; };
Expand Down Expand Up @@ -449,6 +450,7 @@
6D220A2B2963DBC300122DA8 /* EnterBananaSplitPasswordModal.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = EnterBananaSplitPasswordModal.swift; sourceTree = "<group>"; };
6D22FB872A9748700005993C /* BackendService.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BackendService.swift; sourceTree = "<group>"; };
6D25E6B22A02323A00376AB9 /* FullscreenModal.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FullscreenModal.swift; sourceTree = "<group>"; };
6D263E072B39827700790510 /* AutoMockable.stencil */ = {isa = PBXFileReference; lastKnownFileType = text; path = AutoMockable.stencil; sourceTree = "<group>"; };
6D2779C728B3D33100570055 /* NavigationBarView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NavigationBarView.swift; sourceTree = "<group>"; };
6D2A5D0E2AA5DF47009E0C3A /* ManageKeySetsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ManageKeySetsView.swift; sourceTree = "<group>"; };
6D2A5D102AA607C7009E0C3A /* ActionSheetCircleButton.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ActionSheetCircleButton.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -506,6 +508,7 @@
6D5801E0289924AD006C41D8 /* ConnectivityMonitoringAdapterTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConnectivityMonitoringAdapterTests.swift; sourceTree = "<group>"; };
6D5801E4289937BA006C41D8 /* ConnectivityMonitoringAssemblerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConnectivityMonitoringAssemblerTests.swift; sourceTree = "<group>"; };
6D5801E6289937C0006C41D8 /* ConnectivityMonitoringAssembler.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConnectivityMonitoringAssembler.swift; sourceTree = "<group>"; };
6D5DB5E72B3C61A200EF82AB /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
6D5DCA022A7CFA2E0050B101 /* ExportKeysSelectionModal.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ExportKeysSelectionModal.swift; sourceTree = "<group>"; };
6D5FDDCB2977D08E0076C1C4 /* LogNoteModal.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LogNoteModal.swift; sourceTree = "<group>"; };
6D5FDDCF2977DBE00076C1C4 /* HiddenTextEditorBackgroundModifier.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HiddenTextEditorBackgroundModifier.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -882,6 +885,7 @@
2DE72BC026A588C7002BB752 /* PolkadotVault */ = {
isa = PBXGroup;
children = (
2DE72BC126A588C7002BB752 /* PolkadotVaultApp.swift */,
6D06CD272AFD2EF000FAB275 /* Configuration */,
6D8045DA28D0840500237F8C /* RustDataExtensions */,
6DA2ACA02939CB3000AAEADC /* Helpers */,
Expand All @@ -898,7 +902,6 @@
2D7A7BC626BA974E0053C1E0 /* Screens */,
2D7A7BC526BA96D00053C1E0 /* Cards */,
6DF91F3B29C06AF6000A6BB2 /* StateMediators */,
2DE72BC126A588C7002BB752 /* PolkadotVaultApp.swift */,
2DE72C1226AACB25002BB752 /* Database */,
2D75EF9E280F02B900C48FAF /* Generated */,
2DE72BC726A588C9002BB752 /* Preview Content */,
Expand Down Expand Up @@ -1103,6 +1106,14 @@
path = NavigationServices;
sourceTree = "<group>";
};
6D263E062B39827700790510 /* Sourcery */ = {
isa = PBXGroup;
children = (
6D263E072B39827700790510 /* AutoMockable.stencil */,
);
path = Sourcery;
sourceTree = "<group>";
};
6D2D244928CCAD3700862726 /* Backend */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -1236,6 +1247,7 @@
6D57DC5C289E524800005C63 /* Templates */ = {
isa = PBXGroup;
children = (
6D263E062B39827700790510 /* Sourcery */,
6D57DC5D289E524800005C63 /* swiftui-strings-template.stencil */,
);
path = Templates;
Expand All @@ -1260,16 +1272,17 @@
6D5801CE28991301006C41D8 /* Core */ = {
isa = PBXGroup;
children = (
6D5DB5E72B3C61A200EF82AB /* AppDelegate.swift */,
6D6430F528CB460A00342E37 /* ServiceLocator.swift */,
6DFE588C297A72B1002BFDBF /* JailbreakDetectionPublisher.swift */,
6DFE588A297A5F09002BFDBF /* ApplicationStatePublisher.swift */,
6D9921B6297FB471004891B6 /* PasswordProtectionStatePublisher.swift */,
6DEFB52B28FEC94000762219 /* QRCode */,
6D6ACA3F28F0B383002FB03A /* Camera */,
6DC5643128B68FB2003D540B /* Keychain */,
6DBD21F8289A7A14005D539B /* Database */,
6D5801D528991DA4006C41D8 /* Runtime */,
6D5801D22899132C006C41D8 /* Connectivity */,
6D6430F528CB460A00342E37 /* ServiceLocator.swift */,
6DFE588C297A72B1002BFDBF /* JailbreakDetectionPublisher.swift */,
6DFE588A297A5F09002BFDBF /* ApplicationStatePublisher.swift */,
6D9921B6297FB471004891B6 /* PasswordProtectionStatePublisher.swift */,
);
path = Core;
sourceTree = "<group>";
Expand Down Expand Up @@ -2229,7 +2242,6 @@
};
6DE48E282B1EB932003094D5 /* Run Sourcery */ = {
isa = PBXShellScriptBuildPhase;
alwaysOutOfDate = 1;
buildActionMask = 2147483647;
files = (
);
Expand All @@ -2238,6 +2250,7 @@
inputPaths = (
"$(SRCROOT)/sourcery.yml",
"${SRCROOT}/PolkadotVaultTests/Generated/AutoMockable/Scripts/initial_setup.sh",
"$(SRCROOT)/PolkadotVault/Resources/Templates/Sourcery/AutoMockable.stencil",
);
name = "Run Sourcery";
outputFileListPaths = (
Expand Down Expand Up @@ -2376,6 +2389,7 @@
6DC33717295559EA0067284B /* NetworkSettingsDetailsActionModal.swift in Sources */,
6DDD73752940496800F04CE7 /* LogEntryRenderable.swift in Sources */,
6DF7751B28B399AC0040012E /* CornerRadius.swift in Sources */,
6D5DB5E82B3C61A200EF82AB /* AppDelegate.swift in Sources */,
6DF3CFEE299370F7002DF203 /* CreateKeySetSeedPhraseView.swift in Sources */,
6DEB18E82A0B8BD30013995E /* Stubs.swift in Sources */,
6D6430EC28CB2FDF00342E37 /* TapAndDelayDismissAnimator.swift in Sources */,
Expand Down Expand Up @@ -2772,7 +2786,7 @@
"$(inherited)",
"$(PROJECT_DIR)/PolkadotVault",
);
MARKETING_VERSION = 6.3.0;
MARKETING_VERSION = 6.3.1;
PRODUCT_BUNDLE_IDENTIFIER = io.parity.NativeSigner;
PRODUCT_MODULE_NAME = PolkadotVault;
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -2808,7 +2822,7 @@
"$(inherited)",
"$(PROJECT_DIR)/PolkadotVault",
);
MARKETING_VERSION = 6.3.0;
MARKETING_VERSION = 6.3.1;
PRODUCT_BUNDLE_IDENTIFIER = io.parity.NativeSigner;
PRODUCT_MODULE_NAME = PolkadotVault;
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -2851,7 +2865,7 @@
BUNDLE_LOADER = "$(TEST_HOST)";
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 4GK8JWU7P9;
DEVELOPMENT_TEAM = P2PX3JU8FT;
INFOPLIST_FILE = PolkadotVaultTests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
Expand Down Expand Up @@ -2950,7 +2964,7 @@
"$(inherited)",
"$(PROJECT_DIR)/PolkadotVault",
);
MARKETING_VERSION = 6.3.0;
MARKETING_VERSION = 6.3.1;
PRODUCT_BUNDLE_IDENTIFIER = io.parity.NativeSigner;
PRODUCT_MODULE_NAME = PolkadotVault;
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down
23 changes: 23 additions & 0 deletions ios/PolkadotVault/Core/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
//
// AppDelegate.swift
// PolkadotVault
//
// Created by Krzysztof Rodak on 27/12/2023.
//

import UIKit

final class AppDelegate: UIResponder, UIApplicationDelegate {
func application(
_: UIApplication,
shouldAllowExtensionPointIdentifier extensionPointIdentifier: UIApplication.ExtensionPointIdentifier
) -> Bool {
switch extensionPointIdentifier {
case .keyboard:
false
default:
true
}
}
}

1 change: 1 addition & 0 deletions ios/PolkadotVault/PolkadotVaultApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ struct PolkadotVaultApp: App {
@StateObject var navigation = NavigationCoordinator()
@StateObject var jailbreakDetectionPublisher = JailbreakDetectionPublisher()
@StateObject var applicationStatePublisher = ApplicationStatePublisher()
@UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate

var body: some Scene {
WindowGroup {
Expand Down
Loading