Skip to content

Commit

Permalink
Merge pull request #190 from YogitTeam/feat/report
Browse files Browse the repository at this point in the history
#98 fix: 개발용 apnsconfig  주석처리
  • Loading branch information
xhaktmchl authored Apr 16, 2023
2 parents 21da44b + bd9d12a commit 669a3d8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions server/src/main/java/com/yogit/server/config/APNsConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ class APNsConfig {
// @Value("${APN.DESTINATION.DEVICE.TOKEN}")
// private String DEV_PW;

@Bean
public ApnsClient someAppDevApnsClient(@Value("${APN.DEV.P12.PW}") String DEV_PW, @Value("${APN.DEV.CERTIFICATE.PATH}") String DEV_CERTIFICATE_PATH) throws IOException {
// 개발용 인증 키 파일
return new ApnsClientBuilder()
.setApnsServer(ApnsClientBuilder.DEVELOPMENT_APNS_HOST)
.setClientCredentials(new ClassPathResource(DEV_CERTIFICATE_PATH).getInputStream(), DEV_PW)
.build();
}
// @Bean
// public ApnsClient someAppDevApnsClient(@Value("${APN.DEV.P12.PW}") String DEV_PW, @Value("${APN.DEV.CERTIFICATE.PATH}") String DEV_CERTIFICATE_PATH) throws IOException {
// // 개발용 인증 키 파일
// return new ApnsClientBuilder()
// .setApnsServer(ApnsClientBuilder.DEVELOPMENT_APNS_HOST)
// .setClientCredentials(new ClassPathResource(DEV_CERTIFICATE_PATH).getInputStream(), DEV_PW)
// .build();
// }

@Bean
public ApnsClient someAppProdApnsClient(@Value("${APN.PROD.P12.PW}") String PROD_PW, @Value("${APN.PROD.CERTIFICATE.PATH}") String PROD_CERTIFICATE_PATH) throws IOException {
Expand Down

0 comments on commit 669a3d8

Please sign in to comment.