Skip to content

Commit 2221bf2

Browse files
author
man.li
committed
no message
1 parent 4d66a77 commit 2221bf2

40 files changed

+10
-1490
lines changed

CocoaDebug.podspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "CocoaDebug"
3-
s.version = "1.6.2"
3+
s.version = "1.6.3"
44
s.summary = "iOS Debug Tool"
55
s.homepage = "https://github.com/CocoaDebug/CocoaDebug"
66
s.author = {"CocoaDebug" => "[email protected]"}
@@ -27,4 +27,5 @@ Pod::Spec.new do |s|
2727
'Sources/Window/**/*.m',
2828
'Sources/fishhook/**/*.c',
2929
]
30+
# s.dependency "React/Core"
3031
end

CocoaDebug.xcodeproj/project.pbxproj

Lines changed: 0 additions & 120 deletions
Large diffs are not rendered by default.

Example_Objc/Example_Objc.xcodeproj/project.pbxproj

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 50;
6+
objectVersion = 51;
77
objects = {
88

99
/* Begin PBXBuildFile section */
@@ -14,7 +14,6 @@
1414
3813B05624E23EB3009626CC /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3813B05524E23EB3009626CC /* Assets.xcassets */; };
1515
3813B05924E23EB3009626CC /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3813B05724E23EB3009626CC /* LaunchScreen.storyboard */; };
1616
3813B05C24E23EB3009626CC /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 3813B05B24E23EB3009626CC /* main.m */; };
17-
382A92F424F0D837002361D5 /* AdditionalTestController.m in Sources */ = {isa = PBXBuildFile; fileRef = 382A92F324F0D837002361D5 /* AdditionalTestController.m */; };
1817
389E6CE724E2465A003CB9BE /* AFURLResponseSerialization.m in Sources */ = {isa = PBXBuildFile; fileRef = 389E6CDE24E2465A003CB9BE /* AFURLResponseSerialization.m */; };
1918
389E6CE824E2465A003CB9BE /* AFHTTPSessionManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 389E6CDF24E2465A003CB9BE /* AFHTTPSessionManager.m */; };
2019
389E6CE924E2465A003CB9BE /* AFURLSessionManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 389E6CE124E2465A003CB9BE /* AFURLSessionManager.m */; };
@@ -23,7 +22,6 @@
2322
389E6CEC24E2465A003CB9BE /* AFSecurityPolicy.m in Sources */ = {isa = PBXBuildFile; fileRef = 389E6CE524E2465A003CB9BE /* AFSecurityPolicy.m */; };
2423
389E6CEF24E24681003CB9BE /* index2.html in Resources */ = {isa = PBXBuildFile; fileRef = 389E6CED24E24681003CB9BE /* index2.html */; };
2524
389E6CF024E24681003CB9BE /* index.html in Resources */ = {isa = PBXBuildFile; fileRef = 389E6CEE24E24681003CB9BE /* index.html */; };
26-
38AB3DE224EC1DF40020C0F5 /* MemoryLeakTestController.m in Sources */ = {isa = PBXBuildFile; fileRef = 38AB3DE024EC1DF40020C0F5 /* MemoryLeakTestController.m */; };
2725
FE2D850BCC3CDD12B1C2DC3F /* Pods_Example_Objc.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FAE0CE8B082D2B9CD5B53B33 /* Pods_Example_Objc.framework */; };
2826
/* End PBXBuildFile section */
2927

