An open API service indexing awesome lists of open source software.

https://github.com/numandev1/flatbuffers-prefab

flatbuffers v23.5.26 version through dependency implementation
https://github.com/numandev1/flatbuffers-prefab

flatbuffers flatbuffers-prefab jitpack jitpack-android prefab

Last synced: about 1 year ago
JSON representation

flatbuffers v23.5.26 version through dependency implementation

Awesome Lists containing this project

README

          

# FlatBuffers Prefab

#### Version: v23.5.26

Prefab package for FlatBuffers (https://github.com/google/flatbuffers).

## Integration

This is a [Prefab](https://google.github.io/prefab/) library, so you will need to enable it in your project (requires Android Gradle Plugin 4.1+):

gradle.properties:

```gradle
android {
...
buildFeatures {
...
prefab true
}
}
```

Add dependency:

```gradle
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}

dependencies {
implementation 'com.github.numandev1:flatbuffers-prefab:e21748fc02'
}
```

## Usage

### ndk-build

```makefile
LOCAL_STATIC_LIBRARIES := flatbuffers

# You can remove this block if you are using NDK r21+.
ifneq ($(call ndk-major-at-least,21),true)
$(call import-add-path,$(NDK_GRADLE_INJECTED_IMPORT_PATH))
endif

$(call import-module,prefab/flatbuffers)
```

### CMake

```cmake
find_package(flatbuffers REQUIRED CONFIG)
target_link_libraries( flatbuffers::flatbuffers)
```