File tree 2 files changed +7
-5
lines changed
sdk/src/test/java/com/deploygate/sdk
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
1
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2
2
ext {
3
3
// 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 '
5
5
}
6
6
7
7
buildscript {
Original file line number Diff line number Diff line change 16
16
17
17
@ RunWith (AndroidJUnit4 .class )
18
18
public class HostAppTest {
19
+ private static final int FULL_BIT = (1 << 5 ) - 1 ;
20
+
19
21
@ NonNull
20
22
private Context context ;
21
23
@@ -34,8 +36,8 @@ public void default_properties() {
34
36
Truth .assertThat (app .canUseLogcat ).isTrue ();
35
37
Truth .assertThat (app .packageName ).isEqualTo ("com.deploygate.sdk.test" );
36
38
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 );
39
41
Truth .assertThat (app .canUseDeviceCapture ()).isTrue ();
40
42
}
41
43
@@ -75,14 +77,14 @@ public void can_read_DeployGateSdkConfiguration_setCaptureEnabled() {
75
77
);
76
78
77
79
Truth .assertThat (app1 .canUseDeviceCapture ()).isTrue ();
78
- Truth .assertThat (app1 .activeFeatureFlags ).isEqualTo (31 );
80
+ Truth .assertThat (app1 .activeFeatureFlags ).isEqualTo (FULL_BIT );
79
81
80
82
HostApp app2 = new HostApp (
81
83
context ,
82
84
new DeployGateSdkConfiguration .Builder ().setCaptureEnabled (false ).build ()
83
85
);
84
86
85
87
Truth .assertThat (app2 .canUseDeviceCapture ()).isFalse ();
86
- Truth .assertThat (app2 .activeFeatureFlags ).isEqualTo (15 );
88
+ Truth .assertThat (app2 .activeFeatureFlags ).isEqualTo (FULL_BIT - BuildConfig . DEVICE_CAPTURE );
87
89
}
88
90
}
You can’t perform that action at this time.
0 commit comments