Skip to content

Commit

Permalink
apacheGH-36546: [Swift] The initial implementation for swift arrow fl…
Browse files Browse the repository at this point in the history
…ight (apache#36547)

The initial implementation for swift arrow flight.  

This change depends on PR apacheGH-36544.
* Closes: apache#36546

Authored-by: Alva Bandy <abandy@live.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
  • Loading branch information
abandy authored and loicalleyne committed Nov 13, 2023
1 parent c0ea39b commit c9fd4f2
Show file tree
Hide file tree
Showing 23 changed files with 4,073 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ci/scripts/swift_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,8 @@ source_dir=${1}/swift/Arrow
pushd ${source_dir}
swift test
popd

source_dir=${1}/swift/ArrowFlight
pushd ${source_dir}
swift test
popd
9 changes: 9 additions & 0 deletions swift/ArrowFlight/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.DS_Store
/.build
/Packages
/*.xcodeproj
xcuserdata/
DerivedData/
.swiftpm/
.netrc
Package.resolved
53 changes: 53 additions & 0 deletions swift/ArrowFlight/Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
// swift-tools-version:5.7
// The swift-tools-version declares the minimum version of Swift required to build this package.

// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.

import PackageDescription

let package = Package(
name: "ArrowFlight",
platforms: [
.macOS(.v10_15)
],
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(
name: "ArrowFlight",
targets: ["ArrowFlight"]),
],
dependencies: [
.package(url: "https://github.com/grpc/grpc-swift.git", from: "1.15.0"),
.package(url: "https://github.com/apple/swift-protobuf.git", from: "1.6.0"),
.package(path: "../Arrow")
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies.
.target(
name: "ArrowFlight",
dependencies: [
.product(name: "Arrow", package: "Arrow"),
.product(name: "GRPC", package: "grpc-swift"),
.product(name: "SwiftProtobuf", package: "swift-protobuf")
]),
.testTarget(
name: "ArrowFlightTests",
dependencies: ["ArrowFlight"]),
]
)
Loading

0 comments on commit c9fd4f2

Please sign in to comment.