-
-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sentry new SDK structure #48
Conversation
url = ../../sentry-dotnet.git | ||
[submodule "src/sentry-dotnet"] | ||
path = src/sentry-dotnet | ||
url = https://github.com/getsentry/sentry-dotnet.git |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was a relative path so that it uses the same scheme used to checkout the repo.
I use git
but folks forking usually use https
and this came up as an issue before.
</member> | ||
<member name="F:Sentry.AttachmentType.Default"> | ||
<summary> | ||
Standard attachment without special meaning. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably patch the build not to generate this. It's used to generate the API docs but we don't need here
<UnityPath Condition="$(UnityPath) == '' AND Exists('C:\Program Files\Unity\Hub\Editor\$(UnityVersion)\Editor\Data\Managed\UnityEngine.dll')">C:\Program Files\Unity\Hub\Editor\$(UnityVersion)\Editor\Data\Managed</UnityPath> | ||
<UnityPath Condition="$(UnityPath) == '' AND Exists('/Applications/Unity/Hub/Editor/$(UnityVersion)/Unity.app/Contents/Managed/UnityEngine.dll')">/Applications/Unity/Hub/Editor/$(UnityVersion)/Unity.app/Contents/Managed/</UnityPath> | ||
<!--If not using Unity Hub, tries to pick whatever Unity version is installed on the machine--> | ||
<UnityPath Condition="$(UnityPath) == '' AND Exists('C:\Program Files\Unity\Editor\Data\Managed\UnityEngine.dll')">C:\Program Files\Unity\Editor\Data\Managed</UnityPath> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The paths for macOS are here
I'm on a mac and CI will be Linux so we need all 3. The path for macOS is on the deleted version of the file so you can pick from there (I made a comment).
Made some notes but generally LGTM. We can iterate on it.
I made a note on the review why it was relative. Ideally it'd stay relative for those reasons but we can discuss further the pros and cons.
I thought it threw from wintin the .NET SDK? We can go on with the work around for now but ideally we'd try for
Most (if not all) of those (except the Android ones) should work. Might be due to dropping Odd that the diff shows as all files are completely different and yet it's just a rename (most of the time) probably line breaks (do you commit |
Now when we build the solution (Sentry.Unity.sln) it copies the dlls to the One alternative is that we have the compiled assemblies go into a different directory that will be on gitignore. And the What do you think? |
Oh I see I changed the unity-of-bugs to exclusively use the Debug.Log API so not sure why it's not working. We can add some samples using |
Current flow suggests that any change you made in I kinda agree that it's got "shared" by "dev" and "release" flows. I guess we can create another folder in our structure and Overall, we need to establish those first :) My current suggestion:
Need to configure build process additionally, so libs are copied into the correct folder. |
Hm, I found an issue. Doesn't work on Win <PropertyGroup>
<UnityPath Condition="$(UnityPath) == '' AND Exists('C:\Program Files\Unity\Hub\Editor\$(UnityVersion)\Editor\Data\Managed\UnityEngine.dll')">C:\Program Files\Unity\Hub\Editor\$(UnityVersion)\Editor\Data\Managed</UnityPath>
</PropertyGroup> Works on Win <PropertyGroup>
<UnityPath Condition="Exists('C:\Program Files\Unity\Hub\Editor\$(UnityVersion)\Editor\Data\Managed\UnityEngine.dll')">C:\Program Files\Unity\Hub\Editor\$(UnityVersion)\Editor\Data\Managed</UnityPath>
</PropertyGroup> So, the problem is with this key expand |
Yes, I didn't get the "relative path approach" tbh. It's much easier to work with it "by default git commands". |
Nope, not from within SDK. |
Sure, let's discuss. |
Yes, by default it converts to |
…sentry-unity project
…amples folder; package link for test project updated
This can be closed now, right? |
Feel free to reopen otherwise |
Yes. |
General "what's inside" and points for discussion
UPM
package can be installed right now viahttps://github.com/getsentry/sentry-unity.git?path=/package#feature/restructure
(configure yourDSN
viaComponent/Sentry
window)path
package folder to install from#feature/restructure
branch to install fromPlugins/Android
removed untilAndroid
integration (Android
related code is not removed)UnityPath
in Directory.Build.props for other development OSes. Currently onlyWindows
. Add for possible pathsMacOS
. Previous approach inmain
branch regarding path setting didn't work for megit
commandsPath.GetFileName
onMono
. Workaround for now - UnityEventProcessor, Line: 246 (no link because of 'Load diff')/samples/unity-of-bugs
project. I checked all buttons and present the current behavior. I enableddebug
mode fromsentry
window in order to see how logs are propagated. 'Capturing event' sends tosentry
, 'Configuring the scope' not.I probably have missed something, but I hope this solves all the current needs for us. Let me quickly summarize
UPM
package~
folders forUPM
The following issues can be closed after the merge