feat: You can now share files & text from other apps into SN on iOS (#2358)

This commit is contained in:
Aman Harwara
2023-07-15 15:05:49 +05:30
committed by GitHub
parent 61043aee65
commit 88ef5887a9
12 changed files with 930 additions and 40 deletions

View File

@@ -8,6 +8,11 @@
/* Begin PBXBuildFile section */
00E356F31AD99517003FC87E /* StandardNotesTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* StandardNotesTests.m */; };
07CAB75E2A618128008FE1EF /* ShareViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07CAB75D2A618128008FE1EF /* ShareViewController.swift */; };
07CAB7612A618128008FE1EF /* MainInterface.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 07CAB75F2A618128008FE1EF /* MainInterface.storyboard */; };
07CAB7652A618128008FE1EF /* Share To SN.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 07CAB75B2A618128008FE1EF /* Share To SN.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
07CAB76E2A618353008FE1EF /* ReceiveSharingIntent.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07CAB76D2A618353008FE1EF /* ReceiveSharingIntent.swift */; };
07CAB7702A618385008FE1EF /* ReceiveSharingIntent.m in Sources */ = {isa = PBXBuildFile; fileRef = 07CAB76F2A618385008FE1EF /* ReceiveSharingIntent.m */; };
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
1C2EEB3B45F4EB07AC795C77 /* BuildFile in Frameworks */ = {isa = PBXBuildFile; };
@@ -34,13 +39,43 @@
remoteGlobalIDString = 13B07F861A680F5B00A75B9A;
remoteInfo = StandardNotes;
};
07CAB7632A618128008FE1EF /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 07CAB75A2A618128008FE1EF;
remoteInfo = "Share To SN";
};
/* End PBXContainerItemProxy section */
/* Begin PBXCopyFilesBuildPhase section */
07CAB7662A618128008FE1EF /* Embed Foundation Extensions */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 13;
files = (
07CAB7652A618128008FE1EF /* Share To SN.appex in Embed Foundation Extensions */,
);
name = "Embed Foundation Extensions";
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
00E356EE1AD99517003FC87E /* StandardNotesTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = StandardNotesTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
00E356F21AD99517003FC87E /* StandardNotesTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = StandardNotesTests.m; sourceTree = "<group>"; };
04FCB5A3A3387CA3CFC82AA3 /* libPods-StandardNotes-StandardNotesTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-StandardNotes-StandardNotesTests.a"; sourceTree = BUILT_PRODUCTS_DIR; };
07CAB75B2A618128008FE1EF /* Share To SN.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = "Share To SN.appex"; sourceTree = BUILT_PRODUCTS_DIR; };
07CAB75D2A618128008FE1EF /* ShareViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShareViewController.swift; sourceTree = "<group>"; };
07CAB7602A618128008FE1EF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/MainInterface.storyboard; sourceTree = "<group>"; };
07CAB7622A618128008FE1EF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
07CAB76A2A6182C7008FE1EF /* StandardNotesDebug.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; name = StandardNotesDebug.entitlements; path = StandardNotes/StandardNotesDebug.entitlements; sourceTree = "<group>"; };
07CAB76B2A6182D6008FE1EF /* Share To SNDebug.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = "Share To SNDebug.entitlements"; sourceTree = "<group>"; };
07CAB76C2A618353008FE1EF /* StandardNotes-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "StandardNotes-Bridging-Header.h"; sourceTree = "<group>"; };
07CAB76D2A618353008FE1EF /* ReceiveSharingIntent.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = ReceiveSharingIntent.swift; path = ReceiveSharingIntent/ReceiveSharingIntent.swift; sourceTree = "<group>"; };
07CAB76F2A618385008FE1EF /* ReceiveSharingIntent.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = ReceiveSharingIntent.m; path = ReceiveSharingIntent/ReceiveSharingIntent.m; sourceTree = "<group>"; };
0BB10C8D896AFACECE748F6D /* Pods-StandardNotesDev.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-StandardNotesDev.release.xcconfig"; path = "Target Support Files/Pods-StandardNotesDev/Pods-StandardNotesDev.release.xcconfig"; sourceTree = "<group>"; };
13B07F961A680F5B00A75B9A /* StandardNotes.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = StandardNotes.app; sourceTree = BUILT_PRODUCTS_DIR; };
13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = StandardNotes/AppDelegate.h; sourceTree = "<group>"; };
@@ -75,6 +110,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
07CAB7582A618128008FE1EF /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
13B07F8C1A680F5B00A75B9A /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
@@ -113,6 +155,17 @@
name = "Supporting Files";
sourceTree = "<group>";
};
07CAB75C2A618128008FE1EF /* Share To SN */ = {
isa = PBXGroup;
children = (
07CAB76B2A6182D6008FE1EF /* Share To SNDebug.entitlements */,
07CAB75D2A618128008FE1EF /* ShareViewController.swift */,
07CAB75F2A618128008FE1EF /* MainInterface.storyboard */,
07CAB7622A618128008FE1EF /* Info.plist */,
);
path = "Share To SN";
sourceTree = "<group>";
};
0D0B9F98B8FBE9ED9C11F260 /* Pods */ = {
isa = PBXGroup;
children = (
@@ -129,6 +182,7 @@
13B07FAE1A68108700A75B9A /* StandardNotes */ = {
isa = PBXGroup;
children = (
07CAB76A2A6182C7008FE1EF /* StandardNotesDebug.entitlements */,
D261494428699DCE00B17102 /* Web.bundle */,
13B07FAF1A68108700A75B9A /* AppDelegate.h */,
CDC75795292552080019F4AF /* AppDelegate.mm */,
@@ -137,6 +191,9 @@
13B07FB71A68108700A75B9A /* main.m */,
CD7D5EC8278005B6005FE1BF /* Info.plist */,
CD7D5EC927800608005FE1BF /* LaunchScreen.storyboard */,
07CAB76D2A618353008FE1EF /* ReceiveSharingIntent.swift */,
07CAB76C2A618353008FE1EF /* StandardNotes-Bridging-Header.h */,
07CAB76F2A618385008FE1EF /* ReceiveSharingIntent.m */,
);
name = StandardNotes;
sourceTree = "<group>";
@@ -166,6 +223,7 @@
13B07FAE1A68108700A75B9A /* StandardNotes */,
832341AE1AAA6A7D00B99B32 /* Libraries */,
00E356EF1AD99517003FC87E /* StandardNotesTests */,
07CAB75C2A618128008FE1EF /* Share To SN */,
83CBBA001A601CBA00E9B192 /* Products */,
2D16E6871FA4F8E400B85C8A /* Frameworks */,
CD7D5EE127801645005FE1BF /* StandardNotesDev-Info.plist */,
@@ -184,6 +242,7 @@
13B07F961A680F5B00A75B9A /* StandardNotes.app */,
00E356EE1AD99517003FC87E /* StandardNotesTests.xctest */,
CD7D5EDF278015D2005FE1BF /* StandardNotesDev.app */,
07CAB75B2A618128008FE1EF /* Share To SN.appex */,
);
name = Products;
sourceTree = "<group>";
@@ -212,6 +271,23 @@
productReference = 00E356EE1AD99517003FC87E /* StandardNotesTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
07CAB75A2A618128008FE1EF /* Share To SN */ = {
isa = PBXNativeTarget;
buildConfigurationList = 07CAB7692A618128008FE1EF /* Build configuration list for PBXNativeTarget "Share To SN" */;
buildPhases = (
07CAB7572A618128008FE1EF /* Sources */,
07CAB7582A618128008FE1EF /* Frameworks */,
07CAB7592A618128008FE1EF /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = "Share To SN";
productName = "Share To SN";
productReference = 07CAB75B2A618128008FE1EF /* Share To SN.appex */;
productType = "com.apple.product-type.app-extension";
};
13B07F861A680F5B00A75B9A /* StandardNotes */ = {
isa = PBXNativeTarget;
buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "StandardNotes" */;
@@ -224,10 +300,12 @@
00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
ADF6EC52208176452ADF4217 /* [CP] Embed Pods Frameworks */,
BD9D24718C148A593389F498 /* [CP] Copy Pods Resources */,
07CAB7662A618128008FE1EF /* Embed Foundation Extensions */,
);
buildRules = (
);
dependencies = (
07CAB7642A618128008FE1EF /* PBXTargetDependency */,
);
name = StandardNotes;
productName = StandardNotes;
@@ -262,14 +340,18 @@
83CBB9F71A601CBA00E9B192 /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 1420;
LastUpgradeCheck = 1210;
TargetAttributes = {
00E356ED1AD99517003FC87E = {
CreatedOnToolsVersion = 6.2;
TestTargetID = 13B07F861A680F5B00A75B9A;
};
07CAB75A2A618128008FE1EF = {
CreatedOnToolsVersion = 14.2;
};
13B07F861A680F5B00A75B9A = {
LastSwiftMigration = 1120;
LastSwiftMigration = 1420;
};
};
};
@@ -289,6 +371,7 @@
13B07F861A680F5B00A75B9A /* StandardNotes */,
00E356ED1AD99517003FC87E /* StandardNotesTests */,
CD7D5ECB278015D2005FE1BF /* StandardNotesDev */,
07CAB75A2A618128008FE1EF /* Share To SN */,
);
};
/* End PBXProject section */
@@ -301,6 +384,14 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
07CAB7592A618128008FE1EF /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
07CAB7612A618128008FE1EF /* MainInterface.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
13B07F8E1A680F5B00A75B9A /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
@@ -570,11 +661,21 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
07CAB7572A618128008FE1EF /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
07CAB75E2A618128008FE1EF /* ShareViewController.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
13B07F871A680F5B00A75B9A /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
CDC75796292552080019F4AF /* AppDelegate.mm in Sources */,
07CAB76E2A618353008FE1EF /* ReceiveSharingIntent.swift in Sources */,
07CAB7702A618385008FE1EF /* ReceiveSharingIntent.m in Sources */,
13B07FC11A68108700A75B9A /* main.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
@@ -596,13 +697,30 @@
target = 13B07F861A680F5B00A75B9A /* StandardNotes */;
targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */;
};
07CAB7642A618128008FE1EF /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 07CAB75A2A618128008FE1EF /* Share To SN */;
targetProxy = 07CAB7632A618128008FE1EF /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin PBXVariantGroup section */
07CAB75F2A618128008FE1EF /* MainInterface.storyboard */ = {
isa = PBXVariantGroup;
children = (
07CAB7602A618128008FE1EF /* Base */,
);
name = MainInterface.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
00E356F61AD99517003FC87E /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 5915B3231CE7C52662278306 /* Pods-StandardNotes-StandardNotesTests.debug.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
BUNDLE_LOADER = "$(TEST_HOST)";
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
@@ -630,6 +748,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 321F15E603CF0AF8B1769447 /* Pods-StandardNotes-StandardNotesTests.release.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
BUNDLE_LOADER = "$(TEST_HOST)";
COPY_PHASE_STRIP = NO;
INFOPLIST_FILE = StandardNotesTests/Info.plist;
@@ -650,13 +769,93 @@
};
name = Release;
};
07CAB7672A618128008FE1EF /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_ENTITLEMENTS = "Share To SN/Share To SNDebug.entitlements";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = dwarf;
DEVELOPMENT_TEAM = HKF9BXSN95;
GCC_C_LANGUAGE_STANDARD = gnu11;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "Share To SN/Info.plist";
INFOPLIST_KEY_CFBundleDisplayName = "Share To SN";
INFOPLIST_KEY_NSHumanReadableCopyright = "";
IPHONEOS_DEPLOYMENT_TARGET = 16.2;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 1.0;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = "com.standardnotes.standardnotes.Share-To-SN";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
07CAB7682A618128008FE1EF /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_IDENTITY = "iPhone Distribution";
CODE_SIGN_STYLE = Automatic;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = HKF9BXSN95;
GCC_C_LANGUAGE_STANDARD = gnu11;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "Share To SN/Info.plist";
INFOPLIST_KEY_CFBundleDisplayName = "Share To SN";
INFOPLIST_KEY_NSHumanReadableCopyright = "";
IPHONEOS_DEPLOYMENT_TARGET = 16.2;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 1.0;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = "com.standardnotes.standardnotes.Share-To-SN";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_OPTIMIZATION_LEVEL = "-O";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
};
13B07F941A680F5B00A75B9A /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 66417CEB7622E77D89928FCA /* Pods-StandardNotes.debug.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = Blue;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = StandardNotes/StandardNotes.entitlements;
CODE_SIGN_ENTITLEMENTS = StandardNotes/StandardNotesDebug.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
@@ -676,6 +875,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.standardnotes.standardnotes;
PRODUCT_NAME = StandardNotes;
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_OBJC_BRIDGING_HEADER = "StandardNotes-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
@@ -687,6 +887,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 948EE90E15EA48C27577820B /* Pods-StandardNotes.release.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = Blue;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = StandardNotes/StandardNotes.entitlements;
@@ -710,6 +911,7 @@
PRODUCT_NAME = StandardNotes;
PROVISIONING_PROFILE_SPECIFIER = "match AppStore com.standardnotes.standardnotes";
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "match AppStore com.standardnotes.standardnotes";
SWIFT_OBJC_BRIDGING_HEADER = "StandardNotes-Bridging-Header.h";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
VERSIONING_SYSTEM = "apple-generic";
@@ -916,6 +1118,15 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
07CAB7692A618128008FE1EF /* Build configuration list for PBXNativeTarget "Share To SN" */ = {
isa = XCConfigurationList;
buildConfigurations = (
07CAB7672A618128008FE1EF /* Debug */,
07CAB7682A618128008FE1EF /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "StandardNotes" */ = {
isa = XCConfigurationList;
buildConfigurations = (