diff --git a/Samples/TrendingMovies/TrendingMovies/ImageProcessing/UIImageEffects.h b/Samples/TrendingMovies/TrendingMovies/ImageProcessing/UIImageEffects.h index 37f981eb636..f31df233fa2 100644 --- a/Samples/TrendingMovies/TrendingMovies/ImageProcessing/UIImageEffects.h +++ b/Samples/TrendingMovies/TrendingMovies/ImageProcessing/UIImageEffects.h @@ -1,5 +1,8 @@ /* - File: UIImageEffects.h + Copied from + https://github.com/robovm/apple-ios-samples/blob/1f6b14ef6e2bda610ef8f1c93b16bf76b8594fbb/UIImageEffects/UIImageEffects/UIImageEffects.h + + File: UIImageEffects.h Abstract: This class contains methods to apply blur and tint effects to an image. This is the code you’ll want to look out to find out how to use vImage to efficiently calculate a blur. diff --git a/Samples/TrendingMovies/TrendingMovies/ImageProcessing/UIImageEffects.m b/Samples/TrendingMovies/TrendingMovies/ImageProcessing/UIImageEffects.m index ad2b777d4cc..5ff40ad4569 100644 --- a/Samples/TrendingMovies/TrendingMovies/ImageProcessing/UIImageEffects.m +++ b/Samples/TrendingMovies/TrendingMovies/ImageProcessing/UIImageEffects.m @@ -1,5 +1,8 @@ /* - File: UIImageEffects.m + Copied from + https://github.com/robovm/apple-ios-samples/blob/1f6b14ef6e2bda610ef8f1c93b16bf76b8594fbb/UIImageEffects/UIImageEffects/UIImageEffects.m + + File: UIImageEffects.m Abstract: This class contains methods to apply blur and tint effects to an image. This is the code you’ll want to look out to find out how to use vImage to efficiently calculate a blur. diff --git a/SentryTestUtils/Dynamic/Dynamic.swift b/SentryTestUtils/Dynamic/Dynamic.swift index e5b8ec39df9..4bc544762c1 100644 --- a/SentryTestUtils/Dynamic/Dynamic.swift +++ b/SentryTestUtils/Dynamic/Dynamic.swift @@ -1,3 +1,4 @@ +// Copied from https://github.com/mhdhejazi/Dynamic/blob/772883073d044bc754d401cabb6574624eb3778f/Sources/Dynamic/Dynamic.swift // // Dynamic // Created by Mhd Hejazi on 4/15/20. diff --git a/SentryTestUtils/Dynamic/Invocation.swift b/SentryTestUtils/Dynamic/Invocation.swift index 2a9b36138fe..b80764db75a 100644 --- a/SentryTestUtils/Dynamic/Invocation.swift +++ b/SentryTestUtils/Dynamic/Invocation.swift @@ -1,3 +1,4 @@ +// Copied from https://github.com/mhdhejazi/Dynamic/blob/772883073d044bc754d401cabb6574624eb3778f/Sources/Dynamic/Invocation.swift // // Dynamic // Created by Mhd Hejazi on 4/15/20. diff --git a/SentryTestUtils/Dynamic/Logger.swift b/SentryTestUtils/Dynamic/Logger.swift index 52077cc69bf..cd757bb8dfb 100644 --- a/SentryTestUtils/Dynamic/Logger.swift +++ b/SentryTestUtils/Dynamic/Logger.swift @@ -1,4 +1,5 @@ -// +// Copied from https://github.com/mhdhejazi/Dynamic/blob/772883073d044bc754d401cabb6574624eb3778f/Sources/Dynamic/Logger.swift +// // Dynamic // Created by Mhd Hejazi on 4/15/20. // Copyright © 2020 Samabox. All rights reserved. diff --git a/SentryTestUtils/Dynamic/TypeMapping.swift b/SentryTestUtils/Dynamic/TypeMapping.swift index a03d8ea85aa..bace68ef8e0 100644 --- a/SentryTestUtils/Dynamic/TypeMapping.swift +++ b/SentryTestUtils/Dynamic/TypeMapping.swift @@ -1,3 +1,4 @@ +// Copied from https://github.com/mhdhejazi/Dynamic/blob/772883073d044bc754d401cabb6574624eb3778f/Sources/Dynamic/TypeMapping.swift // // Dynamic // Created by Mhd Hejazi on 4/18/20. diff --git a/Sources/Sentry/SentryReachability.m b/Sources/Sentry/SentryReachability.m index 3af2292bc13..3157f10cbdb 100644 --- a/Sources/Sentry/SentryReachability.m +++ b/Sources/Sentry/SentryReachability.m @@ -1,5 +1,5 @@ -// -// SentryReachability.m +// Adapted from +// https://github.com/bugsnag/bugsnag-cocoa/blob/2f373f21b965f1b13d7070662e2d35f46c17d975/Bugsnag/Delivery/BSGConnectivity.m // // Created by Jamie Lynch on 2017-09-04. // diff --git a/Sources/Sentry/include/SentryReachability.h b/Sources/Sentry/include/SentryReachability.h index bfd62b80600..029b5aaf787 100644 --- a/Sources/Sentry/include/SentryReachability.h +++ b/Sources/Sentry/include/SentryReachability.h @@ -1,5 +1,5 @@ -// -// SentryReachability.h +// Adapted from +// https://github.com/bugsnag/bugsnag-cocoa/blob/2f373f21b965f1b13d7070662e2d35f46c17d975/Bugsnag/Delivery/BSGConnectivity.h // // Created by Jamie Lynch on 2017-09-04. // diff --git a/Sources/SentryCrash/Recording/Tools/SentryCrashObjCApple.h b/Sources/SentryCrash/Recording/Tools/SentryCrashObjCApple.h index c665cdf51c4..441c108dd1f 100644 --- a/Sources/SentryCrash/Recording/Tools/SentryCrashObjCApple.h +++ b/Sources/SentryCrash/Recording/Tools/SentryCrashObjCApple.h @@ -288,8 +288,8 @@ typedef struct __CFRuntimeBase { # define __CF_BIG_ENDIAN__ 0 #endif -#define CF_INFO_BITS (!!(__CF_BIG_ENDIAN__) * 3) -#define CF_RC_BITS (!!(__CF_LITTLE_ENDIAN__) * 3) +#define CF_INFO_BITS (!!(__CF_BIG_ENDIAN__)*3) +#define CF_RC_BITS (!!(__CF_LITTLE_ENDIAN__)*3) /* Bit manipulation macros */ /* Bits are numbered from 31 on left to 0 on right */ @@ -299,7 +299,7 @@ typedef struct __CFRuntimeBase { /* In the following, N1 and N2 specify an inclusive range N2..N1 with N1 >= N2 */ #define __CFBitfieldMask(N1, N2) ((((UInt32)~0UL) << (31UL - (N1) + (N2))) >> (31UL - N1)) -#define __CFBitfieldGetValue(V, N1, N2) (((V) & __CFBitfieldMask(N1, N2)) >> (N2)) +#define __CFBitfieldGetValue(V, N1, N2) (((V)&__CFBitfieldMask(N1, N2)) >> (N2)) // ====================================================================== #pragma mark - CF-1153.18/CFString.c - diff --git a/Tests/SentryTests/SentryOptionsTest.m b/Tests/SentryTests/SentryOptionsTest.m index f22a91dc3dd..2fa263f2e0e 100644 --- a/Tests/SentryTests/SentryOptionsTest.m +++ b/Tests/SentryTests/SentryOptionsTest.m @@ -801,8 +801,10 @@ - (void)testChanging_enableTracing_afterSetting_tracesSampleRate - (void)testChanging_enableTracing_afterSetting_tracesSampler { SentryOptions *options = [[SentryOptions alloc] init]; - options.tracesSampler - = ^NSNumber *(SentrySamplingContext *__unused samplingContext) { return @0.1; }; + options.tracesSampler = ^NSNumber *(SentrySamplingContext *__unused samplingContext) + { + return @0.1; + }; options.enableTracing = NO; XCTAssertNil(options.tracesSampleRate); options.enableTracing = FALSE; @@ -1159,8 +1161,10 @@ - (void)testDefaultInitialScope - (void)testInitialScope { - SentryScope * (^initialScope)(SentryScope *) - = ^SentryScope *(SentryScope *scope) { return scope; }; + SentryScope * (^initialScope)(SentryScope *) = ^SentryScope *(SentryScope *scope) + { + return scope; + }; SentryOptions *options = [self getValidOptions:@{ @"initialScope" : initialScope }]; XCTAssertIdentical(initialScope, options.initialScope); }