From 9186fe965de5f8d2721c64984ecf057c9fe4275c Mon Sep 17 00:00:00 2001 From: BK Date: Sun, 12 Nov 2023 03:20:14 +0900 Subject: [PATCH 1/2] Fix: change file path --- .gitignore | 2 +- src/main/java/igoMoney/BE/common/config/FCMConfig.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index bb67412..40e5de7 100644 --- a/.gitignore +++ b/.gitignore @@ -39,4 +39,4 @@ out/ ### classpath ### application.properties p8_key.txt -firebase \ No newline at end of file +igo-money-firebase-adminsdk.json \ No newline at end of file diff --git a/src/main/java/igoMoney/BE/common/config/FCMConfig.java b/src/main/java/igoMoney/BE/common/config/FCMConfig.java index 4a1ee3c..1d98762 100644 --- a/src/main/java/igoMoney/BE/common/config/FCMConfig.java +++ b/src/main/java/igoMoney/BE/common/config/FCMConfig.java @@ -21,7 +21,7 @@ public class FCMConfig { @Bean FirebaseMessaging init() throws IOException { - ClassPathResource resource = new ClassPathResource("firebase/"+firebaseJsonFileName+".json"); + ClassPathResource resource = new ClassPathResource(firebaseJsonFileName+".json"); InputStream refreshToken = resource.getInputStream(); FirebaseApp firebaseApp = null; List firebaseAppList = FirebaseApp.getApps(); From d6e67dffd28f14ba64623739288b4339e1ae80f3 Mon Sep 17 00:00:00 2001 From: BK Date: Sun, 12 Nov 2023 03:21:53 +0900 Subject: [PATCH 2/2] Chore: update github actions file --- .github/workflows/github-actions.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index a282a66..aa59a54 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -44,7 +44,7 @@ jobs: with: name: ${{ secrets.FIREBASE_JSON_FILENAME }} json: ${{ secrets.FIREBASE_JSON }} - dir: 'src/main/resources/firebase/' + dir: 'src/main/resources' - name: Build with Gradle run: |