mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-25 07:38:40 +00:00
[Swift] Memory usage fix (#8643)
Allows a complete reset for the underlying memory of the _InternalByteBuffers within FlatBuffers and FlexBuffers.
This commit is contained in:
@@ -47,13 +47,11 @@ let package = Package(
|
||||
.testTarget(
|
||||
name: "FlatbuffersTests",
|
||||
dependencies: .dependencies,
|
||||
path: "tests/swift/Tests/Flatbuffers"
|
||||
),
|
||||
path: "tests/swift/Tests/Flatbuffers"),
|
||||
.testTarget(
|
||||
name: "FlexbuffersTests",
|
||||
dependencies: ["FlexBuffers"],
|
||||
path: "tests/swift/Tests/Flexbuffers"
|
||||
)
|
||||
path: "tests/swift/Tests/Flexbuffers"),
|
||||
])
|
||||
|
||||
extension Array where Element == Package.Dependency {
|
||||
@@ -75,7 +73,7 @@ extension Array where Element == PackageDescription.Target.Dependency {
|
||||
// Test only Dependency
|
||||
[
|
||||
.product(name: "GRPC", package: "grpc-swift"),
|
||||
"FlatBuffers"
|
||||
"FlatBuffers",
|
||||
]
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user