Skip to content

Commit

Permalink
MKBlockQueue version 1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohsan Khan committed Oct 28, 2018
1 parent a10ff88 commit 204e3f0
Show file tree
Hide file tree
Showing 35 changed files with 734 additions and 1,033 deletions.
2 changes: 1 addition & 1 deletion LICENSE.txt
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2016/2017 Mohsan Khan
Copyright 2016/2017/2018 Mohsan Khan

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
File renamed without changes.
5 changes: 2 additions & 3 deletions MKBlockQueue-Example-Project/AppDelegate.swift
@@ -1,16 +1,15 @@
//
// MKBlockQueue - Example Project
// Copyright © 2016/2017 Mohsan Khan. All rights reserved.
// Copyright © 2016/2017/2018 Mohsan Khan. All rights reserved.
//

//
// https://github.com/MKGitHub/MKBlockQueue
// http://www.xybernic.com
// http://www.khanofsweden.com
//

//
// Copyright 2016/2017 Mohsan Khan
// Copyright 2016/2017/2018 Mohsan Khan
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
13 changes: 8 additions & 5 deletions MKBlockQueue-Example-Project/Base.lproj/Main.storyboard
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="11762" systemVersion="15G1217" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" initialViewController="B8D-0N-5wS">
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="14313.18" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" initialViewController="B8D-0N-5wS">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11762"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14313.18"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
Expand Down Expand Up @@ -652,10 +652,13 @@
<scene sceneID="R2V-B0-nI4">
<objects>
<windowController id="B8D-0N-5wS" sceneMemberID="viewController">
<window key="window" title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" oneShot="NO" releasedWhenClosed="NO" showsToolbarButton="NO" visibleAtLaunch="NO" animationBehavior="default" id="IQv-IB-iLA">
<window key="window" title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" animationBehavior="default" id="IQv-IB-iLA">
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
<rect key="contentRect" x="0.0" y="0.0" width="300" height="200"/>
<rect key="screenRect" x="0.0" y="0.0" width="1680" height="1027"/>
<connections>
<outlet property="delegate" destination="B8D-0N-5wS" id="R36-P4-O4Y"/>
</connections>
</window>
<connections>
<segue destination="XfG-lQ-9wD" kind="relationship" relationship="window.shadowedContentViewController" id="cq2-FE-JQM"/>
Expand All @@ -673,7 +676,7 @@
<rect key="frame" x="0.0" y="0.0" width="300" height="200"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="NEB-D6-4aP">
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="NEB-D6-4aP">
<rect key="frame" x="54" y="83" width="193" height="34"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="center" title="Running example, the console you must see…" id="oog-wu-Iop">
Expand Down
4 changes: 2 additions & 2 deletions MKBlockQueue-Example-Project/Info.plist
Expand Up @@ -17,11 +17,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0.2</string>
<string>1.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>2</string>
<string>3</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>NSHumanReadableCopyright</key>
Expand Down
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 48;
objectVersion = 51;
objects = {

/* Begin PBXBuildFile section */
Expand Down Expand Up @@ -109,12 +109,12 @@
TargetAttributes = {
666275A81C57A56F00459D7B = {
CreatedOnToolsVersion = 7.2;
LastSwiftMigration = 0800;
LastSwiftMigration = 1000;
};
};
};
buildConfigurationList = 666275A41C57A56F00459D7B /* Build configuration list for PBXProject "MKBlockQueue-Example-Project" */;
compatibilityVersion = "Xcode 8.0";
compatibilityVersion = "Xcode 10.0";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
Expand Down Expand Up @@ -172,7 +172,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 4DB582611D6CF694003B93BE /* MK_1_App_Development_DEBUG.xcconfig */;
buildSettings = {
MACOSX_DEPLOYMENT_TARGET = 10.11;
MACOSX_DEPLOYMENT_TARGET = 10.13;
SDKROOT = macosx;
};
name = Debug;
Expand All @@ -181,7 +181,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 4DB582601D6CF694003B93BE /* MK_1_App_Development_RELEASE.xcconfig */;
buildSettings = {
MACOSX_DEPLOYMENT_TARGET = 10.11;
MACOSX_DEPLOYMENT_TARGET = 10.13;
SDKROOT = macosx;
};
name = Release;
Expand All @@ -193,7 +193,10 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = "com.mohsankhan.MKBlockQueue-Example-Project";
PRODUCT_NAME = "MKBlockQueue-Example-Project";
};
Expand All @@ -206,7 +209,10 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = "com.mohsankhan.MKBlockQueue-Example-Project";
PRODUCT_NAME = "MKBlockQueue-Example-Project";
};
Expand Down
@@ -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>
59 changes: 43 additions & 16 deletions MKBlockQueue-Example-Project/MK_1_App_Development_DEBUG.xcconfig
@@ -1,25 +1,41 @@
//
// Debug
//
// Last Update: 30 sep 2017, version 15
// Xcode Version 9.1 beta (9B37)
// Swift Version: 4.0.0
// Last Update: 9 okt 2018, version 22
//
// Xcode Version 10.0 (10A254a)
//
// Apple Swift version 4.2 (swiftlang-1000.11.37.1 clang-1000.11.45.1)
// Target: x86_64-apple-darwin17.7.0
//
// https://developer.apple.com/library/mac/documentation/DeveloperTools/Reference/XcodeBuildSettingRef/1-Build_Setting_Reference/build_setting_ref.html
//
// https://pewpewthespells.com/blog/buildsettings.html
//
// https://pewpewthespells.com/blog/xcconfig_guide.html
//


