Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dynamic library project + target (iOS 8+) #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions rubber-range-picker/Classes/Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,3 @@ extension UIColor {
blue: min(1.0, (fBlue + 1.0) * lighterPercent), alpha: fAlpha)
}
}


5 changes: 3 additions & 2 deletions rubber-range-picker/Classes/RubberRangePicker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ import UIKit
configure()
}

override open func prepareForInterfaceBuilder() {
open override func prepareForInterfaceBuilder() {
configure()
screenUpdate()
updateTrackLayer()
Expand Down Expand Up @@ -196,6 +196,7 @@ import UIKit
sendActions(for: .valueChanged)
return true
}

open override func endTracking(_ touch: UITouch?, with event: UIEvent?) {
CACurrentMediaTime()
if (movingLower) {
Expand Down Expand Up @@ -278,5 +279,5 @@ import UIKit
trackLayer.upperVertOffset = upperThumb.frame.midY - bounds.height/2.0
trackLayer.redraw()
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,364 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 50;
objects = {

/* Begin PBXBuildFile section */
DE95F3B022267D9900F77463 /* Rubber_Range_Picker.h in Headers */ = {isa = PBXBuildFile; fileRef = DE95F3AE22267D9900F77463 /* Rubber_Range_Picker.h */; settings = {ATTRIBUTES = (Public, ); }; };
DE95F3BD22267DC100F77463 /* Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = DE95F3B822267DC000F77463 /* Extensions.swift */; };
DE95F3BE22267DC100F77463 /* RubberRangePicker.swift in Sources */ = {isa = PBXBuildFile; fileRef = DE95F3B922267DC000F77463 /* RubberRangePicker.swift */; };
DE95F3BF22267DC100F77463 /* RubberRangeThumb.swift in Sources */ = {isa = PBXBuildFile; fileRef = DE95F3BA22267DC000F77463 /* RubberRangeThumb.swift */; };
DE95F3C022267DC100F77463 /* RubberTrackLayer.swift in Sources */ = {isa = PBXBuildFile; fileRef = DE95F3BB22267DC000F77463 /* RubberTrackLayer.swift */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
DE95F3AB22267D9900F77463 /* Rubber_Range_Picker.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Rubber_Range_Picker.framework; sourceTree = BUILT_PRODUCTS_DIR; };
DE95F3AE22267D9900F77463 /* Rubber_Range_Picker.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Rubber_Range_Picker.h; sourceTree = "<group>"; };
DE95F3AF22267D9900F77463 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
DE95F3B822267DC000F77463 /* Extensions.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Extensions.swift; sourceTree = "<group>"; };
DE95F3B922267DC000F77463 /* RubberRangePicker.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RubberRangePicker.swift; sourceTree = "<group>"; };
DE95F3BA22267DC000F77463 /* RubberRangeThumb.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RubberRangeThumb.swift; sourceTree = "<group>"; };
DE95F3BB22267DC000F77463 /* RubberTrackLayer.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RubberTrackLayer.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
DE95F3A822267D9900F77463 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
DE95F3A122267D9900F77463 = {
isa = PBXGroup;
children = (
DE95F3AD22267D9900F77463 /* Rubber Range Picker */,
DE95F3AC22267D9900F77463 /* Products */,
);
sourceTree = "<group>";
};
DE95F3AC22267D9900F77463 /* Products */ = {
isa = PBXGroup;
children = (
DE95F3AB22267D9900F77463 /* Rubber_Range_Picker.framework */,
);
name = Products;
sourceTree = "<group>";
};
DE95F3AD22267D9900F77463 /* Rubber Range Picker */ = {
isa = PBXGroup;
children = (
DE95F3B622267DC000F77463 /* Classes */,
DE95F3AE22267D9900F77463 /* Rubber_Range_Picker.h */,
DE95F3AF22267D9900F77463 /* Info.plist */,
);
path = "Rubber Range Picker";
sourceTree = "<group>";
};
DE95F3B622267DC000F77463 /* Classes */ = {
isa = PBXGroup;
children = (
DE95F3B822267DC000F77463 /* Extensions.swift */,
DE95F3B922267DC000F77463 /* RubberRangePicker.swift */,
DE95F3BA22267DC000F77463 /* RubberRangeThumb.swift */,
DE95F3BB22267DC000F77463 /* RubberTrackLayer.swift */,
);
name = Classes;
path = ../../Classes;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXHeadersBuildPhase section */
DE95F3A622267D9900F77463 /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
DE95F3B022267D9900F77463 /* Rubber_Range_Picker.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXHeadersBuildPhase section */

/* Begin PBXNativeTarget section */
DE95F3AA22267D9900F77463 /* Rubber Range Picker */ = {
isa = PBXNativeTarget;
buildConfigurationList = DE95F3B322267D9900F77463 /* Build configuration list for PBXNativeTarget "Rubber Range Picker" */;
buildPhases = (
DE95F3A622267D9900F77463 /* Headers */,
DE95F3A722267D9900F77463 /* Sources */,
DE95F3A822267D9900F77463 /* Frameworks */,
DE95F3A922267D9900F77463 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = "Rubber Range Picker";
productName = "Rubber Range Picker";
productReference = DE95F3AB22267D9900F77463 /* Rubber_Range_Picker.framework */;
productType = "com.apple.product-type.framework";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
DE95F3A222267D9900F77463 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 1010;
ORGANIZATIONNAME = Surge;
TargetAttributes = {
DE95F3AA22267D9900F77463 = {
CreatedOnToolsVersion = 10.1;
};
};
};
buildConfigurationList = DE95F3A522267D9900F77463 /* Build configuration list for PBXProject "Rubber Range Picker" */;
compatibilityVersion = "Xcode 9.3";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
);
mainGroup = DE95F3A122267D9900F77463;
productRefGroup = DE95F3AC22267D9900F77463 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
DE95F3AA22267D9900F77463 /* Rubber Range Picker */,
);
};
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
DE95F3A922267D9900F77463 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
DE95F3A722267D9900F77463 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
DE95F3BD22267DC100F77463 /* Extensions.swift in Sources */,
DE95F3C022267DC100F77463 /* RubberTrackLayer.swift in Sources */,
DE95F3BE22267DC100F77463 /* RubberRangePicker.swift in Sources */,
DE95F3BF22267DC100F77463 /* RubberRangeThumb.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin XCBuildConfiguration section */
DE95F3B122267D9900F77463 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "iPhone Developer";
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 12.1;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = Debug;
};
DE95F3B222267D9900F77463 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "iPhone Developer";
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 12.1;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
VALIDATE_PRODUCT = YES;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = Release;
};
DE95F3B422267D9900F77463 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_IDENTITY = "";
CODE_SIGN_STYLE = Automatic;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = VD97XKT54M;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = "Rubber Range Picker/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MACH_O_TYPE = staticlib;
PRODUCT_BUNDLE_IDENTIFIER = "own2pwn.pp.Rubber-Range-Picker";
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
DE95F3B522267D9900F77463 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_IDENTITY = "";
CODE_SIGN_STYLE = Automatic;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = VD97XKT54M;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = "Rubber Range Picker/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MACH_O_TYPE = staticlib;
PRODUCT_BUNDLE_IDENTIFIER = "own2pwn.pp.Rubber-Range-Picker";
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
DE95F3A522267D9900F77463 /* Build configuration list for PBXProject "Rubber Range Picker" */ = {
isa = XCConfigurationList;
buildConfigurations = (
DE95F3B122267D9900F77463 /* Debug */,
DE95F3B222267D9900F77463 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
DE95F3B322267D9900F77463 /* Build configuration list for PBXNativeTarget "Rubber Range Picker" */ = {
isa = XCConfigurationList;
buildConfigurations = (
DE95F3B422267D9900F77463 /* Debug */,
DE95F3B522267D9900F77463 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = DE95F3A222267D9900F77463 /* Project object */;
}
Loading