[Android] Remove maven dependency of flatbuffers and use source folder (#7503)

This commit is contained in:
Paulo Pinheiro
2022-09-01 23:58:25 +02:00
committed by GitHub
parent a79d61ea85
commit 7f7547737e
4 changed files with 20 additions and 28 deletions

View File

@@ -36,7 +36,7 @@ class Animal : Table() {
return if(o != 0) bb.getShort(o + bb_pos).toUShort() else 0u
}
companion object {
fun validateVersion() = Constants.FLATBUFFERS_2_0_0()
fun validateVersion() = Constants.FLATBUFFERS_2_0_8()
fun getRootAsAnimal(_bb: ByteBuffer): Animal = getRootAsAnimal(_bb, Animal())
fun getRootAsAnimal(_bb: ByteBuffer, obj: Animal): Animal {
_bb.order(ByteOrder.LITTLE_ENDIAN)