File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 1
1
# vNext
2
2
3
+ * Fix: Fix setting in-app-includes from external properties (#1291 )
4
+
3
5
4
6
# 4.2.0
5
7
Original file line number Diff line number Diff line change @@ -1383,6 +1383,14 @@ void merge(final @NotNull SentryOptions options) {
1383
1383
for (final Map .Entry <String , String > tag : tags .entrySet ()) {
1384
1384
this .tags .put (tag .getKey (), tag .getValue ());
1385
1385
}
1386
+ final List <String > inAppIncludes = new ArrayList <>(options .getInAppIncludes ());
1387
+ for (final String inAppInclude : inAppIncludes ) {
1388
+ addInAppInclude (inAppInclude );
1389
+ }
1390
+ final List <String > inAppExcludes = new ArrayList <>(options .getInAppExcludes ());
1391
+ for (final String inAppExclude : inAppExcludes ) {
1392
+ addInAppExclude (inAppExclude );
1393
+ }
1386
1394
}
1387
1395
1388
1396
private @ NotNull SdkVersion createSdkVersion () {
Original file line number Diff line number Diff line change @@ -177,6 +177,8 @@ class SentryOptionsTest {
177
177
externalOptions.setTag(" tag2" , " value2" )
178
178
externalOptions.enableUncaughtExceptionHandler = false
179
179
externalOptions.tracesSampleRate = 0.5
180
+ externalOptions.addInAppInclude(" com.app" )
181
+ externalOptions.addInAppExclude(" io.off" )
180
182
val options = SentryOptions ()
181
183
182
184
options.merge(externalOptions)
@@ -192,6 +194,8 @@ class SentryOptionsTest {
192
194
assertEquals(mapOf (" tag1" to " value1" , " tag2" to " value2" ), options.tags)
193
195
assertFalse(options.enableUncaughtExceptionHandler!! )
194
196
assertEquals(0.5 , options.tracesSampleRate)
197
+ assertEquals(listOf (" com.app" ), options.inAppIncludes)
198
+ assertEquals(listOf (" io.off" ), options.inAppExcludes)
195
199
}
196
200
197
201
@Test
You can’t perform that action at this time.
0 commit comments