@@ -53,8 +51,6 @@
5351
3813B05824E23EB3009626CC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
5452
3813B05A24E23EB3009626CC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
5553
3813B05B24E23EB3009626CC /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
56-
382A92F224F0D837002361D5 /* AdditionalTestController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AdditionalTestController.h; sourceTree = "<group>"; };
57-
382A92F324F0D837002361D5 /* AdditionalTestController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AdditionalTestController.m; sourceTree = "<group>"; };
5854
389E6CDA24E2465A003CB9BE /* AFSecurityPolicy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFSecurityPolicy.h; sourceTree = "<group>"; };
5955
389E6CDB24E2465A003CB9BE /* AFNetworkReachabilityManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFNetworkReachabilityManager.h; sourceTree = "<group>"; };
6056
389E6CDC24E2465A003CB9BE /* AFURLSessionManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFURLSessionManager.h; sourceTree = "<group>"; };
@@ -70,8 +66,6 @@
7066
389E6CE624E2465A003CB9BE /* AFHTTPSessionManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFHTTPSessionManager.h; sourceTree = "<group>"; };
7167
389E6CED24E24681003CB9BE /* index2.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = index2.html; sourceTree = "<group>"; };
7268
389E6CEE24E24681003CB9BE /* index.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = index.html; sourceTree = "<group>"; };
73-
38AB3DE024EC1DF40020C0F5 /* MemoryLeakTestController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MemoryLeakTestController.m; sourceTree = "<group>"; };
74-
38AB3DE124EC1DF40020C0F5 /* MemoryLeakTestController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MemoryLeakTestController.h; sourceTree = "<group>"; };
7569
3A12DEFAAAC205045EFF563F /* Pods-Example_Objc.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Example_Objc.debug.xcconfig"; path = "Target Support Files/Pods-Example_Objc/Pods-Example_Objc.debug.xcconfig"; sourceTree = "<group>"; };
7670
4DFC757E079617F0CADAC230 /* Pods-Example_ObjcTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Example_ObjcTests.debug.xcconfig"; path = "Target Support Files/Pods-Example_ObjcTests/Pods-Example_ObjcTests.debug.xcconfig"; sourceTree = "<group>"; };
7771
788D46A0FE8454409DD14CCD /* Pods-Example_ObjcTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Example_ObjcTests.release.xcconfig"; path = "Target Support Files/Pods-Example_ObjcTests/Pods-Example_ObjcTests.release.xcconfig"; sourceTree = "<group>"; };
@@ -120,10 +114,6 @@
120114
3813B04D24E23EB2009626CC /* SceneDelegate.m */,
121115
3813B04F24E23EB2009626CC /* ViewController.h */,
122116
3813B05024E23EB2009626CC /* ViewController.m */,
123-
382A92F224F0D837002361D5 /* AdditionalTestController.h */,
124-
382A92F324F0D837002361D5 /* AdditionalTestController.m */,
125-
38AB3DE124EC1DF40020C0F5 /* MemoryLeakTestController.h */,
126-
38AB3DE024EC1DF40020C0F5 /* MemoryLeakTestController.m */,
127117
3813B05224E23EB2009626CC /* Main.storyboard */,
128118
3813B05524E23EB3009626CC /* Assets.xcassets */,
129119
3813B05724E23EB3009626CC /* LaunchScreen.storyboard */,
@@ -303,14 +293,12 @@
303293
3813B05124E23EB2009626CC /* ViewController.m in Sources */,
304294
389E6CEB24E2465A003CB9BE /* AFNetworkReachabilityManager.m in Sources */,
305295
3813B04B24E23EB2009626CC /* AppDelegate.m in Sources */,
306-
38AB3DE224EC1DF40020C0F5 /* MemoryLeakTestController.m in Sources */,
307296
3813B05C24E23EB3009626CC /* main.m in Sources */,
308297
389E6CE924E2465A003CB9BE /* AFURLSessionManager.m in Sources */,
309298
389E6CE824E2465A003CB9BE /* AFHTTPSessionManager.m in Sources */,
310299
389E6CEC24E2465A003CB9BE /* AFSecurityPolicy.m in Sources */,
311300
3813B04E24E23EB2009626CC /* SceneDelegate.m in Sources */,
312301
389E6CE724E2465A003CB9BE /* AFURLResponseSerialization.m in Sources */,
313-
382A92F424F0D837002361D5 /* AdditionalTestController.m in Sources */,
314302
389E6CEA24E2465A003CB9BE /* AFURLRequestSerialization.m in Sources */,
315303
);
316304
runOnlyForDeploymentPostprocessing = 0;

