Skip to content

Commit

Permalink
update info (#2)
Browse files Browse the repository at this point in the history
* update: info

* update
  • Loading branch information
W-Mai authored Jun 19, 2023
1 parent caa585b commit 5a93560
Show file tree
Hide file tree
Showing 10 changed files with 332 additions and 17 deletions.
4 changes: 2 additions & 2 deletions Shared/StickerManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ class StickerManager {
}
}

let GroupRootPath = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: "group.xSticker")!
let GroupRootPath = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: "group.studio.xclz.xSticker")!
let stickerManager = StickerManager(root: GroupRootPath)

func downsample(imageAt imageURL: URL, targetMaxSize: CGFloat) -> UIImage {
Expand All @@ -190,7 +190,7 @@ func downsample(imageAt imageURL: URL, targetMaxSize: CGFloat) -> UIImage {
let downsampleOptions = [kCGImageSourceCreateThumbnailFromImageAlways: true,
kCGImageSourceShouldCacheImmediately: true,
kCGImageSourceCreateThumbnailWithTransform: true,
kCGImageSourceThumbnailMaxPixelSize: maxDimensionInPixels] as CFDictionary
kCGImageSourceThumbnailMaxPixelSize: maxDimensionInPixels] as [CFString : Any] as CFDictionary
//生成
let downsampledImage = CGImageSourceCreateThumbnailAtIndex(imageSource, 0, downsampleOptions)!
return UIImage(cgImage: downsampledImage)
Expand Down
2 changes: 1 addition & 1 deletion iMsgExtPart/iMsgExtPart.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<dict>
<key>com.apple.security.application-groups</key>
<array>
<string>group.xSticker</string>
<string>group.studio.xclz.xSticker</string>
</array>
</dict>
</plist>
28 changes: 16 additions & 12 deletions xSticker.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -638,10 +638,11 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = xSticker/xSticker.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 7;
DEVELOPMENT_ASSET_PATHS = "\"xSticker/Preview Content\"";
DEVELOPMENT_TEAM = 25LKBCVZX2;
DEVELOPMENT_TEAM = 3T73Y2T897;
ENABLE_PREVIEWS = YES;
INFOPLIST_FILE = xSticker/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
Expand All @@ -650,8 +651,9 @@
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.1.3;
PRODUCT_BUNDLE_IDENTIFIER = "xclz-studio.xSticker";
PRODUCT_BUNDLE_IDENTIFIER = studio.xclz.xSticker;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
Expand All @@ -664,10 +666,11 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = xSticker/xSticker.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 7;
DEVELOPMENT_ASSET_PATHS = "\"xSticker/Preview Content\"";
DEVELOPMENT_TEAM = 25LKBCVZX2;
DEVELOPMENT_TEAM = 3T73Y2T897;
ENABLE_PREVIEWS = YES;
INFOPLIST_FILE = xSticker/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
Expand All @@ -676,8 +679,9 @@
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.1.3;
PRODUCT_BUNDLE_IDENTIFIER = "xclz-studio.xSticker";
PRODUCT_BUNDLE_IDENTIFIER = studio.xclz.xSticker;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
Expand All @@ -690,15 +694,15 @@
CODE_SIGN_ENTITLEMENTS = iMsgExtPart/iMsgExtPart.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 7;
DEVELOPMENT_TEAM = 25LKBCVZX2;
DEVELOPMENT_TEAM = 3T73Y2T897;
INFOPLIST_FILE = iMsgExtPart/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 1.1.3;
PRODUCT_BUNDLE_IDENTIFIER = "xclz-studio.xSticker.iMsgExtPart";
PRODUCT_BUNDLE_IDENTIFIER = studio.xclz.xSticker.iMsgExtPart;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_VERSION = 5.0;
Expand All @@ -713,15 +717,15 @@
CODE_SIGN_ENTITLEMENTS = iMsgExtPart/iMsgExtPart.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 7;
DEVELOPMENT_TEAM = 25LKBCVZX2;
DEVELOPMENT_TEAM = 3T73Y2T897;
INFOPLIST_FILE = iMsgExtPart/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 1.1.3;
PRODUCT_BUNDLE_IDENTIFIER = "xclz-studio.xSticker.iMsgExtPart";
PRODUCT_BUNDLE_IDENTIFIER = studio.xclz.xSticker.iMsgExtPart;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_VERSION = 5.0;
Expand All @@ -735,15 +739,15 @@
CODE_SIGN_ENTITLEMENTS = xStickerBoard/xStickerBoard.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 7;
DEVELOPMENT_TEAM = 25LKBCVZX2;
DEVELOPMENT_TEAM = 3T73Y2T897;
INFOPLIST_FILE = xStickerBoard/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 1.1.3;
PRODUCT_BUNDLE_IDENTIFIER = "xclz-studio.xSticker.xStickerBoard";
PRODUCT_BUNDLE_IDENTIFIER = studio.xclz.xSticker.xStickerBoard;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_VERSION = 5.0;
Expand All @@ -757,15 +761,15 @@
CODE_SIGN_ENTITLEMENTS = xStickerBoard/xStickerBoard.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 7;
DEVELOPMENT_TEAM = 25LKBCVZX2;
DEVELOPMENT_TEAM = 3T73Y2T897;
INFOPLIST_FILE = xStickerBoard/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 1.1.3;
PRODUCT_BUNDLE_IDENTIFIER = "xclz-studio.xSticker.xStickerBoard";
PRODUCT_BUNDLE_IDENTIFIER = studio.xclz.xSticker.xStickerBoard;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_VERSION = 5.0;
Expand Down
Binary file not shown.
96 changes: 96 additions & 0 deletions xSticker.xcodeproj/xcshareddata/xcschemes/iMsgExtPart.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1430"
wasCreatedForAppExtension = "YES"
version = "2.0">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "5E4741F1271824CE001E0E11"
BuildableName = "iMsgExtPart.appex"
BlueprintName = "iMsgExtPart"
ReferencedContainer = "container:xSticker.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "5E4741D627181B24001E0E11"
BuildableName = "xSticker.app"
BlueprintName = "xSticker"
ReferencedContainer = "container:xSticker.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = ""
selectedLauncherIdentifier = "Xcode.IDEFoundation.Launcher.PosixSpawn"
launchStyle = "0"
askForAppToLaunch = "Yes"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES"
launchAutomaticallySubstyle = "2">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "5E4741D627181B24001E0E11"
BuildableName = "xSticker.app"
BlueprintName = "xSticker"
ReferencedContainer = "container:xSticker.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES"
askForAppToLaunch = "Yes"
launchAutomaticallySubstyle = "2">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "5E4741D627181B24001E0E11"
BuildableName = "xSticker.app"
BlueprintName = "xSticker"
ReferencedContainer = "container:xSticker.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
77 changes: 77 additions & 0 deletions xSticker.xcodeproj/xcshareddata/xcschemes/xSticker.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1430"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "5E4741D627181B24001E0E11"
BuildableName = "xSticker.app"
BlueprintName = "xSticker"
ReferencedContainer = "container:xSticker.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "5E4741D627181B24001E0E11"
BuildableName = "xSticker.app"
BlueprintName = "xSticker"
ReferencedContainer = "container:xSticker.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "5E4741D627181B24001E0E11"
BuildableName = "xSticker.app"
BlueprintName = "xSticker"
ReferencedContainer = "container:xSticker.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Loading

0 comments on commit 5a93560

Please sign in to comment.