Skip to content

Commit

Permalink
[2.0.2] Add DevTools podspec (#16)
Browse files Browse the repository at this point in the history
* use if devtools

* subspec for devtools

* add default subspec

* bump version

* rename subspec

* simplify

* use core subspec

* fix syntax

* fix syntax

* simplify

* retrigger

* retrigger

* add changelog

* retrigger

* Update CHANGELOG.md

* retrigger

---------

Co-authored-by: MFahrurR <[email protected]>
  • Loading branch information
andreanlay and MFahrurR authored Aug 27, 2024
1 parent 68935ff commit daebeab
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# 2.0.2
- Add `DevTools` subspec to give developer more control whether to enable TPTweak or not.

# 2.0.1
- fix the empty search page shows favourite empty state message
- fix the empty search page shows favourite empty state message.
- restore tweak view controller if minimizable exists
- add delay before adding minimize bar button item on the child's navigation bar
- expose restoreTweaks so custom implementation can mutate the state
Expand All @@ -23,4 +26,4 @@
- Passing closure for switch type ([#9](https://github.com/tokopedia/ios-tptweak/pull/9))

# 1.0.0
- initial release
- initial release
4 changes: 3 additions & 1 deletion Sources/TPTweak/TPTweakStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,9 @@ internal struct TPTweakStoreEnvironment {
internal static var live: Self {
TPTweakStoreEnvironment(
isDebugMode: {
#if DEBUG
#if USE_DEVTOOLS
return true
#elseif DEBUG
return true
#else
return false
Expand Down
5 changes: 4 additions & 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 = "2.0.1"
spec.version = "2.0.2"
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 All @@ -12,4 +12,7 @@ Pod::Spec.new do |spec|
spec.source = { :git => "https://github.com/tokopedia/ios-tptweak.git", :tag => "#{spec.version}" }
spec.source_files = "Sources/TPTweak/**/*.swift"

spec.subspec 'DevTools' do |sp|
sp.compiler_flags = '-DUSE_DEVTOOLS'
end
end

0 comments on commit daebeab

Please sign in to comment.