Skip to content
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

Provide opt-out for crash reporting and device capture features #80

Merged
merged 4 commits into from
Mar 15, 2024

Conversation

jmatsu
Copy link
Contributor

@jmatsu jmatsu commented Mar 14, 2024

Close #68

We should provide flexible configuration for users. Especially, opting-out data collection is getting important. Some of features are triggered by our client app, so SDK state must be delivered to our app through AIDL; We can know the active features from init event.

@@ -102,7 +102,7 @@ public void onEvent(
} else if (DeployGateEvent.ACTION_ONESHOT_LOGCAT.equals(action)) {
String captureId = null;

if (mDeployGateClient.isSupported(Compatibility.DEVICE_CAPTURE)) {
if (mHostApp.canUseDeviceCapture() && mDeployGateClient.isSupported(Compatibility.DEVICE_CAPTURE)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SDK cannot turn off the device capture feature completely because triggers will be fired from the client app.

@jmatsu jmatsu marked this pull request as ready for review March 15, 2024 04:53
@jmatsu jmatsu requested review from a team, tnj and satsukies and removed request for a team and tnj March 15, 2024 04:53
Copy link
Member

@satsukies satsukies left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Truth.assertThat(app.canUseLogcat).isTrue();
Truth.assertThat(app.packageName).isEqualTo("com.deploygate.sdk.test");
Truth.assertThat(app.sdkVersion).isEqualTo(4);
Truth.assertThat(app.sdkArtifactVersion).isEqualTo("4.6.1");
Truth.assertThat(app.activeFeatureFlags).isEqualTo(31);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understood this assertion expected 31 because activeFeatureFlags has 0x11111 -> 31 when all features enabled.

@jmatsu
Copy link
Contributor Author

jmatsu commented Mar 15, 2024

Thank you~ 🙏

@jmatsu jmatsu merged commit d906650 into master Mar 15, 2024
5 checks passed
@jmatsu jmatsu deleted the jmatsu/feat/allow_opt_out_features branch March 15, 2024 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow to opt-out collecting crashes
2 participants