ios stuff
This commit is contained in:
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
/* Begin PBXBuildFile section */
|
/* Begin PBXBuildFile section */
|
||||||
16C383BC47682E60119C08CB /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 21497598D6296AB30C0EBA84 /* UIKit.framework */; };
|
16C383BC47682E60119C08CB /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 21497598D6296AB30C0EBA84 /* UIKit.framework */; };
|
||||||
28AC4E322DCFF4B000A78D36 /* Sharing.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 28AC4E282DCFF4B000A78D36 /* Sharing.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
|
28AC4E4A2DD0E21600A78D36 /* Sharing.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 28AC4E282DCFF4B000A78D36 /* Sharing.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
|
||||||
4CF1B89C17C5E734976BEFBE /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4C6D4774DE6800DAE9E77C70 /* Metal.framework */; };
|
4CF1B89C17C5E734976BEFBE /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4C6D4774DE6800DAE9E77C70 /* Metal.framework */; };
|
||||||
6AAF6095EAF01A93F2CE8305 /* libapp.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0C62A99D37C1C342BB06981B /* libapp.a */; };
|
6AAF6095EAF01A93F2CE8305 /* libapp.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0C62A99D37C1C342BB06981B /* libapp.a */; };
|
||||||
7123EC8A6063C72E5DA3E659 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BE76A4E4971EE0237680C836 /* QuartzCore.framework */; };
|
7123EC8A6063C72E5DA3E659 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BE76A4E4971EE0237680C836 /* QuartzCore.framework */; };
|
||||||
@ -35,14 +35,14 @@
|
|||||||
/* Begin PBXCopyFilesBuildPhase section */
|
/* Begin PBXCopyFilesBuildPhase section */
|
||||||
283EED912DC6170E00943E7E /* Embed Foundation Extensions */ = {
|
283EED912DC6170E00943E7E /* Embed Foundation Extensions */ = {
|
||||||
isa = PBXCopyFilesBuildPhase;
|
isa = PBXCopyFilesBuildPhase;
|
||||||
buildActionMask = 2147483647;
|
buildActionMask = 8;
|
||||||
dstPath = "";
|
dstPath = "";
|
||||||
dstSubfolderSpec = 13;
|
dstSubfolderSpec = 13;
|
||||||
files = (
|
files = (
|
||||||
28AC4E322DCFF4B000A78D36 /* Sharing.appex in Embed Foundation Extensions */,
|
28AC4E4A2DD0E21600A78D36 /* Sharing.appex in Embed Foundation Extensions */,
|
||||||
);
|
);
|
||||||
name = "Embed Foundation Extensions";
|
name = "Embed Foundation Extensions";
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 1;
|
||||||
};
|
};
|
||||||
/* End PBXCopyFilesBuildPhase section */
|
/* End PBXCopyFilesBuildPhase section */
|
||||||
|
|
||||||
@ -467,7 +467,7 @@
|
|||||||
INFOPLIST_FILE = Sharing/Info.plist;
|
INFOPLIST_FILE = Sharing/Info.plist;
|
||||||
INFOPLIST_KEY_CFBundleDisplayName = Sharing;
|
INFOPLIST_KEY_CFBundleDisplayName = Sharing;
|
||||||
INFOPLIST_KEY_NSHumanReadableCopyright = "";
|
INFOPLIST_KEY_NSHumanReadableCopyright = "";
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 18.4;
|
IPHONEOS_DEPLOYMENT_TARGET = 15.6;
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
@ -545,7 +545,7 @@
|
|||||||
INFOPLIST_FILE = Sharing/Info.plist;
|
INFOPLIST_FILE = Sharing/Info.plist;
|
||||||
INFOPLIST_KEY_CFBundleDisplayName = Sharing;
|
INFOPLIST_KEY_CFBundleDisplayName = Sharing;
|
||||||
INFOPLIST_KEY_NSHumanReadableCopyright = "";
|
INFOPLIST_KEY_NSHumanReadableCopyright = "";
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 18.4;
|
IPHONEOS_DEPLOYMENT_TARGET = 15.6;
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
@ -615,6 +615,7 @@
|
|||||||
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
|
||||||
MTL_ENABLE_DEBUG_INFO = NO;
|
MTL_ENABLE_DEBUG_INFO = NO;
|
||||||
MTL_FAST_MATH = YES;
|
MTL_FAST_MATH = YES;
|
||||||
|
ONLY_ACTIVE_ARCH = NO;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
SDKROOT = iphoneos;
|
SDKROOT = iphoneos;
|
||||||
SWIFT_COMPILATION_MODE = wholemodule;
|
SWIFT_COMPILATION_MODE = wholemodule;
|
||||||
|
@ -2,30 +2,28 @@
|
|||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
<dict>
|
<dict>
|
||||||
<key>NSExtension</key>
|
<key>NSExtension</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>NSExtensionAttributes</key>
|
<key>NSExtensionAttributes</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>NSExtensionActivationRule</key>
|
<key>NSExtensionPointIdentifier</key>
|
||||||
<dict>
|
<string>com.apple.share-services</string>
|
||||||
<key>NSExtensionActivationSupportsImageWithMaxCount</key>
|
<key>NSExtensionMainStoryboard</key>
|
||||||
<integer>1</integer>
|
<string>MainInterface</string>
|
||||||
<key>NSExtensionActivationSupportsMovieWithMaxCount</key>
|
<key>NSExtensionActivationRule</key>
|
||||||
<integer>0</integer>
|
<dict>
|
||||||
<key>NSExtensionActivationSupportsFileWithMaxCount</key>
|
<key>NSExtensionActivationSupportsMovie</key>
|
||||||
<integer>0</integer>
|
<false/>
|
||||||
<key>NSExtensionActivationSupportsText</key>
|
<key>NSExtensionActivationSupportsImage</key>
|
||||||
<false/>
|
<true/>
|
||||||
<key>NSExtensionActivationSupportsWebURLWithMaxCount</key>
|
<key>NSExtensionActivationSupportsText</key>
|
||||||
<integer>0</integer>
|
<false/>
|
||||||
<key>NSExtensionActivationSupportsWebPageWithMaxCount</key>
|
</dict>
|
||||||
<integer>0</integer>
|
</dict>
|
||||||
</dict>
|
<key>NSExtensionMainStoryboard</key>
|
||||||
</dict>
|
<string>MainInterface</string>
|
||||||
<key>NSExtensionMainStoryboard</key>
|
<key>NSExtensionPointIdentifier</key>
|
||||||
<string>MainInterface</string>
|
<string>com.apple.share-services</string>
|
||||||
<key>NSExtensionPointIdentifier</key>
|
</dict>
|
||||||
<string>com.apple.share-services</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
@ -269,11 +269,11 @@ class ShareViewController: SLComposeServiceViewController {
|
|||||||
}
|
}
|
||||||
// Fallback for common types if UTType fails or for robustness
|
// Fallback for common types if UTType fails or for robustness
|
||||||
switch pathExtension.lowercased() {
|
switch pathExtension.lowercased() {
|
||||||
case "jpg", "jpeg": return "image/jpeg"
|
// case "jpg", "jpeg": return "image/jpeg"
|
||||||
case "png": return "image/png"
|
// case "png": return "image/png"
|
||||||
case "gif": return "image/gif"
|
// case "gif": return "image/gif"
|
||||||
case "bmp": return "image/bmp"
|
// case "bmp": return "image/bmp"
|
||||||
case "tiff", "tif": return "image/tiff"
|
// case "tiff", "tif": return "image/tiff"
|
||||||
default: return "application/octet-stream" // Generic fallback
|
default: return "application/octet-stream" // Generic fallback
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user