diff --git a/iOS/IntentsExtension/Info.plist b/iOS/IntentsExtension/Info.plist new file mode 100644 index 000000000..041e24ab7 --- /dev/null +++ b/iOS/IntentsExtension/Info.plist @@ -0,0 +1,46 @@ + + + + + AppGroup + group.$(ORGANIZATION_IDENTIFIER).NetNewsWire.iOS + AppIdentifierPrefix + $(AppIdentifierPrefix) + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + NetNewsWire iOS Intents Extension + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + $(PRODUCT_BUNDLE_PACKAGE_TYPE) + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + NSExtension + + NSExtensionAttributes + + IntentsRestrictedWhileLocked + + IntentsRestrictedWhileProtectedDataUnavailable + + IntentsSupported + + AddFeedIntent + + + NSExtensionPointIdentifier + com.apple.intents-service + NSExtensionPrincipalClass + $(PRODUCT_MODULE_NAME).IntentHandler + + + diff --git a/iOS/IntentsExtension/IntentHandler.swift b/iOS/IntentsExtension/IntentHandler.swift new file mode 100644 index 000000000..e3e1490a8 --- /dev/null +++ b/iOS/IntentsExtension/IntentHandler.swift @@ -0,0 +1,22 @@ +// +// IntentHandler.swift +// NetNewsWire iOS Intents Extension +// +// Created by Maurice Parker on 10/18/19. +// Copyright © 2019 Ranchero Software. All rights reserved. +// + +import Intents + +class IntentHandler: INExtension { + + override func handler(for intent: INIntent) -> Any { + switch intent { + case is AddFeedIntent: + return AddFeedIntentHandler() + default: + fatalError("Unhandled intent type: \(intent)") + } + } + +} diff --git a/iOS/IntentsExtension/NetNewsWire_iOS_IntentsExtension.entitlements b/iOS/IntentsExtension/NetNewsWire_iOS_IntentsExtension.entitlements new file mode 100644 index 000000000..05d04e805 --- /dev/null +++ b/iOS/IntentsExtension/NetNewsWire_iOS_IntentsExtension.entitlements @@ -0,0 +1,14 @@ + + + + + com.apple.security.application-groups + + group.$(ORGANIZATION_IDENTIFIER).NetNewsWire.iOS + + keychain-access-groups + + $(AppIdentifierPrefix)$(ORGANIZATION_IDENTIFIER).NetNewsWire.iOS + + +