//
// Custom
//
_MK_RUNTIME_ENV =
_MK_RUNTIME_ENV[sdk=mac*] = $(inherited) MAC_DESKTOP_RUNTIME_ENV
_MK_RUNTIME_ENV[sdk=*simulator*] = $(inherited) IOS_SIMULAOR_RUNTIME_ENV
_MK_RUNTIME_ENV[sdk=iphoneos*] = $(inherited) IOS_iphoneos_RUNTIME_ENV

//
// Swift
//
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG
SWIFT_OPTIMIZATION_LEVEL = -Onone
SWIFT_VERSION = 4.0
OTHER_SWIFT_FLAGS = -Xfrontend -debug-time-function-bodies -Xfrontend -warn-long-function-bodies=100 -Xfrontend -warn-long-expression-type-checking=100
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG $(_MK_RUNTIME_ENV)
SWIFT_ACTIVE_COMPILATION_CONDITIONS[sdk=iphonesimulator*] = $(inherited) TARGET_OS_SIMULATOR
SWIFT_ACTIVE_COMPILATION_CONDITIONS[sdk=embeddedsimulator*] = $(inherited) TARGET_OS_SIMULATOR
SWIFT_OPTIMIZATION_LEVEL = -Owholemodule
SWIFT_VERSION = 4.2
OTHER_SWIFT_FLAGS = -Onone -Xfrontend -debug-time-function-bodies -Xfrontend -warn-long-function-bodies=300 -Xfrontend -warn-long-expression-type-checking=300
SWIFT_PRECOMPILE_BRIDGING_HEADER = YES
SWIFT_SWIFT3_OBJC_INFERENCE = Default
SWIFT_COMPILATION_MODE = wholemodule

//
// Build, Compile, Architecture
Expand All @@ -34,10 +50,16 @@ VALIDATE_PRODUCT = NO
//
// Debug
//
DEBUG_INFORMATION_FORMAT = dwarf
DEBUG_INFORMATION_FORMAT = dwarf-with-dsym
DEBUG_INFORMATION_FORMAT[sdk=iphoneos*] = dwarf-with-dsym
DEBUG_INFORMATION_FORMAT[sdk=iphonesimulator*] = dwarf
MTL_ENABLE_DEBUG_INFO = YES
DEBUG_INFORMATION_FORMAT[sdk=embeddedsimulator*] = dwarf

//
// Metal
//
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE
MTL_FAST_MATH = YES

//
// Clang
Expand All @@ -64,15 +86,19 @@ CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES
CLANG_WARN_SUSPICIOUS_MOVE = YES
CLANG_WARN_UNREACHABLE_CODE = YES
// Swift 4
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; // Warn about block captures of implicitly autoreleasing parameters.
CLANG_WARN_COMMA = YES; // Warn about suspicious uses of the comma operator.
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; // Warn about non-literal expressions that evaluate to zero being treated as a null pointer.
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; // Warn about implicit conversions from Objective-C literals to values of incompatible type.
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; // Warn about ranged-based for loops.
CLANG_WARN_STRICT_PROTOTYPES = YES; // Warn about non-prototype declarations.
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES // Warn about block captures of implicitly autoreleasing parameters.
CLANG_WARN_COMMA = YES // Warn about suspicious uses of the comma operator.
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES // Warn about non-literal expressions that evaluate to zero being treated as a null pointer.
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES // Warn about implicit conversions from Objective-C literals to values of incompatible type.
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES // Warn about ranged-based for loops.
CLANG_WARN_STRICT_PROTOTYPES = YES // Warn about non-prototype declarations.
CLANG_UNDEFINED_BEHAVIOR_SANITIZER_INTEGER = YES
CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES
// Swift 4.1 • Xcode 9.3
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES
CLANG_ENABLE_OBJC_WEAK = YES

