Skip to content

Commit

Permalink
add "ios-ntp.podspec"
Browse files Browse the repository at this point in the history
replace precompiled header with regular header
  • Loading branch information
gavineadie committed Mar 31, 2015
1 parent 0b61873 commit 046bd74
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 27 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
The MIT License (MIT)
Copyright (c) 2012, Ramsay Consulting
Copyright (c) 2012-2015, Ramsay Consulting

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
Expand Down
1 change: 1 addition & 0 deletions ios-ntp-lib/NetAssociation.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
╚══════════════════════════════════════════════════════════════════════════════════════════════════╝*/

#import "NetAssociation.h"
#import "ntp-log.h"

/*┌──────────────────────────────────────────────────────────────────────────────────────────────────┐
│ NTP Timestamp Structure │
Expand Down
1 change: 1 addition & 0 deletions ios-ntp-lib/NetworkClock.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#import <arpa/inet.h>

#import "NetworkClock.h"
#import "ntp-log.h"

@interface NetworkClock () {

Expand Down
1 change: 1 addition & 0 deletions ios-ntp-lib/ios-ntp.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
║ Copyright 2010 Ramsay Consulting. All rights reserved. ║
╚══════════════════════════════════════════════════════════════════════════════════════════════════╝*/

#import "ntp-log.h"
#import "NetAssociation.h"
#import "NetworkClock.h"
#import "NSDate+NetworkClock.h"
19 changes: 1 addition & 18 deletions ios-ntp-lib/ios-ntp.pch → ios-ntp-lib/ntp-log.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
//
// Prefix header for all source files of the 'ntpA' target in the 'ntpA' project
//

#import <Availability.h>

#ifndef __IPHONE_7_0
#warning "This project uses features only available in iPhone SDK 7.0 and later."
#endif
#import <Foundation/Foundation.h>

