Skip to content

Add: Android Firebase platform initialization #138

Add: Android Firebase platform initialization

Add: Android Firebase platform initialization #138

name: Localization Validation
on:
push:
branches:
- feature/firebase-remote-localization
workflow_dispatch:
concurrency:
group: localization-validation
cancel-in-progress: true
jobs:
validate:
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Set up JDK 21
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: '21'
- name: Make Gradle wrapper executable
run: chmod +x gradlew
- name: Verify localization architecture
shell: bash
run: |
if grep -R --line-number --include='*.kt' 'Res\.string' app core data domain infrastructure model ui; then
echo 'Found remaining Compose Res.string usage.'
exit 1
fi
if grep -R --line-number --include='*.kt' 'org\.jetbrains\.compose\.resources\.stringResource' app core data domain infrastructure model ui; then
echo 'Found remaining JetBrains Compose stringResource import.'
exit 1
fi
if grep -R --line-number --include='*.kt' 'com\.google\.firebase\.remoteconfig\.FirebaseRemoteConfig' data; then
echo 'Localization must use the common GitLive Remote Config API.'
exit 1
fi
if find core/core-resource/src -type f -name '*.kt' | grep -q .; then
echo 'core-resource must contain raw resources only.'
find core/core-resource/src -type f -name '*.kt'
exit 1
fi
- name: Validate localization publishing script
shell: pwsh
run: ./scripts/firebase/publish-localization.ps1 -ValidateOnly
- name: Compile and test localization
run: >-
./gradlew
:data:localization:desktopTest
:infrastructure:di:desktopTest
:app:desktop:compileKotlinDesktop
:app:android:compileDevelopDebugKotlin
-x :app:android:processDevelopDebugGoogleServices
--stacktrace
- name: Compile QA
run: >-
./gradlew
:app:android:compileQaDebugKotlin
-x :app:android:processQaDebugGoogleServices
--stacktrace
- name: Compile Stage
run: >-
./gradlew
:app:android:compileStageDebugKotlin
-x :app:android:processStageDebugGoogleServices
--stacktrace
- name: Compile Production
run: >-
./gradlew
:app:android:compileProductionDebugKotlin
-x :app:android:processProductionDebugGoogleServices
--stacktrace