2 * Copyright 2017 Google
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #import <Foundation/Foundation.h>
20 * Parsing utility for FIRMessaging Library versions. FIRMessaging Library follows semantic versioning.
21 * This provides utilities to parse the library versions to enable features and do
22 * updates based on appropriate library versions.
24 * Some example semantic versions are 1.0.1, 2.1.0, 2.1.1, 2.2.0-alpha1, 2.2.1-beta1
27 FOUNDATION_EXPORT NSString *FIRMessagingCurrentLibraryVersion(void);
28 /// Returns the current Major version of FIRMessaging library.
29 FOUNDATION_EXPORT int FIRMessagingCurrentLibraryVersionMajor(void);
30 /// Returns the current Minor version of FIRMessaging library.
31 FOUNDATION_EXPORT int FIRMessagingCurrentLibraryVersionMinor(void);
32 /// Returns the current Patch version of FIRMessaging library.
33 FOUNDATION_EXPORT int FIRMessagingCurrentLibraryVersionPatch(void);
34 /// Returns YES if current library version is `beta` else NO.
35 FOUNDATION_EXPORT BOOL FIRMessagingCurrentLibraryVersionIsBeta(void);