Skip to content

Commit

Permalink
Merge branch 'release/2.0.0-rc1'
Browse files Browse the repository at this point in the history
  • Loading branch information
tobihagemann committed Dec 17, 2021
2 parents 72bc9b2 + bc324b0 commit 2b0fd94
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 20 deletions.
18 changes: 3 additions & 15 deletions CryptomatorCommon/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,8 @@
// Copyright © 2021 Skymatic GmbH. All rights reserved.
//

import Foundation
import PackageDescription

let swiftSettings: [SwiftSetting]?
if ProcessInfo.processInfo.environment["TESTFLIGHT"] == "1" {
print("Enabled TestFlight environment")
swiftSettings = [.define("TESTFLIGHT")]
} else {
swiftSettings = nil
}

let package = Package(
name: "CryptomatorCommon",
platforms: [
Expand All @@ -44,21 +35,18 @@ let package = Package(
dependencies: [
"CryptomatorCommonCore",
"CryptomatorCloudAccess"
],
swiftSettings: swiftSettings
]
),
.target(
name: "CryptomatorCommonCore",
dependencies: [
"CocoaLumberjackSwift",
"CryptomatorCloudAccessCore"
],
swiftSettings: swiftSettings
]
),
.testTarget(
name: "CryptomatorCommonCoreTests",
dependencies: ["CryptomatorCommonCore"],
swiftSettings: swiftSettings
dependencies: ["CryptomatorCommonCore"]
)
]
)
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,9 @@ public class CryptomatorUserDefaults {
}

private func key(from property: String) -> String {
#if TESTFLIGHT
#warning("TestFlight environment is enabled")
return "\(property)-TestFlight"
#else
return property
#endif
// return property
}
}

Expand Down
1 change: 0 additions & 1 deletion fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ platform :ios do

desc "Submit a new internal beta build to TestFlight"
lane :beta do
ENV["TESTFLIGHT"] = "1"
gym(scheme: "Cryptomator", clean: true)
changelog = File.read("changelog.txt")
pilot(changelog: changelog, distribute_external: false, groups: ["App Store Connect Users"], skip_waiting_for_build_processing: true)
Expand Down

0 comments on commit 2b0fd94

Please sign in to comment.