diff --git a/.github/workflows/android-ci.yml b/.github/workflows/android-ci.yml
new file mode 100644
index 0000000..97c61f0
--- /dev/null
+++ b/.github/workflows/android-ci.yml
@@ -0,0 +1,31 @@
+name: Running Test
+
+on:
+ pull_request:
+ types:
+ - opened
+ branches:
+ - 'main'
+
+jobs:
+ test:
+ name: Unit tests
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v3
+
+ - name: Set up JDK 17
+ uses: actions/setup-java@v3
+ with:
+ distribution: 'temurin'
+ java-version: 17
+ cache: 'gradle'
+
+ - name: Load Google Service file
+ env:
+ DATA: ${{ secrets.GOOGLE_SERVICES_JSON }}
+ run: echo $DATA | base64 -di > app/google-services.json
+
+ - name: Grand execute permissions to gradlew
+ run: chmod +x gradlew
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
index aa724b7..b09dbd8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,3 +13,6 @@
.externalNativeBuild
.cxx
local.properties
+
+# Firebase configuration (contains sensitive API keys)
+app/google-services.json
diff --git a/.idea/misc.xml b/.idea/misc.xml
deleted file mode 100644
index 31e5cb0..0000000
--- a/.idea/misc.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/build.gradle b/app/build.gradle
index 52b2c3e..a9cab75 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -5,6 +5,8 @@ plugins {
id 'com.google.dagger.hilt.android'
id 'kotlin-parcelize'
id 'org.jetbrains.kotlin.plugin.serialization'
+ id 'com.google.gms.google-services'
+ id 'com.google.firebase.crashlytics'
}
android {
@@ -105,6 +107,10 @@ dependencies {
androidTestImplementation platform(libs.androidx.compose.bom.test)
androidTestImplementation libs.bundles.testing.compose
debugImplementation libs.bundles.testing.compose.debug
+
+ // Firebase
+ implementation libs.firebase.crashlytics
+ implementation libs.firebase.analytics
}
// Allow references to generated code
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 5450d46..1fcf015 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -5,6 +5,8 @@
+
+