Example_Objc/Example_Objc/AdditionalTestController.h

Lines changed: 0 additions & 17 deletions
This file was deleted.

Example_Objc/Example_Objc/AdditionalTestController.m

Lines changed: 0 additions & 24 deletions
This file was deleted.

Example_Objc/Example_Objc/Base.lproj/Main.storyboard

Lines changed: 2 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="17140" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="1bF-st-ibT">
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="17701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="1bF-st-ibT">
33
<device id="retina6_1" orientation="portrait" appearance="light"/>
44
<dependencies>
55
<deployment identifier="iOS"/>
6-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17115"/>
6+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17703"/>
77
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
88
<capability name="System colors in document resources" minToolsVersion="11.0"/>
99
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
@@ -16,46 +16,15 @@
1616
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
1717
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
1818
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
19-
<subviews>
20-
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="bFO-gA-Thu">
21-
<rect key="frame" x="0.0" y="88" width="414" height="774"/>
22-
<state key="normal" title="Test Memory Leaks"/>
23-
<connections>
24-
<segue destination="FDx-V5-sZz" kind="show" id="H9E-iK-qfl"/>
25-
</connections>
26-
</button>
27-
</subviews>
2819
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
2920
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
30-
<constraints>
31-
<constraint firstItem="6Tk-OE-BBY" firstAttribute="trailing" secondItem="bFO-gA-Thu" secondAttribute="trailing" id="51c-ep-b3b"/>
32-
<constraint firstItem="bFO-gA-Thu" firstAttribute="top" secondItem="6Tk-OE-BBY" secondAttribute="top" id="EVG-fA-mSB"/>
33-
<constraint firstItem="6Tk-OE-BBY" firstAttribute="bottom" secondItem="bFO-gA-Thu" secondAttribute="bottom" id="IXY-ZT-hEF"/>
34-
<constraint firstItem="bFO-gA-Thu" firstAttribute="leading" secondItem="6Tk-OE-BBY" secondAttribute="leading" id="umQ-La-Xl9"/>
35-
</constraints>
3621
</view>
3722
<navigationItem key="navigationItem" title="Example" id="v6e-5q-cFs"/>
3823
</viewController>
3924
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
4025
</objects>
4126
<point key="canvasLocation" x="-152.17391304347828" y="-110.49107142857143"/>
4227
</scene>
43-
<!--Memory Leak Test-->
44-
<scene sceneID="oR2-7I-8gr">
45-
<objects>
46-
<viewController id="FDx-V5-sZz" customClass="MemoryLeakTestController" sceneMemberID="viewController">
47-
<view key="view" contentMode="scaleToFill" id="imN-nR-oSu">
48-
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
49-
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
50-
<viewLayoutGuide key="safeArea" id="O0R-5a-N2Y"/>
51-
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
52-
</view>
53-
<navigationItem key="navigationItem" title="Memory Leak Test" id="Wp7-cp-vvG"/>
54-
</viewController>
55-
<placeholder placeholderIdentifier="IBFirstResponder" id="hur-Ie-egf" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
56-
</objects>
57-
<point key="canvasLocation" x="588" y="-96"/>
58-
</scene>
5928
<!--Navigation Controller-->
6029
<scene sceneID="sq0-5V-Bng">
6130
<objects>

Example_Objc/Example_Objc/MemoryLeakTestController.h

Lines changed: 0 additions & 17 deletions
This file was deleted.

Example_Objc/Example_Objc/MemoryLeakTestController.m

Lines changed: 0 additions & 38 deletions
This file was deleted.

