-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
feat: Managed layer initializes native SDK on Android #1924
Merged
Merged
Changes from 84 commits
Commits
Show all changes
86 commits
Select commit
Hold shift + click to select a range
5c04e3e
how to get it working
bitsandfoxes 99aaac4
Merge branch 'main' into feat/ios-init-cocoa
bitsandfoxes 913ae70
Added 'native first' options
bitsandfoxes a05d50e
Updated Xcode modification for new flow
bitsandfoxes 34aeaf1
Updated NativeBridges & removed NoOp
bitsandfoxes 3e43051
Updated setup cocoa target
bitsandfoxes 55ba78e
fixed bridge.meta
bitsandfoxes 03d411f
leave android be
bitsandfoxes 18c5948
2019 meta files
bitsandfoxes c88e5cd
keep the framework hidden from unity
bitsandfoxes 1c25211
revert post build processing
bitsandfoxes 63f4de2
ignore the bridge as well
bitsandfoxes 480b3b1
added post process to remove deprecated optoin
bitsandfoxes 76d3c63
?
bitsandfoxes 3817247
rev
bitsandfoxes 7d1af1a
only on 2020 and older and only for iOS
bitsandfoxes fdd1f29
Format code
getsentry-bot 968bb61
exclude editor scripts for samples
bitsandfoxes 2baa488
Merge branch 'chore/sample-no-thumb-update' of https://github.com/get…
bitsandfoxes 7195256
wrong editor
bitsandfoxes 2ceb47a
Merge branch 'chore/sample-no-thumb-update' into feat/ios-init-cocoa
bitsandfoxes 978c6f0
removed option from window
bitsandfoxes 92dc061
setting native first in config
bitsandfoxes 4c4aab9
setting debug settings for sample
bitsandfoxes 550a9c7
fix native init
bitsandfoxes 72b0b79
bring back noop bridge for default setup
bitsandfoxes dcee725
test
bitsandfoxes dcff3fd
tests
bitsandfoxes 33451f7
Format code
getsentry-bot 2c1b027
comment
bitsandfoxes 5a8d209
Merge branch 'feat/ios-init-cocoa' of https://github.com/getsentry/se…
bitsandfoxes b508957
test tweak
bitsandfoxes c38b8f6
moved fixer from scripts to editor
bitsandfoxes ff87e96
updated 'pack'
bitsandfoxes 4fcc328
Merge branch 'chore/sample-no-thumb-update' into feat/ios-init-cocoa
bitsandfoxes 26fa897
Updated CHANGELOG.md
bitsandfoxes 66eaf57
Merge branch 'main' into feat/ios-init-cocoa
bitsandfoxes 6800e06
added success log
bitsandfoxes de577e5
Merge branch 'feat/ios-init-cocoa' of https://github.com/getsentry/se…
bitsandfoxes ae92ecd
add init
bitsandfoxes e3d799e
do what needs to be done
bitsandfoxes 5536bba
Format code
getsentry-bot 7fdd463
Merge branch 'main' into feat/ios-init-cocoa
bitsandfoxes fc1bb2d
renamed 'native first' to 'standalone'
bitsandfoxes be50be6
forgot the 'native'
bitsandfoxes 7d4b214
using enum to specify initalization type
bitsandfoxes 6cc5957
revert valid check
bitsandfoxes 7d4756e
fixed fallback check and tests
bitsandfoxes 147bfa7
Merge branch 'feat/ios-init-cocoa' into feat/android-init-android
bitsandfoxes b40e974
added tests and logging
bitsandfoxes fb6569a
finalized init
bitsandfoxes 71f1907
merged
bitsandfoxes ac1a71d
made the jni calls work
bitsandfoxes 5311705
FormatException
bitsandfoxes 1700ab4
.
bitsandfoxes 8205098
fixed setting options
bitsandfoxes c2d63bd
Merge branch 'main' into feat/android-init-android
bitsandfoxes 19ef24d
Format code
getsentry-bot fef9f81
fixed diagnostic levels in tests
bitsandfoxes 33b8e32
Merge branch 'feat/android-init-android' of https://github.com/getsen…
bitsandfoxes faae3f3
Updated CHANGELOG.md
bitsandfoxes 0d19559
fixed playtime tests
bitsandfoxes ae24d50
logging structure and test
bitsandfoxes 9badf25
tests
bitsandfoxes 67456fa
copy lock
bitsandfoxes b5d442f
added reference
bitsandfoxes bab1ccc
stop copying
bitsandfoxes ffd8221
no
bitsandfoxes 70f1bc9
Format code
getsentry-bot 7c928fb
option reorder
bitsandfoxes 1185f1c
added comment to inittype option
bitsandfoxes 327e29b
fix: improve jni stability (#1927)
bitsandfoxes f245c20
logging changes
bitsandfoxes fa34169
xcode is not gradle
bitsandfoxes ae49af5
fixed timeout limitations for init
bitsandfoxes bb5f4c1
Merge branch 'main' into feat/android-init-android
bitsandfoxes 0514822
test
bitsandfoxes 453c0d2
pass on timeout
bitsandfoxes 4cf640a
test cleanup
bitsandfoxes 5881a7e
added JNIExecutor tests
bitsandfoxes e8e9652
test ref
bitsandfoxes 7dd2cbd
need this for tests
bitsandfoxes 4c344c9
disable jni executor tests
bitsandfoxes d0c72e4
fixed jni executor dispose
bitsandfoxes 0137e98
remove test jni executor
bitsandfoxes 4757b90
catch during disposal
bitsandfoxes File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 can throw for:
Exceptions
ThreadStateException
The caller attempted to join a thread that is in the Unstarted state.
ThreadInterruptedException
The thread is interrupted while waiting.
We should catch this here and suppress it
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.
Also worth reading the remarks of these APIs.
Curious why we use Thread directly instead of the Task abstraction. It's by default a background thread and it's much better to deal with cancellation, error handling etc (something for a potential future task, to change this)
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 executor needs to run all the calls on a single thread. If we converted this to a task, we'd still need to ensure that so no async/await, etc. In that case, I only see risks that we do something wrong here now or in the future version of the code which would lead to the task being rescheduled to a different thread in the pool.