Skip to content

Commit

Permalink
remove isCoppaEnabled
Browse files Browse the repository at this point in the history
  • Loading branch information
jsligh committed Aug 29, 2024
1 parent 0f88c2c commit 325c691
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ public Mraid3TestProperties checkMraidEnv() throws JSONException {
envJson.put("appId", AppInfoManager.getPackageName());
envJson.put("ifa", AdIdManager.getAdId());
envJson.put("limitAdTracking", AdIdManager.isLimitAdTrackingEnabled());
envJson.put("coppa", PrebidMobile.isCoppaEnabled);

String viewText = clearStringFromWhitespace(device.wait(Until.findObject(Locators.envContainer), TIMEOUT).getText());
assertEquals(envJson.toString(), viewText);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@

public class PrebidMobile {

public static boolean isCoppaEnabled = false;
public static boolean useExternalBrowser = false;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ public static String getWindowMraidEnv() {
+ getStringPropertyWithSeparator("appId", AppInfoManager.getPackageName())
+ getStringPropertyWithSeparator("ifa", AdIdManager.getAdId())
+ getBooleanPropertyWithSeparator("limitAdTracking", AdIdManager.isLimitAdTrackingEnabled(), ",")
+ getBooleanPropertyWithSeparator("coppa", PrebidMobile.isCoppaEnabled, "")
+ "};";
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,6 @@ private void configureBidRequest(BidRequest bidRequest, String uuid) {
bidRequest.setOrtbConfig(adConfiguration.getOrtbConfig());
boolean isVideo = adConfiguration.isAdType(AdFormat.VAST);
bidRequest.getExt().put("prebid", Prebid.getJsonObjectForBidRequest(PrebidMobile.getPrebidServerAccountId(), isVideo, adConfiguration));
//if coppaEnabled - set 1, else No coppa is sent
if (PrebidMobile.isCoppaEnabled) {
bidRequest.getRegs().coppa = 1;
}
}

private void configureSource(Source source, String uuid) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ public class MraidEnvTest {

@Test
public void getWindowMraidEnv_ReturnProperlyFormedMraid() {
PrebidMobile.isCoppaEnabled = true;
String expectedValue = "window.MRAID_ENV = {"
+ "version: \"" + PrebidMobile.MRAID_VERSION + "\","
+ "sdk: \"" + PrebidMobile.SDK_NAME + "\","
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ public void cleanup() throws Exception {

PrebidMobile.sendMraidSupportParams = true;
PrebidMobile.useExternalBrowser = false;
PrebidMobile.isCoppaEnabled = false;
PrebidMobile.clearStoredBidResponses();
PrebidMobile.setStoredAuctionResponse(null);

Expand Down Expand Up @@ -510,8 +509,6 @@ public void whenAppendParametersAndCoppaTrue_CoppaEqualsOne() {
adConfiguration.setAdFormat(AdFormat.BANNER);
adConfiguration.addSize(new AdSize(320, 50));

PrebidMobile.isCoppaEnabled = true;

BasicParameterBuilder builder = new BasicParameterBuilder(adConfiguration,
context.getResources(),
browserActivityAvailable
Expand Down Expand Up @@ -1117,10 +1114,6 @@ private BidRequest getExpectedBidRequest(
"prebid",
Prebid.getJsonObjectForBidRequest(PrebidMobile.getPrebidServerAccountId(), isVideo, adConfiguration)
);
//if coppaEnabled - set 1, else No coppa is sent
if (PrebidMobile.isCoppaEnabled) {
bidRequest.getRegs().coppa = 1;
}

Imp imp = getExpectedImp(adConfiguration, uuid);
bidRequest.getImp().add(imp);
Expand Down

0 comments on commit 325c691

Please sign in to comment.