Sources/App/AboutViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class AboutViewController: UITableViewController {
2828
naviItem.titleView = naviItemTitleLabel
2929

3030

31-
let version = "1.6.2"
31+
let version = "1.6.3"
3232

3333
self.versionLabel.text = "CocoaDebug Version ".appending(version)
3434

Sources/App/AppInfoViewController.swift

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ class AppInfoViewController: UITableViewController {
2828
@IBOutlet weak var naviItem: UINavigationItem!
2929
@IBOutlet weak var rnSwitch: UISwitch!
3030
@IBOutlet weak var fpsSwitch: UISwitch!
31-
32-
@IBOutlet weak var controllerMemoryLeaksSwitch: UISwitch!
33-
@IBOutlet weak var viewMemoryLeaksSwitch: UISwitch!
34-
@IBOutlet weak var memberVariablesMemoryLeaksSwitch: UISwitch!
3531

3632
var naviItemTitleLabel: UILabel?
3733

@@ -69,9 +65,6 @@ class AppInfoViewController: UITableViewController {
6965
rnSwitch.isOn = CocoaDebugSettings.shared.enableRNMonitoring
7066
webViewSwitch.isOn = CocoaDebugSettings.shared.enableWKWebViewMonitoring
7167
slowAnimationsSwitch.isOn = CocoaDebugSettings.shared.slowAnimations
72-
controllerMemoryLeaksSwitch.isOn = CocoaDebugSettings.shared.enableMemoryLeaksMonitoring_ViewController
73-
viewMemoryLeaksSwitch.isOn = CocoaDebugSettings.shared.enableMemoryLeaksMonitoring_View
74-
memberVariablesMemoryLeaksSwitch.isOn = CocoaDebugSettings.shared.enableMemoryLeaksMonitoring_MemberVariables
7568
crashSwitch.isOn = CocoaDebugSettings.shared.enableCrashRecording
7669
fpsSwitch.isOn = CocoaDebugSettings.shared.enableFpsMonitoring
7770

@@ -80,9 +73,6 @@ class AppInfoViewController: UITableViewController {
8073
rnSwitch.addTarget(self, action: #selector(rnSwitchChanged), for: UIControl.Event.valueChanged)
8174
webViewSwitch.addTarget(self, action: #selector(webViewSwitchChanged), for: UIControl.Event.valueChanged)
8275
slowAnimationsSwitch.addTarget(self, action: #selector(slowAnimationsSwitchChanged), for: UIControl.Event.valueChanged)
83-
controllerMemoryLeaksSwitch.addTarget(self, action: #selector(controllerMemoryLeaksSwitchChanged), for: UIControl.Event.valueChanged)
84-
viewMemoryLeaksSwitch.addTarget(self, action: #selector(viewMemoryLeaksSwitchChanged), for: UIControl.Event.valueChanged)
85-
memberVariablesMemoryLeaksSwitch.addTarget(self, action: #selector(memberVariablesMemoryLeaksSwitchChanged), for: UIControl.Event.valueChanged)
8676
crashSwitch.addTarget(self, action: #selector(crashSwitchChanged), for: UIControl.Event.valueChanged)
8777
fpsSwitch.addTarget(self, action: #selector(fpsSwitchChanged), for: UIControl.Event.valueChanged)
8878
}
@@ -118,21 +108,6 @@ class AppInfoViewController: UITableViewController {
118108
// self.showAlert()
119109
}
120110

121-
@objc func controllerMemoryLeaksSwitchChanged(sender: UISwitch) {
122-
CocoaDebugSettings.shared.enableMemoryLeaksMonitoring_ViewController = controllerMemoryLeaksSwitch.isOn
123-
// self.showAlert()
124-
}
125-
126-
@objc func viewMemoryLeaksSwitchChanged(sender: UISwitch) {
127-
CocoaDebugSettings.shared.enableMemoryLeaksMonitoring_View = viewMemoryLeaksSwitch.isOn
128-
// self.showAlert()
129-
}
130-
131-
@objc func memberVariablesMemoryLeaksSwitchChanged(sender: UISwitch) {
132-
CocoaDebugSettings.shared.enableMemoryLeaksMonitoring_MemberVariables = memberVariablesMemoryLeaksSwitch.isOn
133-
// self.showAlert()
134-
}
135-
136111
@objc func fpsSwitchChanged(sender: UISwitch) {
137112
CocoaDebugSettings.shared.enableFpsMonitoring = fpsSwitch.isOn
138113
if fpsSwitch.isOn == true {

0 commit comments

Comments
 (0)