diff options
author | mustiikhalil <mustii@mmk.one> | 2020-01-09 23:12:10 +0300 |
---|---|---|
committer | Wouter van Oortmerssen <aardappel@gmail.com> | 2020-01-09 12:12:10 -0800 |
commit | 04d80f255d1c2fa7a466e8465a119c0eaef26d59 (patch) | |
tree | 3bbb6d92e6d006a733ba04c638d6eecce228ad9a /tests/FlatBuffers.Test.Swift/SwiftTest.sh | |
parent | 55686100aa6f8b4867e8de62768d8fc0ecc5a541 (diff) | |
download | flatbuffers-04d80f255d1c2fa7a466e8465a119c0eaef26d59.tar.gz flatbuffers-04d80f255d1c2fa7a466e8465a119c0eaef26d59.tar.bz2 flatbuffers-04d80f255d1c2fa7a466e8465a119c0eaef26d59.zip |
[Swift] Swift implementation 🎉🎉 (#5603)
* Implemented the swift version of Flatbuffers
Implemented serailzing, reading, and mutating data from object monster
Fixes mis-aligned pointer issue
Fixes issue when shared strings are removed from table
Adds swift enum, structs code gen
Fixed namespace issues + started implementing the table gen
Added Mutate function to the code generator
Generated linux test cases
Fixed an issue with bools, and structs readers in table writer
Swift docker image added
Updated the test cases, and removed a method parameters in swift
Fixed createVector api when called with scalars
Fixed issues with scalar arrays, and fixed the code gen namespaces, added sample_binary.swift
Cleaned up project
Added enum vectors, and their readers
Refactored code
Added swift into the support document
Added documentation in docs, and fixed a small issue with Data() not being returned correctly
Fixes Lowercase issue, and prevents generating lookups for deprecated keys
* Made all the required funcs to have const + removed unneeded code + fix lowercase func
* Removed transform from lowercased and moved it to function
* Fixes an issue with iOS allocation from read
* Refactored cpp code to be more readable
* casts position into int for position
* Fix enums issue, moves scalar writer code to use memcpy
* Removed c_str from struct function
* Fixed script to generate new objects when ran on travis ci: fix
* Handles deallocating space allocated for structs
* Updated the test cases to adhere to the fileprivate lookup, no mutation for unions, and updated the names of the vector functions
Diffstat (limited to 'tests/FlatBuffers.Test.Swift/SwiftTest.sh')
-rw-r--r-- | tests/FlatBuffers.Test.Swift/SwiftTest.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/FlatBuffers.Test.Swift/SwiftTest.sh b/tests/FlatBuffers.Test.Swift/SwiftTest.sh new file mode 100644 index 00000000..aa8b5aca --- /dev/null +++ b/tests/FlatBuffers.Test.Swift/SwiftTest.sh @@ -0,0 +1,10 @@ +swift_dir=`pwd` +cd .. +test_dir=`pwd` + +${test_dir}/../flatc --swift --gen-mutable -I ${test_dir}/include_test ${test_dir}/monster_test.fbs ${test_dir}/union_vector/union_vector.fbs +cd ${test_dir} +mv *_generated.swift ${swift_dir}/Tests/FlatBuffers.Test.SwiftTests +cd ${swift_dir} +swift build --build-tests +swift test
\ No newline at end of file |