Skip to content

Commit

Permalink
Fix #major
Browse files Browse the repository at this point in the history
  • Loading branch information
aromanov91 committed Nov 10, 2024
1 parent 6ffd82a commit a945779
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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")),
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit a945779

Please sign in to comment.