-
-
Notifications
You must be signed in to change notification settings - Fork 38
test: Replace binaries with bytecode loaded from test deps #1341
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
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
1548c9c
feat(plugin): Auto-wrap SQLiteDriver with SentrySQLiteDriver for Room…
0xadam-brown 2ff8ac5
Minor doc updates, DRYing, and test refinements
0xadam-brown 4dcb9a6
Merge branch 'main' into feat/wrap-sqlite-driver
0xadam-brown c1a418f
Address runningcode's comments
0xadam-brown 2ee2ad8
Address TODOs now that the SentrySQLiteDriver has been published in 8…
0xadam-brown f8708df
Add comment linking to SentrySQLiteDriver
0xadam-brown 629f2b1
Merge branch 'main' into feat/wrap-sqlite-driver
0xadam-brown 52c11f3
Move CHANGELOG entry under Unreleased
0xadam-brown fad9e97
Refine inline comments + fix CHANGELOG
0xadam-brown 69ddb95
test: Load Room Builder bytecode from test dependencies
0xadam-brown aeecebf
test: Load SQLite and core bytecode from test dependencies
0xadam-brown ee9a192
Bump sqlite test dep to 2.3.0 for delegate field coverage
0xadam-brown 8219370
Merge branch 'main' into chore/deps-not-binaries
0xadam-brown dd74f6f
Derive Room Builder + SQLite bytecode paths from FQN
0xadam-brown 5bd6d3c
chore(deps): update actions/setup-java digest to 1bcf9fb (#1346)
renovate[bot] 5e18503
chore(deps): update actions/setup-python digest to ece7cb0 (#1347)
renovate[bot] cc07b7d
docs: Add AI Use section to CONTRIBUTING.md (#1345)
christophaigner addc144
Merge branch 'main' into chore/deps-not-binaries
0xadam-brown 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
13 changes: 13 additions & 0 deletions
13
...c/test/kotlin/io/sentry/android/gradle/instrumentation/InstrumentationBytecodeTestUtil.kt
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| package io.sentry.android.gradle.instrumentation | ||
|
|
||
| internal object InstrumentationBytecodeTestUtil { | ||
|
|
||
| fun loadClasspathFixture(className: String): ByteArray? { | ||
| val resourcePath = className.replace('.', '/') + ".class" | ||
| return InstrumentationBytecodeTestUtil::class | ||
| .java | ||
| .classLoader | ||
| .getResourceAsStream(resourcePath) | ||
| ?.use { it.readBytes() } | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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
Binary file removed
BIN
-9.23 KB
.../test/resources/testFixtures/instrumentation/androidxSqlite/FrameworkSQLiteDatabase.class
Binary file not shown.
Binary file removed
BIN
-1.84 KB
...ources/testFixtures/instrumentation/androidxSqlite/FrameworkSQLiteOpenHelperFactory.class
Binary file not shown.
Binary file removed
BIN
-1.16 KB
...test/resources/testFixtures/instrumentation/androidxSqlite/FrameworkSQLiteStatement.class
Binary file not shown.
Binary file removed
BIN
-6.02 KB
plugin-build/src/test/resources/testFixtures/instrumentation/fileIO/TypefaceCompatUtil.class
Binary file not shown.
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.
Uh oh!
There was an error while loading. Please reload this page.