Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
This commit is contained in:
Marino Faggiana 2022-10-10 12:40:20 +02:00
Родитель ce584166a6
Коммит 3bc531ee65
8 изменённых файлов: 415 добавлений и 127 удалений

Просмотреть файл

@ -384,6 +384,30 @@
F7A321AD1E9E6AD50069AD1B /* CCAdvanced.m in Sources */ = {isa = PBXBuildFile; fileRef = F7A321AC1E9E6AD50069AD1B /* CCAdvanced.m */; };
F7A76DC8256A71CD00119AB3 /* UIImage+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = F7B7504A2397D38E004E13EC /* UIImage+Extensions.swift */; };
F7A76DCD256A71CE00119AB3 /* UIImage+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = F7B7504A2397D38E004E13EC /* UIImage+Extensions.swift */; };
F7A8D72428F1771B008BBE1C /* NextcloudKit in Frameworks */ = {isa = PBXBuildFile; productRef = F7A8D72328F1771B008BBE1C /* NextcloudKit */; };
F7A8D72628F17728008BBE1C /* Realm in Frameworks */ = {isa = PBXBuildFile; productRef = F7A8D72528F17728008BBE1C /* Realm */; };
F7A8D72828F17728008BBE1C /* RealmSwift in Frameworks */ = {isa = PBXBuildFile; productRef = F7A8D72728F17728008BBE1C /* RealmSwift */; };
F7A8D72A28F17733008BBE1C /* SVGKit in Frameworks */ = {isa = PBXBuildFile; productRef = F7A8D72928F17733008BBE1C /* SVGKit */; };
F7A8D72C28F17742008BBE1C /* SwiftEntryKit in Frameworks */ = {isa = PBXBuildFile; productRef = F7A8D72B28F17742008BBE1C /* SwiftEntryKit */; };
F7A8D72E28F17764008BBE1C /* UICKeyChainStore in Frameworks */ = {isa = PBXBuildFile; productRef = F7A8D72D28F17764008BBE1C /* UICKeyChainStore */; };
F7A8D73428F17E12008BBE1C /* NCDatabase.swift in Sources */ = {isa = PBXBuildFile; fileRef = F7BAADB41ED5A87C00B7EAD4 /* NCDatabase.swift */; };
F7A8D73528F17E16008BBE1C /* NCManageDatabase.swift in Sources */ = {isa = PBXBuildFile; fileRef = F7BAADB51ED5A87C00B7EAD4 /* NCManageDatabase.swift */; };
F7A8D73628F17E1A008BBE1C /* NCManageDatabase+Activity.swift in Sources */ = {isa = PBXBuildFile; fileRef = AF4BF61D27562B3F0081CEEF /* NCManageDatabase+Activity.swift */; };
F7A8D73728F17E1E008BBE1C /* NCManageDatabase+Account.swift in Sources */ = {isa = PBXBuildFile; fileRef = AF4BF613275629E20081CEEF /* NCManageDatabase+Account.swift */; };
F7A8D73828F17E21008BBE1C /* NCManageDatabase+DashboardWidget.swift in Sources */ = {isa = PBXBuildFile; fileRef = F7D68FCB28CB9051009139F3 /* NCManageDatabase+DashboardWidget.swift */; };
F7A8D73928F17E25008BBE1C /* NCManageDatabase+Metadata.swift in Sources */ = {isa = PBXBuildFile; fileRef = AF4BF61827562A4B0081CEEF /* NCManageDatabase+Metadata.swift */; };
F7A8D73A28F17E28008BBE1C /* NCManageDatabase+Video.swift in Sources */ = {isa = PBXBuildFile; fileRef = F7E98C1527E0D0FC001F9F19 /* NCManageDatabase+Video.swift */; };
F7A8D73B28F17E2C008BBE1C /* NCElementsJSON.swift in Sources */ = {isa = PBXBuildFile; fileRef = F73D5E46246DE09200DF6467 /* NCElementsJSON.swift */; };
F7A8D73C28F181BC008BBE1C /* NCBrand.swift in Sources */ = {isa = PBXBuildFile; fileRef = F76B3CCD1EAE01BD00921AC9 /* NCBrand.swift */; };
F7A8D73D28F181D3008BBE1C /* NCUtilityFileSystem.swift in Sources */ = {isa = PBXBuildFile; fileRef = F74AF3A3247FB6AE00AC767B /* NCUtilityFileSystem.swift */; };
F7A8D73E28F181E2008BBE1C /* NCUserBaseUrl.swift in Sources */ = {isa = PBXBuildFile; fileRef = AF817EF0274BC781009ED85B /* NCUserBaseUrl.swift */; };
F7A8D73F28F181EF008BBE1C /* NCGlobal.swift in Sources */ = {isa = PBXBuildFile; fileRef = F702F2CE25EE5B5C008F8E80 /* NCGlobal.swift */; };
F7A8D74028F18212008BBE1C /* UIImage+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = F7B7504A2397D38E004E13EC /* UIImage+Extensions.swift */; };
F7A8D74128F18254008BBE1C /* UIColor+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = F70CEF5523E9C7E50007035B /* UIColor+Extensions.swift */; };
F7A8D74228F18261008BBE1C /* NCUtility.swift in Sources */ = {isa = PBXBuildFile; fileRef = F70BFC7320E0FA7C00C67599 /* NCUtility.swift */; };
F7A8D74328F1826F008BBE1C /* String+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = F7A0D1342591FBC5008F8A13 /* String+Extensions.swift */; };
F7A8D74428F1827B008BBE1C /* ThreadSafeDictionary.swift in Sources */ = {isa = PBXBuildFile; fileRef = F7245923289BB50B00474787 /* ThreadSafeDictionary.swift */; };
F7A8D74528F1828E008BBE1C /* CCUtility.m in Sources */ = {isa = PBXBuildFile; fileRef = F7053E3D1C639DF500741EA5 /* CCUtility.m */; };
F7AC1CB028AB94490032D99F /* Array+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = F7AC1CAF28AB94490032D99F /* Array+Extensions.swift */; };
F7AE00F5230D5F9E007ACF8A /* NCLoginWeb.swift in Sources */ = {isa = PBXBuildFile; fileRef = F7AE00F4230D5F9E007ACF8A /* NCLoginWeb.swift */; };
F7AE00F8230E81CB007ACF8A /* NCBrowserWeb.swift in Sources */ = {isa = PBXBuildFile; fileRef = F7AE00F7230E81CB007ACF8A /* NCBrowserWeb.swift */; };
@ -408,6 +432,10 @@
F7C7B489245EBA4100D93E60 /* NCViewerQuickLook.swift in Sources */ = {isa = PBXBuildFile; fileRef = F7C7B488245EBA4100D93E60 /* NCViewerQuickLook.swift */; };
F7C9555321F0C4CA0024296E /* NCActivity.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = F7C9555221F0C4CA0024296E /* NCActivity.storyboard */; };
F7C9555521F0C5470024296E /* NCActivity.swift in Sources */ = {isa = PBXBuildFile; fileRef = F7C9555421F0C5470024296E /* NCActivity.swift */; };
F7C9739228F17131002C43E2 /* Intents.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F7C9739128F17131002C43E2 /* Intents.framework */; };
F7C9739528F17131002C43E2 /* IntentHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = F7C9739428F17131002C43E2 /* IntentHandler.swift */; };
F7C9739928F17131002C43E2 /* WidgetDashboardIntentHandler.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = F7C9739028F17131002C43E2 /* WidgetDashboardIntentHandler.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
F7C9739D28F1733B002C43E2 /* Dashboard.intentdefinition in Sources */ = {isa = PBXBuildFile; fileRef = F7FABE3928D1DAD00000A325 /* Dashboard.intentdefinition */; };
F7CA212D25F1333300826ABB /* NCAccountRequest.swift in Sources */ = {isa = PBXBuildFile; fileRef = F7CA212B25F1333200826ABB /* NCAccountRequest.swift */; };
F7CA212E25F1333300826ABB /* NCAccountRequest.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = F7CA212C25F1333200826ABB /* NCAccountRequest.storyboard */; };
F7CB689A2541676B0050EC94 /* NCMore.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = F7CB68992541676B0050EC94 /* NCMore.storyboard */; };
@ -509,6 +537,13 @@
remoteGlobalIDString = F771E3CF20E2392D00AFB62D;
remoteInfo = "File Provider Extension";
};
F7C9739728F17131002C43E2 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = F7F67BA01A24D27800EE80DA /* Project object */;
proxyType = 1;
remoteGlobalIDString = F7C9738F28F17131002C43E2;
remoteInfo = WidgetDashboardIntentHandler;
};
/* End PBXContainerItemProxy section */
/* Begin PBXCopyFilesBuildPhase section */
@ -535,6 +570,7 @@
F771E3EB20E2392E00AFB62D /* File Provider Extension.appex in Embed Foundation Extensions */,
F749E4E91DC1FB38009BA2FD /* Share.appex in Embed Foundation Extensions */,
2C33C48623E2C475005F963B /* Notification Service Extension.appex in Embed Foundation Extensions */,
F7C9739928F17131002C43E2 /* WidgetDashboardIntentHandler.appex in Embed Foundation Extensions */,
F7346E1C28B0EF5E006CE2D2 /* Widget.appex in Embed Foundation Extensions */,
);
name = "Embed Foundation Extensions";
@ -940,6 +976,9 @@
F7A0D1342591FBC5008F8A13 /* String+Extensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "String+Extensions.swift"; sourceTree = "<group>"; };
F7A321AB1E9E6AD50069AD1B /* CCAdvanced.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CCAdvanced.h; sourceTree = "<group>"; };
F7A321AC1E9E6AD50069AD1B /* CCAdvanced.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CCAdvanced.m; sourceTree = "<group>"; };
F7A8D72228F176B6008BBE1C /* WidgetDashboardIntentHandler-Brinding-header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "WidgetDashboardIntentHandler-Brinding-header.h"; sourceTree = "<group>"; };
F7A8D73028F17C44008BBE1C /* WidgetDashboardIntentHandler.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = WidgetDashboardIntentHandler.entitlements; sourceTree = "<group>"; };
F7A8D73328F17C62008BBE1C /* WidgetDashboardIntentHandler.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = WidgetDashboardIntentHandler.plist; sourceTree = "<group>"; };
F7AA41B827C7CF4600494705 /* ca */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ca; path = ca.lproj/InfoPlist.strings; sourceTree = "<group>"; };
F7AA41B927C7CF4B00494705 /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/InfoPlist.strings"; sourceTree = "<group>"; };
F7AA41BA27C7CF5000494705 /* zh-Hant-TW */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hant-TW"; path = "zh-Hant-TW.lproj/InfoPlist.strings"; sourceTree = "<group>"; };
@ -1024,6 +1063,9 @@
F7C7B488245EBA4100D93E60 /* NCViewerQuickLook.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NCViewerQuickLook.swift; sourceTree = "<group>"; };
F7C9555221F0C4CA0024296E /* NCActivity.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = NCActivity.storyboard; sourceTree = "<group>"; };
F7C9555421F0C5470024296E /* NCActivity.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NCActivity.swift; sourceTree = "<group>"; };
F7C9739028F17131002C43E2 /* WidgetDashboardIntentHandler.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = WidgetDashboardIntentHandler.appex; sourceTree = BUILT_PRODUCTS_DIR; };
F7C9739128F17131002C43E2 /* Intents.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Intents.framework; path = System/Library/Frameworks/Intents.framework; sourceTree = SDKROOT; };
F7C9739428F17131002C43E2 /* IntentHandler.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IntentHandler.swift; sourceTree = "<group>"; };
F7CA212B25F1333200826ABB /* NCAccountRequest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NCAccountRequest.swift; sourceTree = "<group>"; };
F7CA212C25F1333200826ABB /* NCAccountRequest.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = NCAccountRequest.storyboard; sourceTree = "<group>"; };
F7CB68992541676B0050EC94 /* NCMore.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = NCMore.storyboard; sourceTree = "<group>"; };
@ -1175,6 +1217,20 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
F7C9738D28F17131002C43E2 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
F7A8D72A28F17733008BBE1C /* SVGKit in Frameworks */,
F7A8D72828F17728008BBE1C /* RealmSwift in Frameworks */,
F7A8D72E28F17764008BBE1C /* UICKeyChainStore in Frameworks */,
F7A8D72C28F17742008BBE1C /* SwiftEntryKit in Frameworks */,
F7A8D72628F17728008BBE1C /* Realm in Frameworks */,
F7A8D72428F1771B008BBE1C /* NextcloudKit in Frameworks */,
F7C9739228F17131002C43E2 /* Intents.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
@ -1811,8 +1867,6 @@
F7C742D31E7BD36600D9C973 /* Supporting Files */ = {
isa = PBXGroup;
children = (
F7346E2128B0FBEE006CE2D2 /* Widget.plist */,
F783033F28B50B7E00B84583 /* Widget.entitlements */,
F771E3FB20E23A8700AFB62D /* File_Provider_Extension.entitlements */,
F771E3FC20E23A8800AFB62D /* File_Provider_Extension.plist */,
F7C742C01E7BD01F00D9C973 /* iOSClient.entitlements */,
@ -1821,10 +1875,23 @@
F728B2BB23E83AD200E12DA0 /* Notification_Service_Extension.plist */,
F7C742D01E7BD35B00D9C973 /* Share.entitlements */,
F7496B83208F5652004B299C /* Share.plist */,
F783033F28B50B7E00B84583 /* Widget.entitlements */,
F7346E2128B0FBEE006CE2D2 /* Widget.plist */,
F7A8D73028F17C44008BBE1C /* WidgetDashboardIntentHandler.entitlements */,
F7A8D73328F17C62008BBE1C /* WidgetDashboardIntentHandler.plist */,
);
name = "Supporting Files";
sourceTree = "<group>";
};
F7C9739328F17131002C43E2 /* WidgetDashboardIntentHandler */ = {
isa = PBXGroup;
children = (
F7A8D72228F176B6008BBE1C /* WidgetDashboardIntentHandler-Brinding-header.h */,
F7C9739428F17131002C43E2 /* IntentHandler.swift */,
);
path = WidgetDashboardIntentHandler;
sourceTree = "<group>";
};
F7CA213725F1372B00826ABB /* Account Request */ = {
isa = PBXGroup;
children = (
@ -1945,12 +2012,14 @@
2C33C48023E2C475005F963B /* Notification Service Extension */,
AF8ED1FA2757821000B8DBC4 /* NextcloudTests */,
F7346E1428B0EF5B006CE2D2 /* Widget */,
F7C9739328F17131002C43E2 /* WidgetDashboardIntentHandler */,
F7FC7D651DC1F98700BB2C6A /* Products */,
F7FC7D541DC1F93700BB2C6A /* Frameworks */,
F771E3D020E2392D00AFB62D /* File Provider Extension.appex */,
2C33C47F23E2C475005F963B /* Notification Service Extension.appex */,
AF8ED1F92757821000B8DBC4 /* NextcloudTests.xctest */,
F7346E1028B0EF5B006CE2D2 /* Widget.appex */,
F7C9739028F17131002C43E2 /* WidgetDashboardIntentHandler.appex */,
);
sourceTree = "<group>";
};
@ -2108,6 +2177,7 @@
08DC3BD41E64727E00F036D3 /* AdSupport.framework */,
F7FC7D551DC1F93800BB2C6A /* libz.tbd */,
F7346E1128B0EF5B006CE2D2 /* WidgetKit.framework */,
F7C9739128F17131002C43E2 /* Intents.framework */,
);
name = Frameworks;
sourceTree = "<group>";
@ -2275,6 +2345,7 @@
F771E3EA20E2392E00AFB62D /* PBXTargetDependency */,
2C33C48523E2C475005F963B /* PBXTargetDependency */,
F7346E1B28B0EF5E006CE2D2 /* PBXTargetDependency */,
F7C9739828F17131002C43E2 /* PBXTargetDependency */,
);
name = Nextcloud;
packageProductDependencies = (
@ -2302,13 +2373,38 @@
productReference = F7CE8AFA1DC1F8D8009CAE48 /* Nextcloud.app */;
productType = "com.apple.product-type.application";
};
F7C9738F28F17131002C43E2 /* WidgetDashboardIntentHandler */ = {
isa = PBXNativeTarget;
buildConfigurationList = F7C9739A28F17132002C43E2 /* Build configuration list for PBXNativeTarget "WidgetDashboardIntentHandler" */;
buildPhases = (
F7C9738C28F17131002C43E2 /* Sources */,
F7C9738D28F17131002C43E2 /* Frameworks */,
F7C9738E28F17131002C43E2 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = WidgetDashboardIntentHandler;
packageProductDependencies = (
F7A8D72328F1771B008BBE1C /* NextcloudKit */,
F7A8D72528F17728008BBE1C /* Realm */,
F7A8D72728F17728008BBE1C /* RealmSwift */,
F7A8D72928F17733008BBE1C /* SVGKit */,
F7A8D72B28F17742008BBE1C /* SwiftEntryKit */,
F7A8D72D28F17764008BBE1C /* UICKeyChainStore */,
);
productName = WidgetDashboardIntentHandler;
productReference = F7C9739028F17131002C43E2 /* WidgetDashboardIntentHandler.appex */;
productType = "com.apple.product-type.app-extension";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
F7F67BA01A24D27800EE80DA /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 1340;
LastSwiftUpdateCheck = 1400;
LastUpgradeCheck = 1400;
ORGANIZATIONNAME = "Marino Faggiana";
TargetAttributes = {
@ -2351,6 +2447,9 @@
};
};
};
F7C9738F28F17131002C43E2 = {
CreatedOnToolsVersion = 14.0;
};
};
};
buildConfigurationList = F7F67BA31A24D27800EE80DA /* Build configuration list for PBXProject "Nextcloud" */;
@ -2431,6 +2530,7 @@
targets = (
F77B0DEB1D118A16002130FE /* Nextcloud */,
F7346E0F28B0EF5B006CE2D2 /* Widget */,
F7C9738F28F17131002C43E2 /* WidgetDashboardIntentHandler */,
F71459B41D12E3B700CAFEEC /* Share */,
F771E3CF20E2392D00AFB62D /* File Provider Extension */,
2C33C47E23E2C475005F963B /* Notification Service Extension */,
@ -2581,6 +2681,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
F7C9738E28F17131002C43E2 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
@ -2952,6 +3059,33 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
F7C9738C28F17131002C43E2 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
F7A8D73528F17E16008BBE1C /* NCManageDatabase.swift in Sources */,
F7A8D74428F1827B008BBE1C /* ThreadSafeDictionary.swift in Sources */,
F7C9739528F17131002C43E2 /* IntentHandler.swift in Sources */,
F7A8D73D28F181D3008BBE1C /* NCUtilityFileSystem.swift in Sources */,
F7A8D74528F1828E008BBE1C /* CCUtility.m in Sources */,
F7A8D73F28F181EF008BBE1C /* NCGlobal.swift in Sources */,
F7A8D74328F1826F008BBE1C /* String+Extensions.swift in Sources */,
F7A8D73728F17E1E008BBE1C /* NCManageDatabase+Account.swift in Sources */,
F7A8D73B28F17E2C008BBE1C /* NCElementsJSON.swift in Sources */,
F7A8D73C28F181BC008BBE1C /* NCBrand.swift in Sources */,
F7A8D74228F18261008BBE1C /* NCUtility.swift in Sources */,
F7A8D73A28F17E28008BBE1C /* NCManageDatabase+Video.swift in Sources */,
F7C9739D28F1733B002C43E2 /* Dashboard.intentdefinition in Sources */,
F7A8D73828F17E21008BBE1C /* NCManageDatabase+DashboardWidget.swift in Sources */,
F7A8D73928F17E25008BBE1C /* NCManageDatabase+Metadata.swift in Sources */,
F7A8D74128F18254008BBE1C /* UIColor+Extensions.swift in Sources */,
F7A8D73428F17E12008BBE1C /* NCDatabase.swift in Sources */,
F7A8D74028F18212008BBE1C /* UIImage+Extensions.swift in Sources */,
F7A8D73628F17E1A008BBE1C /* NCManageDatabase+Activity.swift in Sources */,
F7A8D73E28F181E2008BBE1C /* NCUserBaseUrl.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
@ -2980,6 +3114,11 @@
target = F771E3CF20E2392D00AFB62D /* File Provider Extension */;
targetProxy = F771E3E920E2392E00AFB62D /* PBXContainerItemProxy */;
};
F7C9739828F17131002C43E2 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = F7C9738F28F17131002C43E2 /* WidgetDashboardIntentHandler */;
targetProxy = F7C9739728F17131002C43E2 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin PBXVariantGroup section */
@ -3239,15 +3378,12 @@
F7346E1D28B0EF5E006CE2D2 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CODE_SIGN_ENTITLEMENTS = "$(SRCROOT)/iOSClient/Brand/Widget.entitlements";
GCC_DYNAMIC_NO_PIC = NO;
GCC_PREPROCESSOR_DEFINITIONS = (
"$(inherited)",
EXTENSION,
@ -3256,28 +3392,22 @@
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "$(SRCROOT)/iOSClient/Brand/Widget.plist";
INFOPLIST_KEY_CFBundleDisplayName = Nextcloud;
INFOPLIST_KEY_NSHumanReadableCopyright = "Copyright © 2022 Nextcloud. All rights reserved.";
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = it.twsweb.Nextcloud.Widget;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) EXTENSION EXTENSION_WIDGET";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_OBJC_BRIDGING_HEADER = "$(SRCROOT)/Widget/Widget-Brinding-header.h";
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
F7346E1E28B0EF5E006CE2D2 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CODE_SIGN_ENTITLEMENTS = "$(SRCROOT)/iOSClient/Brand/Widget.entitlements";
@ -3289,17 +3419,13 @@
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "$(SRCROOT)/iOSClient/Brand/Widget.plist";
INFOPLIST_KEY_CFBundleDisplayName = Nextcloud;
INFOPLIST_KEY_NSHumanReadableCopyright = "Copyright © 2022 Nextcloud. All rights reserved.";
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = it.twsweb.Nextcloud.Widget;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) EXTENSION EXTENSION_WIDGET";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_OBJC_BRIDGING_HEADER = "$(SRCROOT)/Widget/Widget-Brinding-header.h";
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
};
name = Release;
@ -3362,6 +3488,74 @@
};
name = Release;
};
F7C9739B28F17132002C43E2 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ANALYZER_NONNULL = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_ENTITLEMENTS = "$(SRCROOT)/iOSClient/Brand//WidgetDashboardIntentHandler.entitlements";
DEBUG_INFORMATION_FORMAT = dwarf;
GCC_PREPROCESSOR_DEFINITIONS = (
"$(inherited)",
EXTENSION,
EXTENSION_WIDGETDASHBOARDINTENTHANDLER,
);
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "$(SRCROOT)/iOSClient/Brand/WidgetDashboardIntentHandler.plist";
INFOPLIST_KEY_CFBundleDisplayName = WidgetDashboardIntentHandler;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = it.twsweb.Nextcloud.WidgetDashboardIntentHandler;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) EXTENSION EXTENSION_WIDGETDASHBOARDINTENTHANDLER";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_OBJC_BRIDGING_HEADER = "$(SRCROOT)/WidgetDashboardIntentHandler/WidgetDashboardIntentHandler-Brinding-header.h";
};
name = Debug;
};
F7C9739C28F17132002C43E2 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ANALYZER_NONNULL = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_ENTITLEMENTS = "$(SRCROOT)/iOSClient/Brand//WidgetDashboardIntentHandler.entitlements";
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
GCC_PREPROCESSOR_DEFINITIONS = (
"$(inherited)",
EXTENSION,
EXTENSION_WIDGETDASHBOARDINTENTHANDLER,
);
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "$(SRCROOT)/iOSClient/Brand/WidgetDashboardIntentHandler.plist";
INFOPLIST_KEY_CFBundleDisplayName = WidgetDashboardIntentHandler;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = it.twsweb.Nextcloud.WidgetDashboardIntentHandler;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) EXTENSION EXTENSION_WIDGETDASHBOARDINTENTHANDLER";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_OBJC_BRIDGING_HEADER = "$(SRCROOT)/WidgetDashboardIntentHandler/WidgetDashboardIntentHandler-Brinding-header.h";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
F7F67BC91A24D27800EE80DA /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
@ -3406,6 +3600,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
INFOPLIST_KEY_NSHumanReadableCopyright = "Copyright © 2022 Nextcloud. All rights reserved.";
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
@ -3466,6 +3661,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
INFOPLIST_KEY_NSHumanReadableCopyright = "Copyright © 2022 Nextcloud. All rights reserved.";
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
@ -3542,6 +3738,15 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
F7C9739A28F17132002C43E2 /* Build configuration list for PBXNativeTarget "WidgetDashboardIntentHandler" */ = {
isa = XCConfigurationList;
buildConfigurations = (
F7C9739B28F17132002C43E2 /* Debug */,
F7C9739C28F17132002C43E2 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
F7F67BA31A24D27800EE80DA /* Build configuration list for PBXProject "Nextcloud" */ = {
isa = XCConfigurationList;
buildConfigurations = (
@ -3896,6 +4101,36 @@
package = F788ECC5263AAAF900ADC67F /* XCRemoteSwiftPackageReference "MarkdownKit" */;
productName = MarkdownKit;
};
F7A8D72328F1771B008BBE1C /* NextcloudKit */ = {
isa = XCSwiftPackageProductDependency;
package = F783034028B511D200B84583 /* XCRemoteSwiftPackageReference "NextcloudKit" */;
productName = NextcloudKit;
};
F7A8D72528F17728008BBE1C /* Realm */ = {
isa = XCSwiftPackageProductDependency;
package = F710FC78277B7CFF00AA9FBF /* XCRemoteSwiftPackageReference "realm-swift" */;
productName = Realm;
};
F7A8D72728F17728008BBE1C /* RealmSwift */ = {
isa = XCSwiftPackageProductDependency;
package = F710FC78277B7CFF00AA9FBF /* XCRemoteSwiftPackageReference "realm-swift" */;
productName = RealmSwift;
};
F7A8D72928F17733008BBE1C /* SVGKit */ = {
isa = XCSwiftPackageProductDependency;
package = F75E57A725BF0D61002B72C2 /* XCRemoteSwiftPackageReference "SVGKit" */;
productName = SVGKit;
};
F7A8D72B28F17742008BBE1C /* SwiftEntryKit */ = {
isa = XCSwiftPackageProductDependency;
package = F73ADD1A265546880069EA0D /* XCRemoteSwiftPackageReference "SwiftEntryKit" */;
productName = SwiftEntryKit;
};
F7A8D72D28F17764008BBE1C /* UICKeyChainStore */ = {
isa = XCSwiftPackageProductDependency;
package = F76DA964277B76F10082465B /* XCRemoteSwiftPackageReference "UICKeyChainStore" */;
productName = UICKeyChainStore;
};
F7BB7E4627A18C56009B9F29 /* Parchment */ = {
isa = XCSwiftPackageProductDependency;
package = F7BB7E4527A18C56009B9F29 /* XCRemoteSwiftPackageReference "Parchment" */;

Просмотреть файл

@ -75,12 +75,14 @@ func getDashboardItems(displaySize: CGSize, withButton: Bool) -> Int {
}
}
func getDashboardDataEntry(intent: Applications, isPreview: Bool, displaySize: CGSize, completion: @escaping (_ entry: DashboardDataEntry) -> Void) {
func getDashboardDataEntry(intent: Applications?, isPreview: Bool, displaySize: CGSize, completion: @escaping (_ entry: DashboardDataEntry) -> Void) {
let dashboardItems = getDashboardItems(displaySize: displaySize, withButton: false)
let datasPlaceholder = Array(dashboardDatasTest[0...dashboardItems - 1])
var id = "recommendations"
var id: String = intent?.identifier ?? "activity"
/*
switch intent {
case .unknown:
id = "recommendations"
@ -95,7 +97,8 @@ func getDashboardDataEntry(intent: Applications, isPreview: Bool, displaySize: C
case .user_status:
id = "user_status"
}
*/
if isPreview {
return completion(DashboardDataEntry(date: Date(), datas: datasPlaceholder, tableDashboard: nil, tableButton: nil, isPlaceholder: true, titleImage: UIImage(named: "widget")!, title: "Dashboard", footerImage: "checkmark.icloud", footerText: NCBrandOptions.shared.brand + " dashboard"))
}

Просмотреть файл

@ -3,81 +3,7 @@
<plist version="1.0">
<dict>
<key>INEnums</key>
<array>
<dict>
<key>INEnumDisplayName</key>
<string>Applications</string>
<key>INEnumDisplayNameID</key>
<string>9yMkyI</string>
<key>INEnumGeneratesHeader</key>
<true/>
<key>INEnumName</key>
<string>Applications</string>
<key>INEnumType</key>
<string>Regular</string>
<key>INEnumValues</key>
<array>
<dict>
<key>INEnumValueDisplayName</key>
<string>unknown</string>
<key>INEnumValueDisplayNameID</key>
<string>EVRbMg</string>
<key>INEnumValueName</key>
<string>unknown</string>
</dict>
<dict>
<key>INEnumValueDisplayName</key>
<string>Notes</string>
<key>INEnumValueDisplayNameID</key>
<string>jHprBS</string>
<key>INEnumValueIndex</key>
<integer>1</integer>
<key>INEnumValueName</key>
<string>notes</string>
</dict>
<dict>
<key>INEnumValueDisplayName</key>
<string>Deck</string>
<key>INEnumValueDisplayNameID</key>
<string>zqY55O</string>
<key>INEnumValueIndex</key>
<integer>2</integer>
<key>INEnumValueName</key>
<string>deck</string>
</dict>
<dict>
<key>INEnumValueDisplayName</key>
<string>Recommendations</string>
<key>INEnumValueDisplayNameID</key>
<string>maQPuV</string>
<key>INEnumValueIndex</key>
<integer>3</integer>
<key>INEnumValueName</key>
<string>recommendations</string>
</dict>
<dict>
<key>INEnumValueDisplayName</key>
<string>User status</string>
<key>INEnumValueDisplayNameID</key>
<string>oMvXKY</string>
<key>INEnumValueIndex</key>
<integer>4</integer>
<key>INEnumValueName</key>
<string>user_status</string>
</dict>
<dict>
<key>INEnumValueDisplayName</key>
<string>Activity</string>
<key>INEnumValueDisplayNameID</key>
<string>roy1t6</string>
<key>INEnumValueIndex</key>
<integer>5</integer>
<key>INEnumValueName</key>
<string>activity</string>
</dict>
</array>
</dict>
</array>
<array/>
<key>INIntentDefinitionModelVersion</key>
<string>1.2</string>
<key>INIntentDefinitionNamespace</key>
@ -102,7 +28,7 @@
<key>INIntentIneligibleForSuggestions</key>
<true/>
<key>INIntentLastParameterTag</key>
<integer>6</integer>
<integer>7</integer>
<key>INIntentName</key>
<string>Dashboard</string>
<key>INIntentParameters</key>
@ -116,17 +42,12 @@
<string>TRaTZg</string>
<key>INIntentParameterDisplayPriority</key>
<integer>1</integer>
<key>INIntentParameterEnumType</key>
<string>Applications</string>
<key>INIntentParameterEnumTypeNamespace</key>
<string>88xZPY</string>
<key>INIntentParameterMetadata</key>
<dict>
<key>INIntentParameterMetadataDefaultValue</key>
<string>recommendations</string>
</dict>
<key>INIntentParameterName</key>
<string>Applications</string>
<key>INIntentParameterObjectType</key>
<string>Applications</string>
<key>INIntentParameterObjectTypeNamespace</key>
<string>88xZPY</string>
<key>INIntentParameterPromptDialogs</key>
<array>
<dict>
@ -141,31 +62,11 @@
<key>INIntentParameterPromptDialogType</key>
<string>Primary</string>
</dict>
<dict>
<key>INIntentParameterPromptDialogCustom</key>
<true/>
<key>INIntentParameterPromptDialogFormatString</key>
<string>There are ${count} options matching ${Applications}.</string>
<key>INIntentParameterPromptDialogFormatStringID</key>
<string>qZKu0p</string>
<key>INIntentParameterPromptDialogType</key>
<string>DisambiguationIntroduction</string>
</dict>
<dict>
<key>INIntentParameterPromptDialogCustom</key>
<true/>
<key>INIntentParameterPromptDialogFormatString</key>
<string>Just to confirm, you wanted ${Applications}?</string>
<key>INIntentParameterPromptDialogFormatStringID</key>
<string>XKkeMc</string>
<key>INIntentParameterPromptDialogType</key>
<string>Confirmation</string>
</dict>
</array>
<key>INIntentParameterTag</key>
<integer>6</integer>
<integer>7</integer>
<key>INIntentParameterType</key>
<string>Integer</string>
<string>Object</string>
</dict>
</array>
<key>INIntentResponse</key>
@ -197,6 +98,70 @@
</dict>
</array>
<key>INTypes</key>
<array/>
<array>
<dict>
<key>INTypeDisplayName</key>
<string>Applications</string>
<key>INTypeDisplayNameID</key>
<string>l090JH</string>
<key>INTypeLastPropertyTag</key>
<integer>99</integer>
<key>INTypeName</key>
<string>Applications</string>
<key>INTypeProperties</key>
<array>
<dict>
<key>INTypePropertyDefault</key>
<true/>
<key>INTypePropertyDisplayPriority</key>
<integer>1</integer>
<key>INTypePropertyName</key>
<string>identifier</string>
<key>INTypePropertyTag</key>
<integer>1</integer>
<key>INTypePropertyType</key>
<string>String</string>
</dict>
<dict>
<key>INTypePropertyDefault</key>
<true/>
<key>INTypePropertyDisplayPriority</key>
<integer>2</integer>
<key>INTypePropertyName</key>
<string>displayString</string>
<key>INTypePropertyTag</key>
<integer>2</integer>
<key>INTypePropertyType</key>
<string>String</string>
</dict>
<dict>
<key>INTypePropertyDefault</key>
<true/>
<key>INTypePropertyDisplayPriority</key>
<integer>3</integer>
<key>INTypePropertyName</key>
<string>pronunciationHint</string>
<key>INTypePropertyTag</key>
<integer>3</integer>
<key>INTypePropertyType</key>
<string>String</string>
</dict>
<dict>
<key>INTypePropertyDefault</key>
<true/>
<key>INTypePropertyDisplayPriority</key>
<integer>4</integer>
<key>INTypePropertyName</key>
<string>alternativeSpeakableMatches</string>
<key>INTypePropertySupportsMultipleValues</key>
<true/>
<key>INTypePropertyTag</key>
<integer>4</integer>
<key>INTypePropertyType</key>
<string>SpeakableString</string>
</dict>
</array>
</dict>
</array>
</dict>
</plist>

Просмотреть файл

@ -0,0 +1,33 @@
//
// IntentHandler.swift
// WidgetDashboardIntentHandler
//
// Created by Marino Faggiana on 08/10/22.
// Copyright © 2022 Marino Faggiana. All rights reserved.
//
import Intents
import RealmSwift
class IntentHandler: INExtension, DashboardIntentHandling {
override func handler(for intent: INIntent) -> Any {
// This is the default implementation. If you want different objects to handle different intents,
// you can override this and return the handler you want for that particular intent.
guard let account = NCManageDatabase.shared.getActiveAccount() else {
return self
}
return self
}
func provideCategoryOptionsCollection(for intent: DashboardIntentHandling, with completion: @escaping (INObjectCollection<Applications>?, Error?) -> Void) {
let eventCategory = Applications(identifier: "ciao", display: "ciao")
let collection = INObjectCollection(items: [eventCategory])
completion(collection, nil)
}
}

Просмотреть файл

@ -0,0 +1,5 @@
//
// Use this file to import your target's public headers that you would like to expose to Swift.
//
#import "CCUtility.h"

Просмотреть файл

@ -40,3 +40,7 @@
#if defined(EXTENSION_WIDGET)
#import "Widget-Swift.h"
#endif
#if defined(EXTENSION_WIDGETDASHBOARDINTENTHANDLER)
#import "WidgetDashboardIntentHandler-Swift.h"
#endif

Просмотреть файл

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.application-groups</key>
<array>
<string>group.it.twsweb.Crypto-Cloud</string>
</array>
<key>keychain-access-groups</key>
<array>
<string>$(AppIdentifierPrefix)it.twsweb.Crypto-Cloud</string>
</array>
</dict>
</plist>

Просмотреть файл

@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSExtension</key>
<dict>
<key>NSExtensionAttributes</key>
<dict>
<key>IntentsRestrictedWhileLocked</key>
<array/>
<key>IntentsRestrictedWhileProtectedDataUnavailable</key>
<array/>
<key>IntentsSupported</key>
<array>
<string>DashboardIntent</string>
</array>
</dict>
<key>NSExtensionPointIdentifier</key>
<string>com.apple.intents-service</string>
<key>NSExtensionPrincipalClass</key>
<string>$(PRODUCT_MODULE_NAME).IntentHandler</string>
</dict>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
</dict>
</plist>