Skip to content

Commit

Permalink
More missing version changes
Browse files Browse the repository at this point in the history
  • Loading branch information
aardappel committed May 10, 2021
1 parent 5c01ad3 commit a9a295f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion android/app/src/main/java/generated/com/fbs/app/Animal.kt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Animal : Table() {
return if(o != 0) bb.getShort(o + bb_pos).toUShort() else 0u
}
companion object {
fun validateVersion() = Constants.FLATBUFFERS_1_12_0()
fun validateVersion() = Constants.FLATBUFFERS_2_0_0()
fun getRootAsAnimal(_bb: ByteBuffer): Animal = getRootAsAnimal(_bb, Animal())
fun getRootAsAnimal(_bb: ByteBuffer, obj: Animal): Animal {
_bb.order(ByteOrder.LITTLE_ENDIAN)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import FlatBuffers

public struct models_HelloReply: FlatBufferObject {

static func validateVersion() { FlatBuffersVersion_1_12_0() }
static func validateVersion() { FlatBuffersVersion_2_0_0() }
public var __buffer: ByteBuffer! { return _accessor.bb }
private var _accessor: Table

Expand Down Expand Up @@ -38,7 +38,7 @@ public struct models_HelloReply: FlatBufferObject {

public struct models_HelloRequest: FlatBufferObject {

static func validateVersion() { FlatBuffersVersion_1_12_0() }
static func validateVersion() { FlatBuffersVersion_2_0_0() }
public var __buffer: ByteBuffer! { return _accessor.bb }
private var _accessor: Table

Expand Down
2 changes: 1 addition & 1 deletion rust/flatbuffers/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "flatbuffers"
version = "2.0.0"
edition = "2021"
edition = "2018"
authors = ["Robert Winslow <hello@rwinslow.com>", "FlatBuffers Maintainers"]
license = "Apache-2.0"
description = "Official FlatBuffers Rust runtime library."
Expand Down
12 changes: 6 additions & 6 deletions samples/monster_generated.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public enum MyGame_Sample_Color: Int8, Enum {
case red = 0
case green = 1
case blue = 2


public static var max: MyGame_Sample_Color { return .blue }
public static var min: MyGame_Sample_Color { return .red }
Expand All @@ -23,15 +23,15 @@ public enum MyGame_Sample_Equipment: UInt8, Enum {
public var value: UInt8 { return self.rawValue }
case none_ = 0
case weapon = 1


public static var max: MyGame_Sample_Equipment { return .weapon }
public static var min: MyGame_Sample_Equipment { return .none_ }
}

public struct MyGame_Sample_Vec3: NativeStruct {

static func validateVersion() { FlatBuffersVersion_1_12_0() }
static func validateVersion() { FlatBuffersVersion_2_0_0() }

private var _x: Float32
private var _y: Float32
Expand All @@ -56,7 +56,7 @@ public struct MyGame_Sample_Vec3: NativeStruct {

public struct MyGame_Sample_Vec3_Mutable: FlatBufferObject {

static func validateVersion() { FlatBuffersVersion_1_12_0() }
static func validateVersion() { FlatBuffersVersion_2_0_0() }
public var __buffer: ByteBuffer! { return _accessor.bb }
private var _accessor: Struct

Expand All @@ -72,7 +72,7 @@ public struct MyGame_Sample_Vec3_Mutable: FlatBufferObject {

public struct MyGame_Sample_Monster: FlatBufferObject {

static func validateVersion() { FlatBuffersVersion_1_12_0() }
static func validateVersion() { FlatBuffersVersion_2_0_0() }
public var __buffer: ByteBuffer! { return _accessor.bb }
private var _accessor: Table

Expand Down Expand Up @@ -162,7 +162,7 @@ public struct MyGame_Sample_Monster: FlatBufferObject {

public struct MyGame_Sample_Weapon: FlatBufferObject {

static func validateVersion() { FlatBuffersVersion_1_12_0() }
static func validateVersion() { FlatBuffersVersion_2_0_0() }
public var __buffer: ByteBuffer! { return _accessor.bb }
private var _accessor: Table

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import FlatBuffers

public struct Property: NativeStruct {

static func validateVersion() { FlatBuffersVersion_1_12_0() }
static func validateVersion() { FlatBuffersVersion_2_0_0() }

public var property: Bool
}

public struct Property_Mutable: FlatBufferObject {

static func validateVersion() { FlatBuffersVersion_1_12_0() }
static func validateVersion() { FlatBuffersVersion_2_0_0() }
public var __buffer: ByteBuffer! { return _accessor.bb }
private var _accessor: Struct

Expand All @@ -25,7 +25,7 @@ public struct Property_Mutable: FlatBufferObject {

public struct TestMutatingBool: FlatBufferObject {

static func validateVersion() { FlatBuffersVersion_1_12_0() }
static func validateVersion() { FlatBuffersVersion_2_0_0() }
public var __buffer: ByteBuffer! { return _accessor.bb }
private var _accessor: Table

Expand Down

0 comments on commit a9a295f

Please sign in to comment.