-
-
Notifications
You must be signed in to change notification settings - Fork 204
poc(native): Add Android support for out-of-process crash handling #1725
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
base: master
Are you sure you want to change the base?
Changes from all commits
d7983aa
92d076e
25beed6
bdb7cbf
b984030
0930ddb
2c9a5d9
c499043
9c5c7df
03a811f
11f94c3
a410bf0
3e9a856
f823609
9ffa097
bbe8817
1251b9a
71655dc
1ecaa52
f6b5caf
0d6923e
57004b7
6460208
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -50,3 +50,6 @@ systemProp.org.gradle.internal.http.socketTimeout=120000 | |
| android.nonTransitiveRClass=true | ||
|
|
||
| android.suppressUnsupportedCompileSdk=34 | ||
|
|
||
| # TODO: clean up | ||
| sentryBackend=native | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. POC debug configuration committed in gradle propertiesMedium Severity The Additional Locations (1)Reviewed by Cursor Bugbot for commit 3e9a856. Configure here. |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,7 @@ plugins { | |
| } | ||
|
|
||
| var sentryNativeSrc: String = "${project.projectDir}/../.." | ||
| val sentryBackend = providers.gradleProperty("sentryBackend").orElse("inproc").get() | ||
|
|
||
| android { | ||
| compileSdk = 35 | ||
|
|
@@ -18,6 +19,7 @@ android { | |
| externalNativeBuild { | ||
| cmake { | ||
| arguments.add(0, "-DANDROID_STL=c++_static") | ||
| arguments.add(0, "-DSENTRY_BACKEND=$sentryBackend") | ||
| arguments.add(0, "-DSENTRY_NATIVE_SRC=$sentryNativeSrc") | ||
| } | ||
| } | ||
|
|
@@ -51,6 +53,7 @@ android { | |
| } | ||
|
|
||
| buildFeatures { | ||
| prefab = true | ||
| prefabPublishing = true | ||
| buildConfig = true | ||
| } | ||
|
|
@@ -100,6 +103,9 @@ android { | |
| } | ||
|
|
||
| dependencies { | ||
| // TODO: this was the first match on maven central.. | ||
| implementation("io.github.vvb2060.ndk:curl:8.18.0") | ||
|
|
||
| compileOnly("org.jetbrains:annotations:23.0.0") | ||
|
|
||
| testImplementation("androidx.test.ext:junit:1.3.0") | ||
|
|
@@ -137,10 +143,12 @@ dependencies { | |
| * | ||
| */ | ||
| afterEvaluate { | ||
| tasks.getByName("prefabReleasePackage") { | ||
| tasks.matching { it.name.startsWith("prefab") && it.name.endsWith("Package") }.configureEach { | ||
| doLast { | ||
| project.fileTree("build/intermediates/prefab_package/") { | ||
| project.fileTree("build/intermediates/") { | ||
| include("**/abi.json") | ||
| include("**/prefab_publication.json/debug") | ||
| include("**/prefab_publication.json/release") | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Malformed glob patterns will never match filesMedium Severity The include patterns Reviewed by Cursor Bugbot for commit 03a811f. Configure here. |
||
| }.forEach { file -> | ||
| file.writeText(file.readText().replace("c++_static", "none")) | ||
| } | ||
|
|
||


Uh oh!
There was an error while loading. Please reload this page.