Flutter Engine
The Flutter Engine
availability_version_check.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_SHELL_PLATFORM_DARWIN_COMMON_AVAILABILITY_VERSION_CHECK_H_
6#define FLUTTER_SHELL_PLATFORM_DARWIN_COMMON_AVAILABILITY_VERSION_CHECK_H_
7
8#include <cstdint>
9#include <optional>
10#include <tuple>
11
12namespace flutter {
13
15 std::tuple<int32_t /* major */, int32_t /* minor */, int32_t /* patch */>;
16
17std::optional<ProductVersion> ProductVersionFromSystemVersionPList();
18
19bool IsEncodedVersionLessThanOrSame(uint32_t encoded_lhs, ProductVersion rhs);
20
21} // namespace flutter
22
23#endif // FLUTTER_SHELL_PLATFORM_DARWIN_COMMON_AVAILABILITY_VERSION_CHECK_H_
bool IsEncodedVersionLessThanOrSame(uint32_t encoded_lhs, ProductVersion rhs)
std::tuple< int32_t, int32_t, int32_t > ProductVersion
std::optional< ProductVersion > ProductVersionFromSystemVersionPList()