Skip to content

Commit

Permalink
Merge pull request #16 from jonandersen/master
Browse files Browse the repository at this point in the history
Add Carthage support
  • Loading branch information
drtimcooper authored Jan 22, 2017
2 parents 8029008 + 4ceb813 commit b507048
Show file tree
Hide file tree
Showing 7 changed files with 479 additions and 8 deletions.
21 changes: 21 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
target
.idea
*.iml

## Xcode
## Build generated
build/
DerivedData/

## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata/

## Other
*.moved-aside
*.xccheckout
*.xcscmblueprint
41 changes: 33 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,44 @@ https://github.com/drtimcooper/LatLongToTimezone/blob/master/Classes/TimezoneMap
(CSharp)
https://github.com/drtimcooper/LatLongToTimezone/blob/master/Output/Toolbox.TimeAndDate.TimezoneMapper.cs

# Usage
# Install

### [CocoaPods](https://guides.cocoapods.org/using/using-cocoapods.html)

```
# Podfile
use_frameworks!
pod 'LatLongToTimezone', '~> 1.1'
```

In the `Podfile` directory, type:

```
$ pod install
```

### [Carthage](https://github.com/Carthage/Carthage)

On iOS, the code is available as a CocoaPod. Just add this to your Podspec:
Add this to `Cartfile`

```
pod 'LatLongToTimezone'
github "drtimcooper/LatLongToTimezone" ~> 1.1
```

Then in your code, you can do
```
$ carthage update
```

# Versions

For Swift 2.3 and earlier, use version 1.0.4 of the Podspec.
For Swift 3, use the latest version.

# Usage

In your code, you can do

```Swift
import LatLongToTimezone
Expand All @@ -30,7 +59,3 @@ let timeZone = TimezoneMapper.latLngToTimezone(location)

```

# Versions

For Swift 2.3 and earlier, use version 1.0.4 of the Podspec.
For Swift 3, use the latest version.
307 changes: 307 additions & 0 deletions carthage/LatLongToTimezone.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,307 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {

/* Begin PBXBuildFile section */
051740091DF866B600CA8D17 /* LatLongToTimezone.h in Headers */ = {isa = PBXBuildFile; fileRef = 051740071DF866B600CA8D17 /* LatLongToTimezone.h */; settings = {ATTRIBUTES = (Public, ); }; };
0523E8421E32616400AC08A2 /* TimezoneMapper.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0523E8411E32616400AC08A2 /* TimezoneMapper.swift */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
051740041DF866B600CA8D17 /* LatLongToTimezone.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = LatLongToTimezone.framework; sourceTree = BUILT_PRODUCTS_DIR; };
051740071DF866B600CA8D17 /* LatLongToTimezone.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LatLongToTimezone.h; sourceTree = "<group>"; };
051740081DF866B600CA8D17 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
0523E8411E32616400AC08A2 /* TimezoneMapper.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = TimezoneMapper.swift; path = ../../Classes/TimezoneMapper.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

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

/* Begin PBXGroup section */
05173FFA1DF866B600CA8D17 = {
isa = PBXGroup;
children = (
051740061DF866B600CA8D17 /* LatLongToTimezone */,
051740051DF866B600CA8D17 /* Products */,
);
sourceTree = "<group>";
};
051740051DF866B600CA8D17 /* Products */ = {
isa = PBXGroup;
children = (
051740041DF866B600CA8D17 /* LatLongToTimezone.framework */,
);
name = Products;
sourceTree = "<group>";
};
051740061DF866B600CA8D17 /* LatLongToTimezone */ = {
isa = PBXGroup;
children = (
051740071DF866B600CA8D17 /* LatLongToTimezone.h */,
0523E8411E32616400AC08A2 /* TimezoneMapper.swift */,
051740081DF866B600CA8D17 /* Info.plist */,
);
path = LatLongToTimezone;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXHeadersBuildPhase section */
051740011DF866B600CA8D17 /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
051740091DF866B600CA8D17 /* LatLongToTimezone.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXHeadersBuildPhase section */

/* Begin PBXNativeTarget section */
051740031DF866B600CA8D17 /* LatLongToTimezone */ = {
isa = PBXNativeTarget;
buildConfigurationList = 0517400C1DF866B600CA8D17 /* Build configuration list for PBXNativeTarget "LatLongToTimezone" */;
buildPhases = (
05173FFF1DF866B600CA8D17 /* Sources */,
051740001DF866B600CA8D17 /* Frameworks */,
051740011DF866B600CA8D17 /* Headers */,
051740021DF866B600CA8D17 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = LatLongToTimezone;
productName = LatLongToTimezone;
productReference = 051740041DF866B600CA8D17 /* LatLongToTimezone.framework */;
productType = "com.apple.product-type.framework";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
05173FFB1DF866B600CA8D17 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0810;
ORGANIZATIONNAME = "Jon Andersen";
TargetAttributes = {
051740031DF866B600CA8D17 = {
CreatedOnToolsVersion = 8.1;
LastSwiftMigration = 0820;
ProvisioningStyle = Automatic;
};
};
};
buildConfigurationList = 05173FFE1DF866B600CA8D17 /* Build configuration list for PBXProject "LatLongToTimezone" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
);
mainGroup = 05173FFA1DF866B600CA8D17;
productRefGroup = 051740051DF866B600CA8D17 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
051740031DF866B600CA8D17 /* LatLongToTimezone */,
);
};
/* End PBXProject section */

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

/* Begin PBXSourcesBuildPhase section */
05173FFF1DF866B600CA8D17 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
0523E8421E32616400AC08A2 /* TimezoneMapper.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin XCBuildConfiguration section */
0517400A1DF866B600CA8D17 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = 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_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_SUSPICIOUS_MOVES = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "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 = gnu99;
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 = 8.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
TARGETED_DEVICE_FAMILY = "1,2";
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = Debug;
};
0517400B1DF866B600CA8D17 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = 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_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_SUSPICIOUS_MOVES = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "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 = gnu99;
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 = 8.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = Release;
};
0517400D1DF866B600CA8D17 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "";
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = LatLongToTimezone/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.github.drtimcooper.LatLongToTimezone;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 3.0;
};
name = Debug;
};
0517400E1DF866B600CA8D17 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "";
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = LatLongToTimezone/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.github.drtimcooper.LatLongToTimezone;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_VERSION = 3.0;
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
05173FFE1DF866B600CA8D17 /* Build configuration list for PBXProject "LatLongToTimezone" */ = {
isa = XCConfigurationList;
buildConfigurations = (
0517400A1DF866B600CA8D17 /* Debug */,
0517400B1DF866B600CA8D17 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
0517400C1DF866B600CA8D17 /* Build configuration list for PBXNativeTarget "LatLongToTimezone" */ = {
isa = XCConfigurationList;
buildConfigurations = (
0517400D1DF866B600CA8D17 /* Debug */,
0517400E1DF866B600CA8D17 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 05173FFB1DF866B600CA8D17 /* Project object */;
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b507048

Please sign in to comment.