diff --git a/CHANGELOG.md b/CHANGELOG.md index 39a76f6..19ddbaa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# 3.1.1 +- expose environment + # 3.1.0 - use flatten section on search - add options to always show search bar diff --git a/Sources/TPTweak/TPTweakStore.swift b/Sources/TPTweak/TPTweakStore.swift index 2581f10..7c8a794 100644 --- a/Sources/TPTweak/TPTweakStore.swift +++ b/Sources/TPTweak/TPTweakStore.swift @@ -97,7 +97,7 @@ internal typealias TPTweak = TPTweakStore */ public enum TPTweakStore { /// all side effect logic, also for unit testing - internal static var environment: TPTweakStoreEnvironment = .live + public static var environment: TPTweakStoreEnvironment = .live internal static var entries: [String: TPTweakEntry] = [:] // MARK: - Interface @@ -238,11 +238,11 @@ public enum TPTweakStore { } } -internal struct TPTweakStoreEnvironment { - internal var isDebugMode: () -> Bool - internal var provider: () -> UserDefaults +public struct TPTweakStoreEnvironment { + public var isDebugMode: () -> Bool + public var provider: () -> UserDefaults - internal static var live: Self { + public static var live: Self { TPTweakStoreEnvironment( isDebugMode: { #if TPTWEAK_ENABLE_RELEASE_MODE diff --git a/TPTweak.podspec b/TPTweak.podspec index c5723b4..ddb6bf8 100644 --- a/TPTweak.podspec +++ b/TPTweak.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |spec| spec.name = "TPTweak" - spec.version = "3.1.0" + spec.version = "3.1.1" spec.summary = "TPTweak is a debugging tool to help adjust your iOS app on the fly without recompile" spec.license = { :type => "Apache 2.0", :file => "LICENSE.md" }