Skip to content

Commit d9dba5d

Browse files
authored
Merge pull request #2253 from bugsnag/PLAT-14670/remove-dsljson
Remove vendored dsl-json
2 parents f19ba87 + 834e695 commit d9dba5d

File tree

12 files changed

+737
-5946
lines changed

12 files changed

+737
-5946
lines changed

bugsnag-android-core/build.gradle.kts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import kotlinx.validation.ApiValidationExtension
21
import org.jetbrains.dokka.gradle.DokkaTask
32

43
plugins {
@@ -64,13 +63,8 @@ android {
6463
}
6564

6665
sourceSets {
67-
named("main") {
68-
java.srcDirs("dsl-json/library/src/main/java")
69-
}
70-
7166
named("test") {
7267
java.srcDirs(
73-
"dsl-json/library/src/test/java",
7468
"src/sharedTest/java"
7569
)
7670
}
@@ -104,10 +98,6 @@ tasks.getByName<DokkaTask>("dokkaHtml") {
10498
}
10599
}
106100

107-
plugins.withId("org.jetbrains.kotlinx.binary-compatibility-validator") {
108-
project.extensions.getByType(ApiValidationExtension::class.java).ignoredPackages.add("com.bugsnag.android.repackaged.dslplatform.json")
109-
}
110-
111101
apply(from = rootProject.file("gradle/detekt.gradle"))
112102
apply(from = rootProject.file("gradle/license-check.gradle"))
113103
apply(from = rootProject.file("gradle/release.gradle"))

bugsnag-android-core/detekt-baseline.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@
44
<CurrentIssues>
55
<ID>CyclomaticComplexMethod:AppDataCollector.kt$AppDataCollector$@SuppressLint("SwitchIntDef") @Suppress("DEPRECATION") private fun getProcessImportance(): String?</ID>
66
<ID>CyclomaticComplexMethod:ConfigInternal.kt$ConfigInternal$fun getConfigDifferences(): Map&lt;String, Any></ID>
7+
<ID>CyclomaticComplexMethod:JsonCollectionParser.kt$JsonCollectionParser$private fun parseNumber(): Number</ID>
8+
<ID>CyclomaticComplexMethod:JsonCollectionParser.kt$JsonCollectionParser$private fun readUtf8Char(): Int</ID>
79
<ID>ImplicitDefaultLocale:Deliverable.kt$Deliverable$String.format("%02x", byte)</ID>
810
<ID>LongMethod:EventSerializationTest.kt$EventSerializationTest.Companion$@JvmStatic @Parameters fun testCases(): Collection&lt;Pair&lt;Event, String>></ID>
11+
<ID>LongMethod:EventSerializationTest.kt$private fun createMetadataStressTest(event: Event)</ID>
912
<ID>LongParameterList:App.kt$App$( /** * The architecture of the running application binary */ var binaryArch: String?, /** * The package name of the application */ var id: String?, /** * The release stage set in [Configuration.releaseStage] */ var releaseStage: String?, /** * The version of the application set in [Configuration.version] */ var version: String?, /** The revision ID from the manifest (React Native apps only) */ var codeBundleId: String?, /** * The unique identifier for the build of the application set in [Configuration.buildUuid] */ buildUuid: Provider&lt;String?>?, /** * The application type set in [Configuration#version] */ var type: String?, /** * The version code of the application set in [Configuration.versionCode] */ var versionCode: Number? )</ID>
1013
<ID>LongParameterList:AppDataCollector.kt$AppDataCollector$( appContext: Context, private val packageManager: PackageManager?, private val config: ImmutableConfig, private val sessionTracker: Provider&lt;SessionTracker>, private val activityManager: ActivityManager?, private val launchCrashTracker: LaunchCrashTracker, private val memoryTrimState: MemoryTrimState )</ID>
1114
<ID>LongParameterList:AppWithState.kt$AppWithState$( binaryArch: String?, id: String?, releaseStage: String?, version: String?, codeBundleId: String?, buildUuid: Provider&lt;String?>?, type: String?, versionCode: Number?, /** * The number of milliseconds the application was running before the event occurred */ var duration: Number?, /** * The number of milliseconds the application was running in the foreground before the * event occurred */ var durationInForeground: Number?, /** * Whether the application was in the foreground when the event occurred */ var inForeground: Boolean?, /** * Whether the application was launching when the event occurred */ var isLaunching: Boolean? )</ID>
@@ -22,13 +25,34 @@
2225
<ID>LongParameterList:NativeStackframe.kt$NativeStackframe$( /** * The name of the method that was being executed */ var method: String?, /** * The location of the source file */ var file: String?, /** * The line number within the source file this stackframe refers to */ var lineNumber: Number?, /** * The address of the instruction where the event occurred. */ var frameAddress: Long?, /** * The address of the function where the event occurred. */ var symbolAddress: Long?, /** * The address of the library where the event occurred. */ var loadAddress: Long?, /** * Whether this frame identifies the program counter */ var isPC: Boolean?, /** * The type of the error */ var type: ErrorType? = null, /** * Identifies the exact build this frame originates from. */ var codeIdentifier: String? = null, )</ID>
2326
<ID>LongParameterList:StateEvent.kt$StateEvent.Install$( @JvmField val apiKey: String, @JvmField val autoDetectNdkCrashes: Boolean, @JvmField val appVersion: String?, @JvmField val buildUuid: String?, @JvmField val releaseStage: String?, @JvmField val lastRunInfoPath: String, @JvmField val consecutiveLaunchCrashes: Int, @JvmField val sendThreads: ThreadSendPolicy, @JvmField val maxBreadcrumbs: Int )</ID>
2427
<ID>LongParameterList:ThreadState.kt$ThreadState$( allThreads: List&lt;JavaThread>, currentThread: JavaThread, exc: Throwable?, isUnhandled: Boolean, maxThreadCount: Int, threadCollectionTimeLimitMillis: Long, projectPackages: Collection&lt;String>, logger: Logger )</ID>
28+
<ID>LoopWithTooManyJumpStatements:JsonCollectionParser.kt$JsonCollectionParser$while</ID>
2529
<ID>MagicNumber:BugsnagEventMapper.kt$BugsnagEventMapper$16</ID>
2630
<ID>MagicNumber:BugsnagEventMapper.kt$BugsnagEventMapper$32</ID>
2731
<ID>MagicNumber:BugsnagEventMapper.kt$BugsnagEventMapper$56</ID>
2832
<ID>MagicNumber:DeliveryStatus.kt$DeliveryStatus.Companion$299</ID>
2933
<ID>MagicNumber:DeliveryStatus.kt$DeliveryStatus.Companion$429</ID>
3034
<ID>MagicNumber:DeliveryStatus.kt$DeliveryStatus.Companion$499</ID>
3135
<ID>MagicNumber:EventStore.kt$EventStore$60</ID>
36+
<ID>MagicNumber:JsonCollectionParser.kt$JsonCollectionParser$0x07</ID>
37+
<ID>MagicNumber:JsonCollectionParser.kt$JsonCollectionParser$0x10000</ID>
38+
<ID>MagicNumber:JsonCollectionParser.kt$JsonCollectionParser$0x10FFFF</ID>
39+
<ID>MagicNumber:JsonCollectionParser.kt$JsonCollectionParser$0x3F</ID>
40+
<ID>MagicNumber:JsonCollectionParser.kt$JsonCollectionParser$0x3FF</ID>
41+
<ID>MagicNumber:JsonCollectionParser.kt$JsonCollectionParser$0x80</ID>
42+
<ID>MagicNumber:JsonCollectionParser.kt$JsonCollectionParser$0x800</ID>
43+
<ID>MagicNumber:JsonCollectionParser.kt$JsonCollectionParser$0xC0</ID>
44+
<ID>MagicNumber:JsonCollectionParser.kt$JsonCollectionParser$0xD800</ID>
45+
<ID>MagicNumber:JsonCollectionParser.kt$JsonCollectionParser$0xDC00</ID>
46+
<ID>MagicNumber:JsonCollectionParser.kt$JsonCollectionParser$0xDFFF</ID>
47+
<ID>MagicNumber:JsonCollectionParser.kt$JsonCollectionParser$0xE0</ID>
48+
<ID>MagicNumber:JsonCollectionParser.kt$JsonCollectionParser$0xF0</ID>
49+
<ID>MagicNumber:JsonCollectionParser.kt$JsonCollectionParser$0xF8</ID>
50+
<ID>MagicNumber:JsonCollectionParser.kt$JsonCollectionParser$0xFFFF</ID>
51+
<ID>MagicNumber:JsonCollectionParser.kt$JsonCollectionParser$10</ID>
52+
<ID>MagicNumber:JsonCollectionParser.kt$JsonCollectionParser$16</ID>
53+
<ID>MagicNumber:JsonCollectionParser.kt$JsonCollectionParser$3</ID>
54+
<ID>MagicNumber:JsonCollectionParser.kt$JsonCollectionParser$4</ID>
55+
<ID>MagicNumber:JsonCollectionParser.kt$JsonCollectionParser$6</ID>
3256
<ID>MagicNumber:JsonHelper.kt$JsonHelper$0xff</ID>
3357
<ID>MagicNumber:JsonHelper.kt$JsonHelper$1000</ID>
3458
<ID>MagicNumber:JsonHelper.kt$JsonHelper$16</ID>
@@ -64,6 +88,8 @@
6488
<ID>SwallowedException:PluginClient.kt$PluginClient$exc: ClassNotFoundException</ID>
6589
<ID>SwallowedException:RootDetector.kt$RootDetector$ex: IllegalThreadStateException</ID>
6690
<ID>SwallowedException:SharedPrefMigrator.kt$SharedPrefMigrator$e: RuntimeException</ID>
91+
<ID>ThrowsCount:JsonCollectionParser.kt$JsonCollectionParser$private fun parseNumber(): Number</ID>
92+
<ID>ThrowsCount:JsonCollectionParser.kt$JsonCollectionParser$private fun readUtf8Char(): Int</ID>
6793
<ID>ThrowsCount:JsonHelper.kt$JsonHelper$fun jsonToLong(value: Any?): Long?</ID>
6894
<ID>TooManyFunctions:ConfigInternal.kt$ConfigInternal : CallbackAwareMetadataAwareUserAwareFeatureFlagAware</ID>
6995
<ID>TooManyFunctions:DeviceDataCollector.kt$DeviceDataCollector</ID>

bugsnag-android-core/dsl-json

Submodule dsl-json deleted from 0375bdf

0 commit comments

Comments
 (0)