Skip to content

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.

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, satsukies and tnj 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.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
@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

3 participants