RUM-3294 Bundle dd-trace-core code into the dd-sdk-android-trace module #1907
Conversation
| org.jetbrains.kotlin:kotlin-stdlib-common:1.8.10 : 212 Kb | ||
| org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.10 : 963 b | ||
| org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.10 : 969 b | ||
| org.jetbrains.kotlin:kotlin-stdlib:1.8.10 : 1598 Kb |
There was a problem hiding this comment.
in theory we should have only stdlib artifact https://kotlinlang.org/docs/whatsnew18.html#updated-jvm-compilation-target. Why do we have -jdk7 and -jdk8 here?
There was a problem hiding this comment.
Ah :
com.squareup.okhttp3:okhttp:4.11.0
| +--- com.squareup.okio:okio:3.2.0 (*)
| +--- org.jetbrains.kotlin:kotlin-stdlib:1.6.20 -> 1.8.10 (*)
| \--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.20 -> 1.8.10
From okhttp
There was a problem hiding this comment.
ok, they come because of the version bump done by Gradle. In theory we can remove those from dependencies explicitly, because all classes from -jdk7 and -jdk8 are in the main stdlib. But here they (these JDK7 and JDK8) they are probably empty by looking on the size, so no risk of getting DuplicateClassException.
There was a problem hiding this comment.
yeah...I think I am going to try to do more cleaning at the end. At least moshi I want to remove it from there. It is going to be a big mess that's the reason why I want to do it at the end.
791c000 to
7f8f319
Compare
| traceCore = [ | ||
| "moshi", | ||
| "jctools", | ||
| "kotlin", |
There was a problem hiding this comment.
probably this one can be removed from the bundle
There was a problem hiding this comment.
which one ? kotlin ? I think yes you're right.
67aa40b to
fdb7356
Compare
fdb7356 to
584607e
Compare
| @@ -301,6 +301,14 @@ ktor = [ | |||
| "ktorGson" | |||
| ] | |||
|
|
|||
| traceCore = [ | |||
There was a problem hiding this comment.
should we rename this one since there is no more trace-core module?
There was a problem hiding this comment.
actually these deps are still related with the trace core code ported from JAVA so it is better to keep them like that. In a later task I might clean these deps a bit more, I really want to get rid of moshi at least there.
| import,androidx.versionedparcelable,Apache-2.0,Copyright 2018 The Android Open Source Project | ||
| import,androidx.viewpager,Apache-2.0,Copyright 2018 The Android Open Source Project | ||
| import,androidx.work,Apache-2.0,Copyright 2018 The Android Open Source Project | ||
| import,com.android.tools,GNU General Public License, Version 3, 29 June 2007. Copyright (C) 2007 Free Software Foundation |
There was a problem hiding this comment.
The copyright notice here feels weird. I would expect the copyright to mention Google or Android, not the FSF
There was a problem hiding this comment.
there's no placeholder in their copyright so I don't really know exactly the format. Do you have another example somewhere ?
There was a problem hiding this comment.
nevermind I think I've found one
584607e to
df46ba5
Compare
| import,androidx.versionedparcelable,Apache-2.0,Copyright 2018 The Android Open Source Project | ||
| import,androidx.viewpager,Apache-2.0,Copyright 2018 The Android Open Source Project | ||
| import,androidx.work,Apache-2.0,Copyright 2018 The Android Open Source Project | ||
| import,com.android.tools,GNU General Public License, Version 3, 29 June 2007. Copyright 2024 Datadog, Inc. |
There was a problem hiding this comment.
probably everything under com.android.tools is under Apache-2.0 license by clicking different items under https://mvnrepository.com/artifact/com.android.tools. So the same license as above (and same Copyright)
There was a problem hiding this comment.
Yeah some mention GNU some Apache. I will add Apache instead.
| import,com.github.bumptech.glide,"Simplified BSD License/The Apache Software License, Version 2.0","Copyright 2014 Google, Inc. All rights reserved, Copyright (c) 2013. Bump Technologies Inc. All Rights Reserved." | ||
| import,com.facebook.fresco,MIT,"Copyright (c) Facebook, Inc. and its affiliates" | ||
| import,com.github.spotbugs,"GNU LESSER GENERAL PUBLIC LICENSE, Version 2.1","Copyright (C) 1991, 1999 Free Software Foundation, Inc." | ||
| import,com.github.spotbugs,GNU LESSER GENERAL PUBLIC LICENSE, Version 2.1. Copyright 2024 Datadog, Inc. |
There was a problem hiding this comment.
this should be reverted according to https://github.com/spotbugs/spotbugs/blob/master/LICENSE
There was a problem hiding this comment.
yeah I really do not know anymore honestly what is correct there. I will put this back.
df46ba5 to
e952036
Compare
2bd30a2 to
f18d527
Compare
e952036 to
e4674c8
Compare
What does this PR do?
A brief description of the change being made with this pull request.
Motivation
What inspired you to submit this pull request?
Additional Notes
Anything else we should know when reviewing?
Review checklist (to be filled by reviewers)