Skip to content

Commit

Permalink
refactor: System.out 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
l2yujw committed Nov 29, 2024
1 parent 74fb9bb commit 1df3279
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/main/java/postman/bottler/config/FcmConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Arrays;
import java.util.Base64;
import javax.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Value;
Expand All @@ -21,12 +20,8 @@ public class FcmConfig {
@PostConstruct
public void init() {
try {
// JSON 문자열을 InputStream으로 변환
System.out.println("privateKey: " + privateKey);
byte[] decodedBytes = Base64.getDecoder().decode(privateKey);
System.out.println("decodedBytes = " + Arrays.toString(decodedBytes));
InputStream serviceAccount = new ByteArrayInputStream(decodedBytes);
System.out.println("serviceAccount = " + serviceAccount.getClass());

FirebaseOptions options = new FirebaseOptions.Builder()
.setCredentials(GoogleCredentials.fromStream(serviceAccount))
Expand Down

0 comments on commit 1df3279

Please sign in to comment.