/*
 * Copyright 2025 Mifos Initiative
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at https://mozilla.org/MPL/2.0/.
 *
 * See https://github.com/openMF/mobile-wallet/blob/master/LICENSE.md
 */
package template.core.base.platform.utils

import android.os.Build

/**
 * Determines if the current device's Android SDK version is below a specified version.
 *
 * This utility function compares the current device's Android SDK version with the
 * provided version parameter. It is useful for implementing version-specific behavior
 * in Android applications.
 *
 * @param version The Android SDK version to compare against (e.g., Build.VERSION_CODES.TIRAMISU)
 * @return true if the current device's SDK version is below the specified version,
 *         false otherwise
 */
fun isBuildVersionBelow(version: Int): Boolean = version > Build.VERSION.SDK_INT
