Skip to content

Commit

Permalink
修正name
Browse files Browse the repository at this point in the history
  • Loading branch information
tanpengsccd committed Jun 23, 2019
1 parent 58d9151 commit 395c416
Show file tree
Hide file tree
Showing 5 changed files with 120 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# TPJSONFormatter
A Mac App for [HandyJSON](https://github.com/alibaba/HandyJSON)
# How to use?
1. APP放入应用程序目录,系统偏好设置-扩展-勾选TPJSONFormatter,Xocde-Preference-Key Bindings-搜索“TPJSONFormatter” 设置好快捷键。
1. APP放入应用程序目录,先打开一次,系统偏好设置-扩展-勾选TPJSONFormatter,Xocde-Preference-Key Bindings-搜索“TPJSONFormatter” 设置好快捷键。
使用复制JOSN 到粘贴板,使用快捷键,即可生成代码


Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1020"
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 = "A5ECE05322BF9F800018F32C"
BuildableName = "TPJSONFormatterExt.appex"
BlueprintName = "TPJSONFormatterExt"
ReferencedContainer = "container:TPJSONFormatter.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "7BD97AE72027246100B2D13A"
BuildableName = "TPJSONFormatter.app"
BlueprintName = "TPJSONFormatter"
ReferencedContainer = "container:TPJSONFormatter.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A5ECE05322BF9F800018F32C"
BuildableName = "TPJSONFormatterExt.appex"
BlueprintName = "TPJSONFormatterExt"
ReferencedContainer = "container:TPJSONFormatter.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Release"
selectedDebuggerIdentifier = ""
selectedLauncherIdentifier = "Xcode.IDEFoundation.Launcher.PosixSpawn"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES"
launchAutomaticallySubstyle = "2">
<RemoteRunnable
runnableDebuggingMode = "0"
BundleIdentifier = "com.apple.dt.Xcode"
RemotePath = "/Applications/Xcode.app">
</RemoteRunnable>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "7BD97AE72027246100B2D13A"
BuildableName = "TPJSONFormatter.app"
BlueprintName = "TPJSONFormatter"
ReferencedContainer = "container:TPJSONFormatter.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES"
launchAutomaticallySubstyle = "2">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "7BD97AE72027246100B2D13A"
BuildableName = "TPJSONFormatter.app"
BlueprintName = "TPJSONFormatter"
ReferencedContainer = "container:TPJSONFormatter.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
2 changes: 1 addition & 1 deletion TPJSONFormatter/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.0.3</string>
<string>0.1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSApplicationCategoryType</key>
Expand Down
3 changes: 2 additions & 1 deletion TPJSONFormatter/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class ViewController: NSViewController,NSTextViewDelegate {
"nullArray":[],
"array": [
{
"stringC":[]
"stringA":"stringA"
},
{
Expand All @@ -52,6 +52,7 @@ class ViewController: NSViewController,NSTextViewDelegate {
}
}
"""

#endif

}
Expand Down
8 changes: 4 additions & 4 deletions TPJSONFormatterExt/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>LSApplicationCategoryType</key>
<string></string>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
Expand All @@ -19,9 +17,11 @@
<key>CFBundlePackageType</key>
<string>XPC!</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>0.1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSApplicationCategoryType</key>
<string></string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>NSExtension</key>
Expand All @@ -36,7 +36,7 @@
<key>XCSourceEditorCommandIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER).SourceEditorCommand</string>
<key>XCSourceEditorCommandName</key>
<string>Source Editor Command</string>
<string>toCode</string>
</dict>
</array>
<key>XCSourceEditorExtensionPrincipalClass</key>
Expand Down

0 comments on commit 395c416

Please sign in to comment.