Skip to content
This repository was archived by the owner on Jan 7, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 3.1.1
- expose environment

# 3.1.0
- use flatten section on search
- add options to always show search bar
Expand Down
10 changes: 5 additions & 5 deletions Sources/TPTweak/TPTweakStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion TPTweak.podspec
Original file line number Diff line number Diff line change
@@ -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" }
Expand Down
Loading