2 Commits

Author SHA1 Message Date
ksan 8db2ecfefe removed excess
CI/CD / Backend Unit Tests (push) Successful in 1m45s
CI/CD / Deploy (push) Successful in 1m56s
2026-06-10 18:41:54 +02:00
ksan 4621c0d5ca fixing issue with firebase on deploy 2026-06-10 18:41:54 +02:00
2 changed files with 6 additions and 25 deletions
@@ -4,20 +4,25 @@ import com.google.auth.oauth2.GoogleCredentials;
import com.google.firebase.FirebaseApp;
import com.google.firebase.FirebaseOptions;
import com.google.firebase.messaging.FirebaseMessaging;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.io.ClassPathResource;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.List;
@Configuration
public class FirebaseConfig {
@Value("${firebase.credentials.path}")
private String credentialsPath;
@Bean
public FirebaseApp firebaseApp() throws IOException {
GoogleCredentials credentials = GoogleCredentials
.fromStream(new ClassPathResource("firebase.json").getInputStream())
.fromStream(new FileInputStream(credentialsPath))
.createScoped(List.of("https://www.googleapis.com/auth/firebase.messaging"));
FirebaseOptions options = FirebaseOptions.builder()
-24
View File
@@ -1,24 +0,0 @@
name: CI - full
on:
pull_request:
branches: [main]
jobs:
backend-test:
uses: ./.gitea/workflows/backend-test.yaml
frontend-build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm ci
- name: Build frontend
run: npx expo export --platform web