Skip to content

Commit

Permalink
remove tweak code (#44) (#47)
Browse files Browse the repository at this point in the history
* remove tweak code

* adjust model
  • Loading branch information
ubamrein committed Jun 17, 2020
1 parent c56f142 commit c214271
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ public abstract class WSBaseConfig implements SchedulingConfigurer, WebMvcConfig

@Value("${ws.retentiondays: 21}")
int retentionDays;

@Value("${ws.security.secretForVerificationCodeGeneration}")
String secretForVerificationCodeGeneration;

@Value("#{${ws.security.headers: {'X-Content-Type-Options':'nosniff', 'X-Frame-Options':'DENY','X-Xss-Protection':'1; mode=block'}}}")
Map<String,String> additionalHeaders;
Expand All @@ -66,7 +63,7 @@ public abstract class WSBaseConfig implements SchedulingConfigurer, WebMvcConfig

@Bean
public DPPPTConfigController dppptSDKController() {
return new DPPPTConfigController(secretForVerificationCodeGeneration);
return new DPPPTConfigController();
}

@Bean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,8 @@
public class DPPPTConfigController {

private static final Logger logger = LoggerFactory.getLogger(DPPPTConfigController.class);
private final String tweakCode;

public DPPPTConfigController(String tweakCode) {
this.tweakCode = tweakCode;
public DPPPTConfigController() {
}

@CrossOrigin(origins = { "https://editor.swagger.io" })
Expand All @@ -55,7 +53,6 @@ public DPPPTConfigController(String tweakCode) {
if (buildnr.equals("ios-200524.1316.87")) {
config.getiOSGaenSdkConfig().setFactorHigh(0.0d);
}
config.setTweakCode(this.tweakCode);
return ResponseEntity.ok().cacheControl(CacheControl.maxAge(Duration.ofMinutes(5))).body(config);
}

Expand Down Expand Up @@ -143,14 +140,12 @@ private ConfigResponse mockConfigResponseWithInfoBox() {

SDKConfig config = new SDKConfig();
configResponse.setSdkConfig(config);
configResponse.setTweakCode(this.tweakCode);
return configResponse;
}

public ConfigResponse mockConfigResponseWithForceUpdate() {
ConfigResponse configResponse = new ConfigResponse();
configResponse.setForceUpdate(true);
configResponse.setTweakCode(this.tweakCode);
return configResponse;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ public class ConfigResponse {
private GAENSDKConfig iOSGaenSdkConfig = new GAENSDKConfig();
private GAENSDKConfig androidGaenSdkConfig = new GAENSDKConfig();

private String tweakCode;

public boolean getForceUpdate() {
return this.forceUpdate;
}
Expand All @@ -41,14 +39,6 @@ public void setIOSGaenSdkConfig(GAENSDKConfig iOSGaenSdkConfig) {
this.iOSGaenSdkConfig = iOSGaenSdkConfig;
}

public String getTweakCode() {
return this.tweakCode;
}

public void setTweakCode(String tweakCode) {
this.tweakCode = tweakCode;
}

public boolean isForceUpdate() {
return forceUpdate;
}
Expand Down

0 comments on commit c214271

Please sign in to comment.