Skip to content

Commit

Permalink
GONMarkupParserUtils optimisation
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasgoutaland committed Sep 12, 2018
1 parent afbf524 commit 9307e7c
Show file tree
Hide file tree
Showing 7 changed files with 1,026 additions and 1,103 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Change Log
## [__0.7.8__](https://github.com/nicolasgoutaland/GONMarkupParser/releases/tag/0.7.8)
GONMarkupParserUtils optimisation<br/>
## [__0.7.7__](https://github.com/nicolasgoutaland/GONMarkupParser/releases/tag/0.7.7)
Fixed sample Podfile<br/>
## [__0.7.6__](https://github.com/nicolasgoutaland/GONMarkupParser/releases/tag/0.7.6)
Expand Down
1,949 changes: 975 additions & 974 deletions Classes/GONMarkupParserUtils.m

Large diffs are not rendered by default.

131 changes: 27 additions & 104 deletions Example/GONMarkupParserSample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
objects = {

/* Begin PBXBuildFile section */
401E32021B281142C6BABB70 /* libPods-defaults-GONMarkupParserSample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 8E6D2CD1AD599D4565EAA3ED /* libPods-defaults-GONMarkupParserSample.a */; };
5C0790A81ED74D0B0011FF0E /* GONMarkupStrong.m in Sources */ = {isa = PBXBuildFile; fileRef = 5C0790A71ED74D0B0011FF0E /* GONMarkupStrong.m */; };
5C1D1C2E19920D7100F7B642 /* GONMarkupParagrap.m in Sources */ = {isa = PBXBuildFile; fileRef = 5C1D1C2D19920D7100F7B642 /* GONMarkupParagrap.m */; };
5C2E11E41B8A146D0065D29C /* UIButton+GONMarkupParser.m in Sources */ = {isa = PBXBuildFile; fileRef = 5C2E11E31B8A146D0065D29C /* UIButton+GONMarkupParser.m */; };
Expand Down Expand Up @@ -86,8 +87,6 @@
5CE27199195B1412007FCF44 /* GONMarkupParser.m in Sources */ = {isa = PBXBuildFile; fileRef = 5CE27191195B1412007FCF44 /* GONMarkupParser.m */; };
5CE2719A195B1412007FCF44 /* GONMarkupFont.m in Sources */ = {isa = PBXBuildFile; fileRef = 5CE27193195B1412007FCF44 /* GONMarkupFont.m */; };
5CE2719B195B1412007FCF44 /* GONMarkupFont.m in Sources */ = {isa = PBXBuildFile; fileRef = 5CE27193195B1412007FCF44 /* GONMarkupFont.m */; };
6C6DD8957B134FA9B1AE1824 /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 17B85795BD5D4A4195265653 /* libPods.a */; };
AD657A810CFC90EF7829443F /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 17B85795BD5D4A4195265653 /* libPods.a */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand All @@ -101,7 +100,6 @@
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
17B85795BD5D4A4195265653 /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; };
5C0790A61ED74D0B0011FF0E /* GONMarkupStrong.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = GONMarkupStrong.h; path = ../Classes/GONMarkupStrong.h; sourceTree = "<group>"; };
5C0790A71ED74D0B0011FF0E /* GONMarkupStrong.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = GONMarkupStrong.m; path = ../Classes/GONMarkupStrong.m; sourceTree = "<group>"; };
5C1BA2E419BF45BD00E3D67C /* GONMarkupParser_Categories.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = GONMarkupParser_Categories.h; path = ../Classes/GONMarkupParser_Categories.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -210,8 +208,9 @@
5CE27191195B1412007FCF44 /* GONMarkupParser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = GONMarkupParser.m; path = ../Classes/GONMarkupParser.m; sourceTree = "<group>"; };
5CE27192195B1412007FCF44 /* GONMarkupFont.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = GONMarkupFont.h; path = ../Classes/GONMarkupFont.h; sourceTree = "<group>"; };
5CE27193195B1412007FCF44 /* GONMarkupFont.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = GONMarkupFont.m; path = ../Classes/GONMarkupFont.m; sourceTree = "<group>"; };
F78DE98B74DE149CC7A5ADC1 /* Pods.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.release.xcconfig; path = "Pods/Target Support Files/Pods/Pods.release.xcconfig"; sourceTree = "<group>"; };
FD6D14F3EF0F1EE075363E64 /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.debug.xcconfig; path = "Pods/Target Support Files/Pods/Pods.debug.xcconfig"; sourceTree = "<group>"; };
8E6D2CD1AD599D4565EAA3ED /* libPods-defaults-GONMarkupParserSample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-defaults-GONMarkupParserSample.a"; sourceTree = BUILT_PRODUCTS_DIR; };
A11B08D3B67C671A7C1F41EB /* Pods-defaults-GONMarkupParserSample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-defaults-GONMarkupParserSample.debug.xcconfig"; path = "Pods/Target Support Files/Pods-defaults-GONMarkupParserSample/Pods-defaults-GONMarkupParserSample.debug.xcconfig"; sourceTree = "<group>"; };
CB19407DB2362C93C6FF1BC5 /* Pods-defaults-GONMarkupParserSample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-defaults-GONMarkupParserSample.release.xcconfig"; path = "Pods/Target Support Files/Pods-defaults-GONMarkupParserSample/Pods-defaults-GONMarkupParserSample.release.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand All @@ -223,7 +222,7 @@
5CE27153195B11E0007FCF44 /* CoreGraphics.framework in Frameworks */,
5CE27155195B11E0007FCF44 /* UIKit.framework in Frameworks */,
5CE27151195B11E0007FCF44 /* Foundation.framework in Frameworks */,
6C6DD8957B134FA9B1AE1824 /* libPods.a in Frameworks */,
401E32021B281142C6BABB70 /* libPods-defaults-GONMarkupParserSample.a in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -234,13 +233,21 @@
5CE27170195B11E0007FCF44 /* XCTest.framework in Frameworks */,
5CE27172195B11E0007FCF44 /* UIKit.framework in Frameworks */,
5CE27171195B11E0007FCF44 /* Foundation.framework in Frameworks */,
AD657A810CFC90EF7829443F /* libPods.a in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
2686016DECE5E515511864F6 /* Pods */ = {
isa = PBXGroup;
children = (
A11B08D3B67C671A7C1F41EB /* Pods-defaults-GONMarkupParserSample.debug.xcconfig */,
CB19407DB2362C93C6FF1BC5 /* Pods-defaults-GONMarkupParserSample.release.xcconfig */,
);
name = Pods;
sourceTree = "<group>";
};
5C404BC91A1C90E0007DCB2C /* DefaultConfiguration */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -467,7 +474,7 @@
5CE27175195B11E0007FCF44 /* GONMarkupParserSampleTests */,
5CE2714F195B11E0007FCF44 /* Frameworks */,
5CE2714E195B11E0007FCF44 /* Products */,
9ED8BC75C581B1C9016D9AE7 /* Pods */,
2686016DECE5E515511864F6 /* Pods */,
);
sourceTree = "<group>";
};
Expand All @@ -488,7 +495,7 @@
5CE27152195B11E0007FCF44 /* CoreGraphics.framework */,
5CE27154195B11E0007FCF44 /* UIKit.framework */,
5CE2716F195B11E0007FCF44 /* XCTest.framework */,
17B85795BD5D4A4195265653 /* libPods.a */,
8E6D2CD1AD599D4565EAA3ED /* libPods-defaults-GONMarkupParserSample.a */,
);
name = Frameworks;
sourceTree = "<group>";
Expand Down Expand Up @@ -613,28 +620,17 @@
name = DefaultMarkup;
sourceTree = "<group>";
};
9ED8BC75C581B1C9016D9AE7 /* Pods */ = {
isa = PBXGroup;
children = (
FD6D14F3EF0F1EE075363E64 /* Pods.debug.xcconfig */,
F78DE98B74DE149CC7A5ADC1 /* Pods.release.xcconfig */,
);
name = Pods;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
5CE2714C195B11E0007FCF44 /* GONMarkupParserSample */ = {
isa = PBXNativeTarget;
buildConfigurationList = 5CE2717F195B11E0007FCF44 /* Build configuration list for PBXNativeTarget "GONMarkupParserSample" */;
buildPhases = (
EC3DF1B1D208418697196C2B /* Check Pods Manifest.lock */,
F5CFB22B9E5CC0864471E289 /* [CP] Check Pods Manifest.lock */,
5CE27149195B11E0007FCF44 /* Sources */,
5CE2714A195B11E0007FCF44 /* Frameworks */,
5CE2714B195B11E0007FCF44 /* Resources */,
AF75F26F4574437294323C3C /* Copy Pods Resources */,
76B316C8E587F0981B66B953 /* Embed Pods Frameworks */,
);
buildRules = (
);
Expand All @@ -649,12 +645,9 @@
isa = PBXNativeTarget;
buildConfigurationList = 5CE27182195B11E0007FCF44 /* Build configuration list for PBXNativeTarget "GONMarkupParserSampleTests" */;
buildPhases = (
A00223591121399D271132D1 /* Check Pods Manifest.lock */,
5CE2716A195B11E0007FCF44 /* Sources */,
5CE2716B195B11E0007FCF44 /* Frameworks */,
5CE2716C195B11E0007FCF44 /* Resources */,
CA98D5286576877426AD6D21 /* Embed Pods Frameworks */,
4987DEF503902DACA3129A7C /* Copy Pods Resources */,
);
buildRules = (
);
Expand Down Expand Up @@ -731,94 +724,26 @@
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
4987DEF503902DACA3129A7C /* Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Copy Pods Resources";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-resources.sh\"\n";
showEnvVarsInLog = 0;
};
76B316C8E587F0981B66B953 /* Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Embed Pods Frameworks";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
A00223591121399D271132D1 /* Check Pods Manifest.lock */ = {
F5CFB22B9E5CC0864471E289 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Check Pods Manifest.lock";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n";
showEnvVarsInLog = 0;
};
AF75F26F4574437294323C3C /* Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
inputFileListPaths = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "Copy Pods Resources";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-resources.sh\"\n";
showEnvVarsInLog = 0;
};
CA98D5286576877426AD6D21 /* Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Embed Pods Frameworks";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
EC3DF1B1D208418697196C2B /* Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
name = "[CP] Check Pods Manifest.lock";
outputFileListPaths = (
);
name = "Check Pods Manifest.lock";
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-defaults-GONMarkupParserSample-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n";
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */
Expand Down Expand Up @@ -999,7 +924,7 @@
};
5CE27180195B11E0007FCF44 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = FD6D14F3EF0F1EE075363E64 /* Pods.debug.xcconfig */;
baseConfigurationReference = A11B08D3B67C671A7C1F41EB /* Pods-defaults-GONMarkupParserSample.debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
Expand All @@ -1018,7 +943,7 @@
};
5CE27181195B11E0007FCF44 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = F78DE98B74DE149CC7A5ADC1 /* Pods.release.xcconfig */;
baseConfigurationReference = CB19407DB2362C93C6FF1BC5 /* Pods-defaults-GONMarkupParserSample.release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
Expand All @@ -1037,7 +962,6 @@
};
5CE27183195B11E0007FCF44 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = FD6D14F3EF0F1EE075363E64 /* Pods.debug.xcconfig */;
buildSettings = {
BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/GONMarkupParserSample.app/GONMarkupParserSample";
FRAMEWORK_SEARCH_PATHS = (
Expand All @@ -1061,7 +985,6 @@
};
5CE27184195B11E0007FCF44 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = F78DE98B74DE149CC7A5ADC1 /* Pods.release.xcconfig */;
buildSettings = {
BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/GONMarkupParserSample.app/GONMarkupParserSample";
FRAMEWORK_SEARCH_PATHS = (
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?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>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
15 changes: 11 additions & 4 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
PODS:
- LazyProperty (1.1.0)
- NSString+Color (1.1.3)
- "NSString+Color (1.1.3)"

DEPENDENCIES:
- LazyProperty
- NSString+Color
- "NSString+Color"

SPEC REPOS:
https://github.com/cocoapods/specs.git:
- LazyProperty
- "NSString+Color"

SPEC CHECKSUMS:
LazyProperty: f48a27d1ded2b29771874d3b193fb9d41eae95e4
NSString+Color: 08fbd0b4cda31fd8602a5030f6bf1cedfed98203
"NSString+Color": 08fbd0b4cda31fd8602a5030f6bf1cedfed98203

PODFILE CHECKSUM: da4fe8d57558420c64da7bd826ddf7bd40be105f

COCOAPODS: 0.39.0
COCOAPODS: 1.5.3
2 changes: 1 addition & 1 deletion GONMarkupParser.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "GONMarkupParser"
s.version = "0.7.7"
s.version = "0.7.8"
s.summary = "NSAttributedString generation from NSString using XML, that can be easily extended."
s.platform = :ios, "7.0"
s.description = <<-DESC
Expand Down
22 changes: 2 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,23 +303,5 @@ No, definitely not. I was still able to push to GitHub yesterday.
## Contributors
See the [Contributors page](https://github.com/nicolasgoutaland/GONMarkupParser/graphs/contributors) on github.
## Versions
[__0.7.7__](https://github.com/nicolasgoutaland/GONMarkupParser/releases/tag/0.7.7) : Fixed sample Podfile<br/>
[__0.7.6__](https://github.com/nicolasgoutaland/GONMarkupParser/releases/tag/0.7.6) : Fixed a bug on NSParagraphStyle mutability<br/>
[__0.7.5__](https://github.com/nicolasgoutaland/GONMarkupParser/releases/tag/0.7.5) : Fixed bugs on lists, Added support for strong tag<br/>
[__0.7.4__](https://github.com/nicolasgoutaland/GONMarkupParser/releases/tag/0.7.4) : Fixed (again -_-) new line character bug on lists<br/>
[__0.7.3__](https://github.com/nicolasgoutaland/GONMarkupParser/releases/tag/0.7.3) : Fixed new line character bug on lists<br/>
[__0.7.2__](https://github.com/nicolasgoutaland/GONMarkupParser/releases/tag/0.7.2) : Fixed bug #21<br/>
[__0.7.1__](https://github.com/nicolasgoutaland/GONMarkupParser/releases/tag/0.7.1) : Fixed warning #18<br/>
[__0.7.0__](https://github.com/nicolasgoutaland/GONMarkupParser/releases/tag/0.7.0) : Fixed bug #15<br/>
[__0.6.9__](https://github.com/nicolasgoutaland/GONMarkupParser/releases/tag/0.6.9) : Fixed bug #12<br/>
[__0.6.8__](https://github.com/nicolasgoutaland/GONMarkupParser/releases/tag/0.6.8) : Fixed cocoapods import problem<br/>
[__0.6.7__](https://github.com/nicolasgoutaland/GONMarkupParser/releases/tag/0.6.7) : Added **color** attribute to **font** markup<br/>
[__0.6.6__](https://github.com/nicolasgoutaland/GONMarkupParser/releases/tag/0.6.6) : Added UIButton+GONMarkupParser category<br/>
[__0.6.5__](https://github.com/nicolasgoutaland/GONMarkupParser/releases/tag/0.6.5) : Updated HTML chars tables<br/>
[__0.6.4__](https://github.com/nicolasgoutaland/GONMarkupParser/releases/tag/0.6.4) : Updated HTML chars tables<br/>
[__0.6.3__](https://github.com/nicolasgoutaland/GONMarkupParser/releases/tag/0.6.3) : Fixed a bug in anchor support<br/>
[__0.6.2__](https://github.com/nicolasgoutaland/GONMarkupParser/releases/tag/0.6.2) : Added anchor support<br/>
[__0.6.1__](https://github.com/nicolasgoutaland/GONMarkupParser/releases/tag/0.6.1) : Added support for underline and strikethrough color<br/>
[__0.6__](https://github.com/nicolasgoutaland/GONMarkupParser/releases/tag/0.6) : Added support for underline / strikethrough text<br/>
[__0.5__](https://github.com/nicolasgoutaland/GONMarkupParser/releases/tag/0.5) : Initial release<br/>
## Changelog
Changelog can be found [here](https://github.com/nicolasgoutaland/GONMarkupParser/blob/master/CHANGELOG.md)

0 comments on commit 9307e7c

Please sign in to comment.