Skip to content

Commit

Permalink
Finish Release-5.4.3-20240827
Browse files Browse the repository at this point in the history
  • Loading branch information
lszzy committed Aug 27, 2024
2 parents 9096b46 + 773d2e0 commit b46db01
Show file tree
Hide file tree
Showing 18 changed files with 1,543 additions and 1,525 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## [5.4.3] - 2024-08-27

### Added
* Automatically implement UIViewController.injected method when InjectionIII is enabled

## [5.4.2] - 2024-08-12

### Added
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG_CN.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# 更新日志

## [5.4.3] - 2024-08-27

### Added
* 启用InjectionIII时自动实现UIViewController.injected方法

## [5.4.2] - 2024-08-12

### Added
Expand Down
4 changes: 2 additions & 2 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- FWDebug (5.4.1)
- FWDebug (5.4.3)

DEPENDENCIES:
- FWDebug (from `../`)
Expand All @@ -9,7 +9,7 @@ EXTERNAL SOURCES:
:path: "../"

SPEC CHECKSUMS:
FWDebug: d5bcba51c03be836cd24c5f1a663a4aae43ab246
FWDebug: 09201e5ee86382268f0669970f96ed46cebbeefc

PODFILE CHECKSUM: bfd25050ff2f8ce8d3b20e2e93e52d3045df26e7

Expand Down
4 changes: 2 additions & 2 deletions Example/Pods/Local Podspecs/FWDebug.podspec.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Example/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion FWDebug.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "FWDebug"
s.version = "5.4.2"
s.version = "5.4.3"
s.summary = "ios debug library"
s.homepage = "http://wuyong.site"
s.license = "MIT"
Expand Down
10 changes: 9 additions & 1 deletion FWDebug/Classes/Private/FLEX/FWDebugAppConfig.m
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@ + (void)fwDebugLoad
#if TARGET_OS_SIMULATOR
// https://itunes.apple.com/cn/app/injectioniii/id1380446739?mt=12
[[NSBundle bundleWithPath:@"/Applications/InjectionIII.app/Contents/Resources/iOSInjection.bundle"] load];

#ifdef DEBUG
[FWDebugManager swizzleMethod:NSSelectorFromString(@"injected") in:[UIViewController class] withBlock:^id(__unsafe_unretained Class targetClass, SEL originalCMD, IMP (^originalIMP)(void)) {
return ^(__unsafe_unretained UIViewController *selfObject) {
[selfObject viewDidLoad];
};
}];
#endif
#endif
}

Expand Down Expand Up @@ -545,7 +553,7 @@ - (void)configSwitch:(UITableViewCell *)cell indexPath:(NSIndexPath *)indexPath
cellSwitch.on = [self.class isSecretEnabled];
} else if (indexPath.section == FWDebugAppConfigSectionApp && indexPath.row == FWDebugAppConfigSectionAppRowInjectionIII) {
cell.textLabel.text = @"Load Simulator InjectionIII";
cell.detailTextLabel.text = nil;
cell.detailTextLabel.text = [self.class isInjectionEnabled] ? @"Implement UIViewController.injected" : nil;
cellSwitch.on = [self.class isInjectionEnabled];
}
}
Expand Down
10 changes: 5 additions & 5 deletions Framework/FWDebug.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,32 @@
<key>BinaryPath</key>
<string>FWDebug.framework/FWDebug</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>FWDebug.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>BinaryPath</key>
<string>FWDebug.framework/FWDebug</string>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>FWDebug.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
Expand Down
Binary file modified Framework/FWDebug.xcframework/ios-arm64/FWDebug.framework/FWDebug
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit b46db01

Please sign in to comment.