#define NTP_Logging(fmt, ...)
#define LogInProduction(fmt, ...) \
Expand All @@ -19,13 +12,3 @@
NSLog((@"%@|" fmt), [NSString stringWithFormat: @"%16s", \
[[[self class] description] UTF8String]], ##__VA_ARGS__)
#endif

/*

#if __DARWIN_BYTE_ORDER == __DARWIN_BIG_ENDIAN
#warning "DARWIN_BIG_ENDIAN"
#else
#warning "DARWIN_LITTLE_ENDIAN"
#endif

*/
15 changes: 15 additions & 0 deletions ios-ntp.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Pod::Spec.new do |s|
s.name = 'ios-ntp'
s.version = '1.0.0'
s.summary = 'SNTP implementation for iOS.'
s.homepage = 'https://github.com/jbenet/ios-ntp'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.source = { :git => 'https://github.com/jbenet/ios-ntp.git', :tag => 'v1.0.0' }
s.author = { 'Gavin Eadie' => 'https://github.com/gavineadie' }
s.ios.deployment_target = '7.0'
s.source_files = 'ios-ntp-lib/*.{h,m}'
s.resources = 'ios-ntp-rez/*.hosts',
s.framework = 'CFNetwork'
s.dependency 'CocoaAsyncSocket', '~>7.4.1'
s.requires_arc = true
end
12 changes: 4 additions & 8 deletions ios-ntp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
86619085126C0D120046A2B8 /* CFNetwork.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CFNetwork.framework; path = System/Library/Frameworks/CFNetwork.framework; sourceTree = SDKROOT; };
866F2B551A1D35A0008CCF83 /* ios_fwk.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = ios_fwk.framework; sourceTree = BUILT_PRODUCTS_DIR; };
86734BD61A2181FD00F191CE /* en */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = en; path = Storyboard.storyboard; sourceTree = "<group>"; };
867541861ACA2CD900D9990D /* ios-ntp.podspec */ = {isa = PBXFileReference; lastKnownFileType = text; path = "ios-ntp.podspec"; sourceTree = "<group>"; };
86C2B3F51A1DA95300481E2E /* rfc5905.pdf */ = {isa = PBXFileReference; lastKnownFileType = image.pdf; path = rfc5905.pdf; sourceTree = "<group>"; };
86C39F0D126A1FA100A9DCD1 /* ntp-app.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "ntp-app.app"; sourceTree = BUILT_PRODUCTS_DIR; };
86C79ED71A1D659F00FC7CC2 /* LICENSE */ = {isa = PBXFileReference; lastKnownFileType = text; path = LICENSE; sourceTree = "<group>"; };
Expand All @@ -88,7 +89,7 @@
D91E95F013D9B018004E4194 /* ntp-app-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = "ntp-app-Info.plist"; path = "../ios-ntp-rez/ntp-app-Info.plist"; sourceTree = "<group>"; };
D91E95FA13D9B063004E4194 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = InfoPlist.strings; sourceTree = "<group>"; };
D9B2BA2B13D9B50200C9385A /* ios-ntp-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "ios-ntp-Info.plist"; sourceTree = "<group>"; };
D9B2BA2C13D9B50200C9385A /* ios-ntp.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ios-ntp.pch"; sourceTree = "<group>"; };
D9B2BA2C13D9B50200C9385A /* ntp-log.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ntp-log.h"; sourceTree = "<group>"; };
D9B2BA3213D9B6CF00C9385A /* ios-ntp.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "ios-ntp.h"; sourceTree = "<group>"; };
D9B2BA3F13D9B95100C9385A /* ios-ntp.tar.gz */ = {isa = PBXFileReference; lastKnownFileType = archive.gzip; name = "ios-ntp.tar.gz"; path = "release/ios-ntp.tar.gz"; sourceTree = "<group>"; };
D9B2BA4013D9C06100C9385A /* NSDate+NetworkClock.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSDate+NetworkClock.h"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -179,6 +180,7 @@
86C79ED61A1D657F00FC7CC2 /* ios-ntp-doc */ = {
isa = PBXGroup;
children = (
867541861ACA2CD900D9990D /* ios-ntp.podspec */,
86C2B3F51A1DA95300481E2E /* rfc5905.pdf */,
86C79ED71A1D659F00FC7CC2 /* LICENSE */,
86C79ED81A1D659F00FC7CC2 /* README.md */,
Expand All @@ -200,7 +202,7 @@
isa = PBXGroup;
children = (
D9B2BA3213D9B6CF00C9385A /* ios-ntp.h */,
D9B2BA2C13D9B50200C9385A /* ios-ntp.pch */,
D9B2BA2C13D9B50200C9385A /* ntp-log.h */,
D9B2BA4013D9C06100C9385A /* NSDate+NetworkClock.h */,
D9B2BA4113D9C06100C9385A /* NSDate+NetworkClock.m */,
D91E95D913D9AF8C004E4194 /* NetAssociation.h */,
Expand Down Expand Up @@ -568,8 +570,6 @@
CODE_SIGN_IDENTITY = "";
COPY_PHASE_STRIP = NO;
GCC_DYNAMIC_NO_PIC = NO;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "ios-ntp-lib/ios-ntp.pch";
GCC_PREPROCESSOR_DEFINITIONS = IOS_NTP_LOGGING;
GCC_VERSION = "";
INFOPLIST_FILE = "ios-ntp-rez/ntp-app-Info.plist";
Expand All @@ -588,8 +588,6 @@
CLANG_ENABLE_OBJC_ARC = YES;
CODE_SIGN_IDENTITY = "";
COPY_PHASE_STRIP = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "ios-ntp-lib/ios-ntp.pch";
GCC_VERSION = "";
INFOPLIST_FILE = "ios-ntp-rez/ntp-app-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
Expand All @@ -614,7 +612,6 @@
COPY_PHASE_STRIP = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "ios-ntp-lib/ios-ntp.pch";
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
Expand Down Expand Up @@ -646,7 +643,6 @@
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "ios-ntp-lib/ios-ntp.pch";
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
Expand Down

0 comments on commit 046bd74

Please sign in to comment.