File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
sdk/src/test/java/com/deploygate/sdk Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 11// Top-level build file where you can add configuration options common to all sub-projects/modules.
22ext {
33 // sdk/java/com/deploygate/sdk/HostAppTest.java needs to be changed for a new release
4- releaseVersion = ' 4.6.1 '
4+ releaseVersion = ' 4.7.0 '
55}
66
77buildscript {
Original file line number Diff line number Diff line change 1616
1717@ RunWith (AndroidJUnit4 .class )
1818public class HostAppTest {
19+ private static final int FULL_BIT = (1 << 5 ) - 1 ;
20+
1921 @ NonNull
2022 private Context context ;
2123
@@ -34,8 +36,8 @@ public void default_properties() {
3436 Truth .assertThat (app .canUseLogcat ).isTrue ();
3537 Truth .assertThat (app .packageName ).isEqualTo ("com.deploygate.sdk.test" );
3638 Truth .assertThat (app .sdkVersion ).isEqualTo (4 );
37- Truth .assertThat (app .sdkArtifactVersion ).isEqualTo ("4.6.1 " );
38- Truth .assertThat (app .activeFeatureFlags ).isEqualTo (31 );
39+ Truth .assertThat (app .sdkArtifactVersion ).isEqualTo ("4.7.0 " );
40+ Truth .assertThat (app .activeFeatureFlags ).isEqualTo (FULL_BIT );
3941 Truth .assertThat (app .canUseDeviceCapture ()).isTrue ();
4042 }
4143
@@ -75,14 +77,14 @@ public void can_read_DeployGateSdkConfiguration_setCaptureEnabled() {
7577 );
7678
7779 Truth .assertThat (app1 .canUseDeviceCapture ()).isTrue ();
78- Truth .assertThat (app1 .activeFeatureFlags ).isEqualTo (31 );
80+ Truth .assertThat (app1 .activeFeatureFlags ).isEqualTo (FULL_BIT );
7981
8082 HostApp app2 = new HostApp (
8183 context ,
8284 new DeployGateSdkConfiguration .Builder ().setCaptureEnabled (false ).build ()
8385 );
8486
8587 Truth .assertThat (app2 .canUseDeviceCapture ()).isFalse ();
86- Truth .assertThat (app2 .activeFeatureFlags ).isEqualTo (15 );
88+ Truth .assertThat (app2 .activeFeatureFlags ).isEqualTo (FULL_BIT - BuildConfig . DEVICE_CAPTURE );
8789 }
8890}
You can’t perform that action at this time.
0 commit comments