//
// GCC
Expand Down Expand Up @@ -111,8 +137,9 @@ ENABLE_NS_ASSERTIONS = YES
ENABLE_STRICT_OBJC_MSGSEND = YES
ENABLE_TESTABILITY = YES
GENERATE_PROFILING_CODE = YES
COMPRESS_PNG_FILES = NO
COMPRESS_PNG_FILES = NO // disable Xcode's conversion
STRIP_PNG_TEXT = NO
//CODE_SIGN_INJECT_BASE_ENTITLEMENTS = YES // on by default

//
// macOS
Expand Down
43 changes: 36 additions & 7 deletions MKBlockQueue-Example-Project/MK_1_App_Development_RELEASE.xcconfig
@@ -1,25 +1,41 @@
//
// Release
//
// Last Update: 30 sep 2017, version 15
// Xcode Version 9.1 beta (9B37)
// Swift Version: 4.0.0
// Last Update: 9 okt 2018, version 22
//
// Xcode Version 10.0 (10A254a)
//
// Apple Swift version 4.2 (swiftlang-1000.11.37.1 clang-1000.11.45.1)
// Target: x86_64-apple-darwin17.7.0
//
// https://developer.apple.com/library/mac/documentation/DeveloperTools/Reference/XcodeBuildSettingRef/1-Build_Setting_Reference/build_setting_ref.html
//
// https://pewpewthespells.com/blog/buildsettings.html
//
// https://pewpewthespells.com/blog/xcconfig_guide.html
//


//
// Custom
//
_MK_RUNTIME_ENV =
_MK_RUNTIME_ENV[sdk=mac*] = $(inherited) MAC_DESKTOP_RUNTIME_ENV
_MK_RUNTIME_ENV[sdk=*simulator*] = $(inherited) IOS_SIMULAOR_RUNTIME_ENV
_MK_RUNTIME_ENV[sdk=iphoneos*] = $(inherited) IOS_iphoneos_RUNTIME_ENV

//
// Swift
//
SWIFT_ACTIVE_COMPILATION_CONDITIONS = RELEASE
SWIFT_ACTIVE_COMPILATION_CONDITIONS = RELEASE $(_MK_RUNTIME_ENV)
SWIFT_ACTIVE_COMPILATION_CONDITIONS[sdk=iphonesimulator*] = $(inherited) TARGET_OS_SIMULATOR
SWIFT_ACTIVE_COMPILATION_CONDITIONS[sdk=embeddedsimulator*] = $(inherited) TARGET_OS_SIMULATOR
SWIFT_OPTIMIZATION_LEVEL = -Owholemodule
SWIFT_VERSION = 4.0
OTHER_SWIFT_FLAGS = -Xfrontend -debug-time-function-bodies -Xfrontend -warn-long-function-bodies=100 -Xfrontend -warn-long-expression-type-checking=100
SWIFT_VERSION = 4.2
OTHER_SWIFT_FLAGS = -Xfrontend -debug-time-function-bodies -Xfrontend -warn-long-function-bodies=300 -Xfrontend -warn-long-expression-type-checking=300
SWIFT_PRECOMPILE_BRIDGING_HEADER = YES
SWIFT_SWIFT3_OBJC_INFERENCE = Default
SWIFT_COMPILATION_MODE = wholemodule

//
// Build, Compile, Architecture
Expand All @@ -35,7 +51,15 @@ VALIDATE_PRODUCT = YES
// Debug
//
DEBUG_INFORMATION_FORMAT = dwarf-with-dsym
DEBUG_INFORMATION_FORMAT[sdk=iphoneos*] = dwarf-with-dsym
DEBUG_INFORMATION_FORMAT[sdk=iphonesimulator*] = dwarf
DEBUG_INFORMATION_FORMAT[sdk=embeddedsimulator*] = dwarf

//
// Metal
//
MTL_ENABLE_DEBUG_INFO = NO
MTL_FAST_MATH = YES

//
// Clang
Expand Down Expand Up @@ -71,6 +95,10 @@ CLANG_WARN_STRICT_PROTOTYPES = YES // Warn about non-prototype declarations.
CLANG_UNDEFINED_BEHAVIOR_SANITIZER_INTEGER = YES
CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES
// Swift 4.1 • Xcode 9.3
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES
CLANG_ENABLE_OBJC_WEAK = YES

//
// GCC
Expand Down Expand Up @@ -109,8 +137,9 @@ ENABLE_NS_ASSERTIONS = NO
ENABLE_STRICT_OBJC_MSGSEND = YES
ENABLE_TESTABILITY = NO
GENERATE_PROFILING_CODE = NO
COMPRESS_PNG_FILES = NO
COMPRESS_PNG_FILES = NO // disable Xcode's conversion
STRIP_PNG_TEXT = NO
//CODE_SIGN_INJECT_BASE_ENTITLEMENTS = YES // on by default

//
// macOS
Expand Down

0 comments on commit 204e3f0

Please sign in to comment.