From 0aea002e1fc850f683dcf9a91a839f6a6f8a3864 Mon Sep 17 00:00:00 2001 From: patrick-zippenfenig Date: Wed, 10 Apr 2024 13:47:54 +0200 Subject: [PATCH] fix: update flatbuffers version --- Package.resolved | 4 ++-- Package.swift | 2 +- build.gradle.kts | 4 ++-- csharp/openmeteo_sdk/VariableWithValues.cs | 2 +- csharp/openmeteo_sdk/VariablesWithTime.cs | 2 +- csharp/openmeteo_sdk/WeatherApiResponse.cs | 2 +- java/com/openmeteo/sdk/VariableWithValues.java | 2 +- java/com/openmeteo/sdk/VariablesWithTime.java | 2 +- java/com/openmeteo/sdk/WeatherApiResponse.java | 2 +- kotlin/com/openmeteo/sdk/VariableWithValues.kt | 2 +- kotlin/com/openmeteo/sdk/VariablesWithTime.kt | 2 +- kotlin/com/openmeteo/sdk/WeatherApiResponse.kt | 2 +- package-lock.json | 8 ++++---- package.json | 2 +- swift/Sources/OpenMeteoSdk/weather_api_generated.swift | 6 +++--- 15 files changed, 22 insertions(+), 22 deletions(-) diff --git a/Package.resolved b/Package.resolved index 884dd00..db6e637 100644 --- a/Package.resolved +++ b/Package.resolved @@ -5,8 +5,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/google/flatbuffers.git", "state" : { - "revision" : "6ff9e90e7e399f3977e99a315856b57c8afe5b4d", - "version" : "24.3.7" + "revision" : "595bf0007ab1929570c7671f091313c8fc20644e", + "version" : "24.3.25" } } ], diff --git a/Package.swift b/Package.swift index 4b581c0..2c8c381 100644 --- a/Package.swift +++ b/Package.swift @@ -15,7 +15,7 @@ let package = Package( targets: ["OpenMeteoSdk"]), ], dependencies: [ - .package(url: "https://github.com/google/flatbuffers.git", from: "24.3.7") + .package(url: "https://github.com/google/flatbuffers.git", from: "24.3.25") ], targets: [ .target( diff --git a/build.gradle.kts b/build.gradle.kts index eacb0b9..e3c4d14 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -29,12 +29,12 @@ repositories { } dependencies { - api("com.google.flatbuffers:flatbuffers-java:24.3.7") + api("com.google.flatbuffers:flatbuffers-java:24.3.25") api("com.google.code.findbugs:jsr305:3.0.2") constraints { add("implementation", "com.google.flatbuffers:flatbuffers-java") { version { - prefer("24.3.7") + prefer("24.3.25") require("22.10.0") } } diff --git a/csharp/openmeteo_sdk/VariableWithValues.cs b/csharp/openmeteo_sdk/VariableWithValues.cs index 408beb1..8d164e7 100644 --- a/csharp/openmeteo_sdk/VariableWithValues.cs +++ b/csharp/openmeteo_sdk/VariableWithValues.cs @@ -13,7 +13,7 @@ public struct VariableWithValues : IFlatbufferObject { private Table __p; public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_7(); } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } public static VariableWithValues GetRootAsVariableWithValues(ByteBuffer _bb) { return GetRootAsVariableWithValues(_bb, new VariableWithValues()); } public static VariableWithValues GetRootAsVariableWithValues(ByteBuffer _bb, VariableWithValues obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } diff --git a/csharp/openmeteo_sdk/VariablesWithTime.cs b/csharp/openmeteo_sdk/VariablesWithTime.cs index 853bc9f..556a914 100644 --- a/csharp/openmeteo_sdk/VariablesWithTime.cs +++ b/csharp/openmeteo_sdk/VariablesWithTime.cs @@ -13,7 +13,7 @@ public struct VariablesWithTime : IFlatbufferObject { private Table __p; public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_7(); } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } public static VariablesWithTime GetRootAsVariablesWithTime(ByteBuffer _bb) { return GetRootAsVariablesWithTime(_bb, new VariablesWithTime()); } public static VariablesWithTime GetRootAsVariablesWithTime(ByteBuffer _bb, VariablesWithTime obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } diff --git a/csharp/openmeteo_sdk/WeatherApiResponse.cs b/csharp/openmeteo_sdk/WeatherApiResponse.cs index e18be6a..0ca5b5b 100644 --- a/csharp/openmeteo_sdk/WeatherApiResponse.cs +++ b/csharp/openmeteo_sdk/WeatherApiResponse.cs @@ -13,7 +13,7 @@ public struct WeatherApiResponse : IFlatbufferObject { private Table __p; public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_7(); } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } public static WeatherApiResponse GetRootAsWeatherApiResponse(ByteBuffer _bb) { return GetRootAsWeatherApiResponse(_bb, new WeatherApiResponse()); } public static WeatherApiResponse GetRootAsWeatherApiResponse(ByteBuffer _bb, WeatherApiResponse obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } public static bool VerifyWeatherApiResponse(ByteBuffer _bb) {Google.FlatBuffers.Verifier verifier = new Google.FlatBuffers.Verifier(_bb); return verifier.VerifyBuffer("", false, WeatherApiResponseVerify.Verify); } diff --git a/java/com/openmeteo/sdk/VariableWithValues.java b/java/com/openmeteo/sdk/VariableWithValues.java index 1c93ea8..895a3c5 100644 --- a/java/com/openmeteo/sdk/VariableWithValues.java +++ b/java/com/openmeteo/sdk/VariableWithValues.java @@ -23,7 +23,7 @@ @SuppressWarnings("unused") public final class VariableWithValues extends Table { - public static void ValidateVersion() { Constants.FLATBUFFERS_24_3_7(); } + public static void ValidateVersion() { Constants.FLATBUFFERS_24_3_25(); } public static VariableWithValues getRootAsVariableWithValues(ByteBuffer _bb) { return getRootAsVariableWithValues(_bb, new VariableWithValues()); } public static VariableWithValues getRootAsVariableWithValues(ByteBuffer _bb, VariableWithValues obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } diff --git a/java/com/openmeteo/sdk/VariablesWithTime.java b/java/com/openmeteo/sdk/VariablesWithTime.java index 98d692f..1051b3a 100644 --- a/java/com/openmeteo/sdk/VariablesWithTime.java +++ b/java/com/openmeteo/sdk/VariablesWithTime.java @@ -23,7 +23,7 @@ @SuppressWarnings("unused") public final class VariablesWithTime extends Table { - public static void ValidateVersion() { Constants.FLATBUFFERS_24_3_7(); } + public static void ValidateVersion() { Constants.FLATBUFFERS_24_3_25(); } public static VariablesWithTime getRootAsVariablesWithTime(ByteBuffer _bb) { return getRootAsVariablesWithTime(_bb, new VariablesWithTime()); } public static VariablesWithTime getRootAsVariablesWithTime(ByteBuffer _bb, VariablesWithTime obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } diff --git a/java/com/openmeteo/sdk/WeatherApiResponse.java b/java/com/openmeteo/sdk/WeatherApiResponse.java index 7150fe3..3c06564 100644 --- a/java/com/openmeteo/sdk/WeatherApiResponse.java +++ b/java/com/openmeteo/sdk/WeatherApiResponse.java @@ -23,7 +23,7 @@ @SuppressWarnings("unused") public final class WeatherApiResponse extends Table { - public static void ValidateVersion() { Constants.FLATBUFFERS_24_3_7(); } + public static void ValidateVersion() { Constants.FLATBUFFERS_24_3_25(); } public static WeatherApiResponse getRootAsWeatherApiResponse(ByteBuffer _bb) { return getRootAsWeatherApiResponse(_bb, new WeatherApiResponse()); } public static WeatherApiResponse getRootAsWeatherApiResponse(ByteBuffer _bb, WeatherApiResponse obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } diff --git a/kotlin/com/openmeteo/sdk/VariableWithValues.kt b/kotlin/com/openmeteo/sdk/VariableWithValues.kt index b33b2a7..6559bca 100644 --- a/kotlin/com/openmeteo/sdk/VariableWithValues.kt +++ b/kotlin/com/openmeteo/sdk/VariableWithValues.kt @@ -107,7 +107,7 @@ class VariableWithValues : Table() { return if(o != 0) bb.getShort(o + bb_pos) else 0 } companion object { - fun validateVersion() = Constants.FLATBUFFERS_24_3_7() + fun validateVersion() = Constants.FLATBUFFERS_24_3_25() fun getRootAsVariableWithValues(_bb: ByteBuffer): VariableWithValues = getRootAsVariableWithValues(_bb, VariableWithValues()) fun getRootAsVariableWithValues(_bb: ByteBuffer, obj: VariableWithValues): VariableWithValues { _bb.order(ByteOrder.LITTLE_ENDIAN) diff --git a/kotlin/com/openmeteo/sdk/VariablesWithTime.kt b/kotlin/com/openmeteo/sdk/VariablesWithTime.kt index e7cf4e4..8ea3ad4 100644 --- a/kotlin/com/openmeteo/sdk/VariablesWithTime.kt +++ b/kotlin/com/openmeteo/sdk/VariablesWithTime.kt @@ -57,7 +57,7 @@ class VariablesWithTime : Table() { val o = __offset(10); return if (o != 0) __vector_len(o) else 0 } companion object { - fun validateVersion() = Constants.FLATBUFFERS_24_3_7() + fun validateVersion() = Constants.FLATBUFFERS_24_3_25() fun getRootAsVariablesWithTime(_bb: ByteBuffer): VariablesWithTime = getRootAsVariablesWithTime(_bb, VariablesWithTime()) fun getRootAsVariablesWithTime(_bb: ByteBuffer, obj: VariablesWithTime): VariablesWithTime { _bb.order(ByteOrder.LITTLE_ENDIAN) diff --git a/kotlin/com/openmeteo/sdk/WeatherApiResponse.kt b/kotlin/com/openmeteo/sdk/WeatherApiResponse.kt index 7732336..3f31ab2 100644 --- a/kotlin/com/openmeteo/sdk/WeatherApiResponse.kt +++ b/kotlin/com/openmeteo/sdk/WeatherApiResponse.kt @@ -131,7 +131,7 @@ class WeatherApiResponse : Table() { } } companion object { - fun validateVersion() = Constants.FLATBUFFERS_24_3_7() + fun validateVersion() = Constants.FLATBUFFERS_24_3_25() fun getRootAsWeatherApiResponse(_bb: ByteBuffer): WeatherApiResponse = getRootAsWeatherApiResponse(_bb, WeatherApiResponse()) fun getRootAsWeatherApiResponse(_bb: ByteBuffer, obj: WeatherApiResponse): WeatherApiResponse { _bb.order(ByteOrder.LITTLE_ENDIAN) diff --git a/package-lock.json b/package-lock.json index 2213f35..7e7602c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.0.0", "license": "MIT", "dependencies": { - "flatbuffers": "^24.3.7" + "flatbuffers": "^24.3.25" }, "devDependencies": { "@droidsolutions-oss/semantic-release-nuget": "^2.0.1", @@ -1954,9 +1954,9 @@ } }, "node_modules/flatbuffers": { - "version": "24.3.7", - "resolved": "https://registry.npmjs.org/flatbuffers/-/flatbuffers-24.3.7.tgz", - "integrity": "sha512-GB19A5cyEvOVeQw3D72zXG/5rWXhGo+BhQj5YbXwOi9tV0IorjWKu1PyoW80FSNtii/YBAxHLuu54/ww0pPceQ==" + "version": "24.3.25", + "resolved": "https://registry.npmjs.org/flatbuffers/-/flatbuffers-24.3.25.tgz", + "integrity": "sha512-3HDgPbgiwWMI9zVB7VYBHaMrbOO7Gm0v+yD2FV/sCKj+9NDeVL7BOBYUuhWAQGKWOzBo8S9WdMvV0eixO233XQ==" }, "node_modules/form-data": { "version": "3.0.1", diff --git a/package.json b/package.json index 3d26fc4..8a6a248 100644 --- a/package.json +++ b/package.json @@ -40,6 +40,6 @@ "typescript": "^5.2.2" }, "dependencies": { - "flatbuffers": "^24.3.7" + "flatbuffers": "^24.3.25" } } diff --git a/swift/Sources/OpenMeteoSdk/weather_api_generated.swift b/swift/Sources/OpenMeteoSdk/weather_api_generated.swift index a4f2b91..ab9bf40 100644 --- a/swift/Sources/OpenMeteoSdk/weather_api_generated.swift +++ b/swift/Sources/OpenMeteoSdk/weather_api_generated.swift @@ -270,7 +270,7 @@ public enum openmeteo_sdk_Aggregation: UInt8, Enum, Verifiable { public struct openmeteo_sdk_VariableWithValues: FlatBufferObject, Verifiable { - static func validateVersion() { FlatBuffersVersion_24_3_7() } + static func validateVersion() { FlatBuffersVersion_24_3_25() } public var __buffer: ByteBuffer! { return _accessor.bb } private var _accessor: Table @@ -377,7 +377,7 @@ public struct openmeteo_sdk_VariableWithValues: FlatBufferObject, Verifiable { public struct openmeteo_sdk_VariablesWithTime: FlatBufferObject, Verifiable { - static func validateVersion() { FlatBuffersVersion_24_3_7() } + static func validateVersion() { FlatBuffersVersion_24_3_25() } public var __buffer: ByteBuffer! { return _accessor.bb } private var _accessor: Table @@ -432,7 +432,7 @@ public struct openmeteo_sdk_VariablesWithTime: FlatBufferObject, Verifiable { public struct openmeteo_sdk_WeatherApiResponse: FlatBufferObject, Verifiable { - static func validateVersion() { FlatBuffersVersion_24_3_7() } + static func validateVersion() { FlatBuffersVersion_24_3_25() } public var __buffer: ByteBuffer! { return _accessor.bb } private var _accessor: Table