From a945779b54e78820003be846de37b7638f8cae62 Mon Sep 17 00:00:00 2001 From: Alexander Romanov Date: Sun, 10 Nov 2024 14:14:44 +0300 Subject: [PATCH] Fix #major --- Package.swift | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Package.swift b/Package.swift index 81a3155..de7c73d 100644 --- a/Package.swift +++ b/Package.swift @@ -4,7 +4,7 @@ import Foundation import PackageDescription -let productionDependencies: [PackageDescription.Package.Dependency] = [ +let remoteDependencies: [PackageDescription.Package.Dependency] = [ .package(url: "https://github.com/oversizedev/OversizeUI.git", .upToNextMajor(from: "3.0.2")), .package(url: "https://github.com/oversizedev/OversizeCore.git", .upToNextMajor(from: "2.0.0")), .package(url: "https://github.com/oversizedev/OversizeServices.git", .upToNextMajor(from: "1.4.0")), @@ -34,10 +34,8 @@ let developmentDependencies: [PackageDescription.Package.Dependency] = [ var dependencies: [PackageDescription.Package.Dependency] = [] -if ProcessInfo.processInfo.environment["RELEASE_DEPENDENCIES"].flatMap(Bool.init) ?? false { - dependencies = productionDependencies -} else { - dependencies = developmentDependencies +if ProcessInfo.processInfo.environment["BUILD_MODE"] == "PRODUCTION" { + dependencies = remoteDependencies } let package = Package(