-
Notifications
You must be signed in to change notification settings - Fork 8
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
Conversation
com.deploygate app can know the shallow-configuration via 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)) { |
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.
SDK cannot turn off the device capture feature completely because triggers will be fired from the client app.
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.
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); |
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.
I understood this assertion expected 31
because activeFeatureFlags has 0x11111 -> 31 when all features enabled.
Thank you~ 🙏 |
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.