Skip to content

Commit

Permalink
removed logs. made build scheme shared
Browse files Browse the repository at this point in the history
shared build scheme for Carthage
  • Loading branch information
aokholm committed Sep 14, 2015
1 parent b47bcef commit a8e8e57
Show file tree
Hide file tree
Showing 10 changed files with 63 additions and 6 deletions.
2 changes: 2 additions & 0 deletions Examples/Simple/Simple.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,7 @@
9F040A361BA5DF53009FFBD4 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
9F040A371BA5DF53009FFBD4 /* Build configuration list for PBXNativeTarget "SimpleTests" */ = {
isa = XCConfigurationList;
Expand All @@ -506,6 +507,7 @@
9F040A391BA5DF53009FFBD4 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
<key>IDESourceControlProjectIdentifier</key>
<string>C94FA15E-B4D5-49E4-92B6-ED1062E828A3</string>
<key>IDESourceControlProjectName</key>
<string>project</string>
<string>Simple</string>
<key>IDESourceControlProjectOriginsDictionary</key>
<dict>
<key>2231156D31C86B4488CA7553CC99CA9909AD6945</key>
<string>https://github.com/vaavud/vaavud-ios-sdk.git</string>
</dict>
<key>IDESourceControlProjectPath</key>
<string>Examples/Simple/Simple.xcodeproj/project.xcworkspace</string>
<string>Examples/Simple/Simple.xcodeproj</string>
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
<dict>
<key>2231156D31C86B4488CA7553CC99CA9909AD6945</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
buildConfiguration = "Release"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
allowLocationSimulation = "YES">
Expand Down
4 changes: 4 additions & 0 deletions VaavudSDK.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = VaavudSDK/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
Expand All @@ -387,6 +388,7 @@
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = VaavudSDK/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
Expand Down Expand Up @@ -442,6 +444,7 @@
9F0409C91BA5DC22009FFBD4 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
9F0409CA1BA5DC22009FFBD4 /* Build configuration list for PBXNativeTarget "VaavudSDKTests" */ = {
isa = XCConfigurationList;
Expand All @@ -450,6 +453,7 @@
9F0409CC1BA5DC22009FFBD4 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?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>IDESourceControlProjectFavoriteDictionaryKey</key>
<false/>
<key>IDESourceControlProjectIdentifier</key>
<string>CFF8466E-2E76-4B6F-B63F-F9537020D4DD</string>
<key>IDESourceControlProjectName</key>
<string>VaavudSDK</string>
<key>IDESourceControlProjectOriginsDictionary</key>
<dict>
<key>2231156D31C86B4488CA7553CC99CA9909AD6945</key>
<string>https://github.com/vaavud/vaavud-ios-sdk.git</string>
</dict>
<key>IDESourceControlProjectPath</key>
<string>VaavudSDK.xcodeproj</string>
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
<dict>
<key>2231156D31C86B4488CA7553CC99CA9909AD6945</key>
<string>../..</string>
</dict>
<key>IDESourceControlProjectURL</key>
<string>https://github.com/vaavud/vaavud-ios-sdk.git</string>
<key>IDESourceControlProjectVersion</key>
<integer>111</integer>
<key>IDESourceControlProjectWCCIdentifier</key>
<string>2231156D31C86B4488CA7553CC99CA9909AD6945</string>
<key>IDESourceControlProjectWCConfigurations</key>
<array>
<dict>
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
<string>public.vcs.git</string>
<key>IDESourceControlWCCIdentifierKey</key>
<string>2231156D31C86B4488CA7553CC99CA9909AD6945</string>
<key>IDESourceControlWCCName</key>
<string>VaavudSDK</string>
</dict>
</array>
</dict>
</plist>
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<dict>
<key>SchemeUserState</key>
<dict>
<key>VaavudSDK.xcscheme</key>
<key>VaavudSDK.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
Expand Down
7 changes: 6 additions & 1 deletion VaavudSDK/Events.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public enum Result<T> {
case Value(Box<T>)
case Error(ErrorEvent)

init(_ value: T) {
public init(_ value: T) {
self = .Value(Box(value))
}

Expand Down Expand Up @@ -51,6 +51,11 @@ public struct WindSpeedEvent: Event, Dictionarifiable {
var dict: [String : AnyObject] {
return ["time" : time.timeIntervalSince1970, "speed" : speed]
}

public init(time: NSDate, speed: Double) {
self.time = time
self.speed = speed
}
}

public struct WindDirectionEvent: Event, Dictionarifiable {
Expand Down
1 change: 0 additions & 1 deletion VaavudSDK/RotationProcessor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ struct RotationProcessor {
// calculate winddirections
return groupDirection.map {
rotations in
println("processed \(rotations.count) rotations")
let dir = self.fitAngle( rotations.map { $0.relVelocities }, headings: rotations.map { $0.heading! })
// debug
self.debugLastLocalAngle = (dir-rotations.last!.heading!+360)%360
Expand Down
6 changes: 6 additions & 0 deletions VaavudSDK/Vaavud.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@

import Foundation

public class VaavudSleipnirAvailability: NSObject {
public class func available() -> Bool {
return VaavudSDK().sleipnirAvailable()
}
}

public class VaavudSDK: WindListener, TemperatureListener, LocationListener {
private var windController = WindController()
private var locationController = LocationController()
Expand Down

0 comments on commit a8e8e57

Please sign in to comment.