File tree Expand file tree Collapse file tree 4 files changed +5
-2
lines changed
GoogleUtilities.xcodeproj Expand file tree Collapse file tree 4 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -277,9 +277,8 @@ + (void)createSubclassWithObject:(id<UIApplicationDelegate>)anObject {
277
277
// Create GUL_<RealAppDelegate>_<timestampMs>
278
278
NSString *classNameWithPrefix =
279
279
[kGULAppDelegatePrefix stringByAppendingString: NSStringFromClass (realClass)];
280
- NSTimeInterval timestamp = [NSDate date ].timeIntervalSince1970 ;
281
280
NSString *newClassName =
282
- [NSString stringWithFormat: @" %@ -%0.0f " , classNameWithPrefix, timestamp * 1000 ];
281
+ [NSString stringWithFormat: @" %@ -%@ " , classNameWithPrefix, [ NSUUID UUID ].UUIDString ];
283
282
284
283
if (NSClassFromString (newClassName)) {
285
284
GULLogError (kGULLoggerSwizzler , NO ,
Original file line number Diff line number Diff line change 13
13
6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F5AF195388D20070C39A /* XCTest.framework */; };
14
14
6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; };
15
15
6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; };
16
+ 9A7C37C2224BD9C600033B0D /* GULAppDelegateSwizzlerTest.m in Sources */ = {isa = PBXBuildFile; fileRef = EFBE67F92101401100E756A7 /* GULAppDelegateSwizzlerTest.m */; };
16
17
DE5CF98E20F686310063FFDD /* GULAppEnvironmentUtilTest.m in Sources */ = {isa = PBXBuildFile; fileRef = DE5CF98C20F686290063FFDD /* GULAppEnvironmentUtilTest.m */; };
17
18
DE84BBC421D7EC900048A176 /* GULUserDefaultsTests.m in Sources */ = {isa = PBXBuildFile; fileRef = DE84BBC321D7EC900048A176 /* GULUserDefaultsTests.m */; };
18
19
DE84BBC521D7EC900048A176 /* GULUserDefaultsTests.m in Sources */ = {isa = PBXBuildFile; fileRef = DE84BBC321D7EC900048A176 /* GULUserDefaultsTests.m */; };
618
619
DEC977D920F68C3300014E20 /* GULNetworkTest.m in Sources */,
619
620
EFBE67FA2101401100E756A7 /* GULSwizzlerTest.m in Sources */,
620
621
EFBE67FD2101401100E756A7 /* GULObjectSwizzlerTest.m in Sources */,
622
+ 9A7C37C2224BD9C600033B0D /* GULAppDelegateSwizzlerTest.m in Sources */,
621
623
EFBE67FE2101401100E756A7 /* GULRuntimeClassSnapshotTests.m in Sources */,
622
624
EFBE67FC2101401100E756A7 /* GULRuntimeClassDiffTests.m in Sources */,
623
625
DE5CF98E20F686310063FFDD /* GULAppEnvironmentUtilTest.m in Sources */,
Original file line number Diff line number Diff line change 26
26
buildConfiguration = " Debug"
27
27
selectedDebuggerIdentifier = " Xcode.DebuggerFoundation.Debugger.LLDB"
28
28
selectedLauncherIdentifier = " Xcode.DebuggerFoundation.Launcher.LLDB"
29
+ codeCoverageEnabled = " YES"
29
30
shouldUseLaunchSchemeArgsEnv = " YES" >
30
31
<Testables >
31
32
<TestableReference
Original file line number Diff line number Diff line change @@ -199,6 +199,7 @@ @implementation GULAppDelegateSwizzlerTest
199
199
200
200
- (void )tearDown {
201
201
[GULAppDelegateSwizzler clearInterceptors ];
202
+ [super tearDown ];
202
203
}
203
204
204
205
/* * Tests proxying an object that responds to UIApplicationDelegate protocol and makes sure that
You can’t perform that action at this time.
0 commit comments