Skip to content

Commit

Permalink
Merge branch 'release/1.2.8'
Browse files Browse the repository at this point in the history
  • Loading branch information
ygini committed Nov 24, 2016
2 parents 35f5a21 + 71a4136 commit 68c4fc7
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 14 deletions.
2 changes: 1 addition & 1 deletion package/Hello IT.pkgproj
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@
<key>RELOCATABLE</key>
<false/>
<key>VERSION</key>
<string>1.2.7</string>
<string>1.2.8</string>
</dict>
<key>PROJECT_COMMENTS</key>
<dict>
Expand Down
2 changes: 1 addition & 1 deletion src/HITDevKit/HITDevKit/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>133</string>
<string>137</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2015 Yoann Gini (Open Source Project). All rights reserved.</string>
<key>NSPrincipalClass</key>
Expand Down
4 changes: 2 additions & 2 deletions src/Hello IT/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.2.7</string>
<string>1.2.8</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>133</string>
<string>137</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSMinimumSystemVersion</key>
Expand Down
2 changes: 1 addition & 1 deletion src/Plugins/OpenApplication/OpenApplication/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>133</string>
<string>137</string>
<key>HITPFunctionIdentifier</key>
<string>public.open.application</string>
<key>NSHumanReadableCopyright</key>
Expand Down
2 changes: 1 addition & 1 deletion src/Plugins/OpenResource/OpenResource/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>133</string>
<string>137</string>
<key>HITPFunctionIdentifier</key>
<string>public.open.resource</string>
<key>NSHumanReadableCopyright</key>
Expand Down
2 changes: 1 addition & 1 deletion src/Plugins/Quit/Quit/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>133</string>
<string>137</string>
<key>HITPFunctionIdentifier</key>
<string>public.quit</string>
<key>NSHumanReadableCopyright</key>
Expand Down
2 changes: 1 addition & 1 deletion src/Plugins/ScriptedItem/ScriptedItem/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>133</string>
<string>137</string>
<key>HITPFunctionIdentifier</key>
<string>public.script.item</string>
<key>NSHumanReadableCopyright</key>
Expand Down
2 changes: 1 addition & 1 deletion src/Plugins/Separator/Separator/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>133</string>
<string>137</string>
<key>HITPFunctionIdentifier</key>
<string>public.separator</string>
<key>NSHumanReadableCopyright</key>
Expand Down
2 changes: 1 addition & 1 deletion src/Plugins/SubMenu/SubMenu/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>133</string>
<string>137</string>
<key>HITPFunctionIdentifier</key>
<string>public.submenu</string>
<key>NSHumanReadableCopyright</key>
Expand Down
6 changes: 5 additions & 1 deletion src/Plugins/TestHTTP/TestHTTP/HITPTestHTTP.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@
#define kHITPTestHTTPStringToCompare @"originalString"
#define kHITPTestHTTPMode @"mode"
#define kHITPTestHTTPTimeout @"timeout"
#define kHITPTestHTTPIgnoreSystemState @"ignoreSystemState"

@interface HITPTestHTTP ()
@property NSURL *testPage;
@property NSString *mode;
@property NSString *originalString;
@property NSInteger timeout;
@property BOOL generalNetworkIsAvailable;
@property BOOL ignoreSystemState;
@end


Expand All @@ -35,6 +37,8 @@ - (instancetype)initWithSettings:(NSDictionary*)settings
_testPage = [NSURL URLWithString:[settings objectForKey:kHITPTestHTTPURL]];
_mode = [settings objectForKey:kHITPTestHTTPMode];
_originalString = [settings objectForKey:kHITPTestHTTPStringToCompare];

_ignoreSystemState = [[settings objectForKey:kHITPTestHTTPIgnoreSystemState] boolValue];

NSNumber *timeout = [settings objectForKey:kHITPTestHTTPTimeout];
if (timeout) {
Expand Down Expand Up @@ -63,7 +67,7 @@ - (void)generalNetworkStateUpdate:(BOOL)state {
}

-(void)mainAction:(id)sender {
if (self.generalNetworkIsAvailable && self.allowedToRun) {
if ((self.generalNetworkIsAvailable || self.ignoreSystemState) && self.allowedToRun) {
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0), ^{
asl_log(NULL, NULL, ASL_LEVEL_INFO, "Start test request to %s.", [[self.testPage absoluteString] cStringUsingEncoding:NSUTF8StringEncoding]);

Expand Down
4 changes: 2 additions & 2 deletions src/Plugins/TestHTTP/TestHTTP/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>1.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>133</string>
<string>137</string>
<key>HITPFunctionIdentifier</key>
<string>public.test.http</string>
<key>NSHumanReadableCopyright</key>
Expand Down
2 changes: 1 addition & 1 deletion src/Plugins/Title/Title/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>133</string>
<string>137</string>
<key>HITPFunctionIdentifier</key>
<string>public.title</string>
<key>NSHumanReadableCopyright</key>
Expand Down

0 comments on commit 68c4fc7

Please sign in to comment.