Skip to content

Commit

Permalink
Moves swift package to root of repository so it can be used directly … (
Browse files Browse the repository at this point in the history
#7548)

* Moves swift package to root of repository so it can be used directly from the main repo

Fixing paths for swift directory

* Update swift readme
  • Loading branch information
mustiikhalil committed Sep 27, 2022
1 parent 76ddae0 commit dadbff5
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 11 deletions.
4 changes: 2 additions & 2 deletions swift/FlatBuffers.podspec → FlatBuffers.podspec
Expand Up @@ -11,11 +11,11 @@ Pod::Spec.new do |s|
s.homepage = 'https://github.com/google/flatbuffers'
s.license = { :type => 'Apache2.0', :file => 'LICENSE' }
s.author = { 'mustii' => 'mustii@mmk.one' }
s.source = { :git => 'https://github.com/mustiikhalil/flatbuffers.git', :tag => s.version.to_s, :submodules => true }
s.source = { :git => 'https://github.com/google/flatbuffers.git', :tag => s.version.to_s, :submodules => true }

s.ios.deployment_target = '11.0'
s.osx.deployment_target = '10.14'

s.swift_version = '5.0'
s.source_files = 'Sources/Flatbuffers/*.swift'
s.source_files = 'swift/Sources/Flatbuffers/*.swift'
end
1 change: 1 addition & 0 deletions swift/Package.swift → Package.swift
Expand Up @@ -32,5 +32,6 @@ let package = Package(
.target(
name: "FlatBuffers",
dependencies: [],
path: "swift/Sources",
exclude: ["Documentation.docc/Resources/code/swift"]),
])
3 changes: 2 additions & 1 deletion swift/Package@swift-5.5.swift → Package@swift-5.5.swift
Expand Up @@ -31,6 +31,7 @@ let package = Package(
targets: [
.target(
name: "FlatBuffers",
dependencies: []),
dependencies: [],
path: "swift/Sources")
])

6 changes: 1 addition & 5 deletions swift/README.md
@@ -1,15 +1,11 @@
FlatBuffers swift can be found in both SPM

`.package(url: "https://github.com/mustiikhalil/flatbuffers.git", from: "X.Y.Z"),`
`.package(url: "https://github.com/google/flatbuffers.git", from: "X.Y.Z"),`

and Cocoapods

`pod 'FlatBuffers'`

### Notes

1- To report any error please use the main repository.

### Contribute

1- Always run `swift test --generate-linuxmain` whenever new test functions are added or removed
2 changes: 1 addition & 1 deletion tests/swift/Wasm.tests/Package.swift
Expand Up @@ -23,7 +23,7 @@ let package = Package(
.macOS(.v10_14),
],
dependencies: [
.package(path: "../../../swift"),
.package(path: "../../.."),
],
targets: [
.target(
Expand Down
2 changes: 1 addition & 1 deletion tests/swift/benchmarks/Package.swift
Expand Up @@ -23,7 +23,7 @@ let package = Package(
.macOS(.v10_14),
],
dependencies: [
.package(path: "../../../swift"),
.package(path: "../../.."),
.package(url: "https://github.com/google/swift-benchmark", from: "0.1.0"),
],
targets: [
Expand Down
2 changes: 1 addition & 1 deletion tests/swift/tests/Package.swift
Expand Up @@ -24,7 +24,7 @@ let package = Package(
.macOS(.v10_14),
],
dependencies: [
.package(path: "../../../swift"),
.package(path: "../../.."),
.package(url: "https://github.com/grpc/grpc-swift.git", from: "1.4.1"),
],
targets: [
Expand Down

0 comments on commit dadbff5

Please sign in to comment.