Skip to content

Commit 5c65885

Browse files
author
Matteo Crippa
committed
upgrade kitura 1.0
1 parent 5c85ab2 commit 5c65885

25 files changed

+2007
-26
lines changed

.DS_Store

6 KB
Binary file not shown.

.swift-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
DEVELOPMENT-SNAPSHOT-2016-07-25-a
1+
3.0

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import PackageDescription
33
let package = Package(
44
name: "ToriAllowRemoteOrigin",
55
dependencies: [
6-
.Package(url: "https://github.com/IBM-Swift/Kitura.git", majorVersion: 0, minor: 27)
6+
.Package(url: "https://github.com/IBM-Swift/Kitura.git", majorVersion: 1, minor: 0)
77
]
88
)

Sources/ToriAllowRemoteOrigin.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class AllowRemoteOrigin: RouterMiddleware {
2121

2222
public init () {}
2323

24-
public func handle(request: RouterRequest, response: RouterResponse, next: () -> Void) {
24+
public func handle(request: RouterRequest, response: RouterResponse, next: @escaping () -> Void) {
2525

2626
// enable cors
2727
response.headers.append("Access-Control-Allow-Origin", value: "*")

Tests/LinuxMain.swift

Lines changed: 0 additions & 6 deletions
This file was deleted.

Tests/ToriAllowRemoteOrigin/ToriAllowRemoteOriginTests.swift

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<plist version="1.0">
3+
<dict>
4+
<key>CFBundleDevelopmentRegion</key>
5+
<string>en</string>
6+
<key>CFBundleExecutable</key>
7+
<string>$(EXECUTABLE_NAME)</string>
8+
<key>CFBundleIdentifier</key>
9+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
10+
<key>CFBundleInfoDictionaryVersion</key>
11+
<string>6.0</string>
12+
<key>CFBundleName</key>
13+
<string>$(PRODUCT_NAME)</string>
14+
<key>CFBundlePackageType</key>
15+
<string>FMWK</string>
16+
<key>CFBundleShortVersionString</key>
17+
<string>1.0</string>
18+
<key>CFBundleSignature</key>
19+
<string>????</string>
20+
<key>CFBundleVersion</key>
21+
<string>$(CURRENT_PROJECT_VERSION)</string>
22+
<key>NSPrincipalClass</key>
23+
<string></string>
24+
</dict>
25+
</plist>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
PRODUCT_NAME = $(TARGET_NAME)
2+
SUPPORTED_PLATFORMS = macosx iphoneos iphonesimulator appletvos appletvsimulator watchos watchsimulator
3+
MACOSX_DEPLOYMENT_TARGET = 10.10
4+
DYLIB_INSTALL_NAME_BASE = @rpath
5+
OTHER_SWIFT_FLAGS = -DXcode
6+
COMBINE_HIDPI_IMAGES = YES
7+
USE_HEADERMAP = NO
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
framework module CHTTPParser {
2+
umbrella "/Volumes/HDD/matteocrippa/Repositories/Tori-AllowRemoteOrigin/Packages/CHTTPParser-0.3.0/Sources/CHTTPParser/include"
3+
link framework "CHTTPParser"
4+
export *
5+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<plist version="1.0">
3+
<dict>
4+
<key>CFBundleDevelopmentRegion</key>
5+
<string>en</string>
6+
<key>CFBundleExecutable</key>
7+
<string>$(EXECUTABLE_NAME)</string>
8+
<key>CFBundleIdentifier</key>
9+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
10+
<key>CFBundleInfoDictionaryVersion</key>
11+
<string>6.0</string>
12+
<key>CFBundleName</key>
13+
<string>$(PRODUCT_NAME)</string>
14+
<key>CFBundlePackageType</key>
15+
<string>FMWK</string>
16+
<key>CFBundleShortVersionString</key>
17+
<string>1.0</string>
18+
<key>CFBundleSignature</key>
19+
<string>????</string>
20+
<key>CFBundleVersion</key>
21+
<string>$(CURRENT_PROJECT_VERSION)</string>
22+
<key>NSPrincipalClass</key>
23+
<string></string>
24+
</dict>
25+
</plist>

0 commit comments

Comments
 (0)