@@ -28,36 +28,30 @@ import ObjectiveC
2828@objc @_spi ( Private) public class SentryInAppLogic : NSObject {
2929
3030 @objc public let inAppIncludes : [ String ]
31- private let inAppExcludes : [ String ]
3231
3332 /**
34- * Initializes @c SentryInAppLogic with @c inAppIncludes and @c inAppExcludes .
33+ * Initializes @c SentryInAppLogic with @c inAppIncludes.
3534 *
3635 * To work properly for Apple applications the @c inAppIncludes should contain the
3736 * @c CFBundleExecutable, which is the name of the bundle's executable file.
3837 *
39- * @param inAppIncludes A list of string prefixes of framework names that belong to the app. This
40- * option takes precedence over @c inAppExcludes.
41- * @param inAppExcludes A list of string prefixes of framework names that do not belong to the app,
42- * but rather to third-party packages. Modules considered not part of the app will be hidden from
43- * stack traces by default.
38+ * @param inAppIncludes A list of string prefixes of framework names that belong to the app.
4439 */
45- @objc ( initWithInAppIncludes: inAppExcludes : ) public init ( inAppIncludes: [ String ] , inAppExcludes : [ String ] ) {
40+ @objc ( initWithInAppIncludes: ) public init ( inAppIncludes: [ String ] ) {
4641 self . inAppIncludes = inAppIncludes. map { $0. lowercased ( ) }
47- self . inAppExcludes = inAppExcludes. map { $0. lowercased ( ) }
4842 super. init ( )
4943 }
5044
5145 /**
52- * Determines if the framework belongs to the app by using @c inAppIncludes and @c inAppExcludes .
46+ * Determines if the framework belongs to the app by using @c inAppIncludes.
5347 * Before checking this method lowercases the strings and uses only the @c lastPathComponent of the
5448 * @c imagePath.
5549 *
5650 * @param imagePath the full path of the binary image.
5751 *
5852 * @return @c YES if the framework located at the @c imagePath starts with a prefix of
5953 * @c inAppIncludes. @c NO if the framework located at the @c imagePath doesn't start with a prefix of
60- * @c inAppIncludes or start with a prefix of @c inAppExcludes .
54+ * @c inAppIncludes.
6155 */
6256 @objc public func `is`( inApp imagePath: String ? ) -> Bool {
6357 guard let imagePath else {
@@ -72,12 +66,6 @@ import ObjectiveC
7266 }
7367 }
7468
75- for inAppExclude in inAppExcludes {
76- if imageNameLastPathComponent. hasPrefix ( inAppExclude) {
77- return false
78- }
79- }
80-
8169 return false
8270 }
8371
@@ -88,8 +76,7 @@ import ObjectiveC
8876 * @param targetClass the class to check.
8977 *
9078 * @return @c YES if the @c targetClass belongs to a framework included in @c inAppIncludes.
91- * @c NO if targetClass does not belong to a framework in @c inAppIncludes or belongs to a framework in
92- * @c inAppExcludes.
79+ * @c NO if targetClass does not belong to a framework in @c inAppIncludes.
9380 */
9481 @objc public func isClassInApp( _ targetClass: AnyClass ) -> Bool {
9582 guard let imageName = class_getImageName ( targetClass) else {
0 commit comments