Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions .github/workflows/android-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Android CI

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4

- name: Run lint
run: ./gradlew lint

- name: Upload lint report
uses: actions/upload-artifact@v4
with:
name: lint-report
path: presentation/build/reports/lint-results-debug.html

unit-test:
needs: [lint]
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4

- name: Run tests
run: ./gradlew test

- name: Upload test report
uses: actions/upload-artifact@v4
with:
name: unit-test-report
path: app/build/reports/tests/testDevelopmentDebugUnitTest/

# instrumentation-test:
# needs: [unit-test]
# runs-on: macos-latest
# steps:
# - name: Checkout the code
# uses: actions/checkout@v4
#
# - name: Run espresso tests
# uses: reactivecircus/android-emulator-runner@v2
# with:
# api-level: 35
# script: ./gradlew connectedCheck
# startup-timeout: 5m
#
# - name: Upload test report
# uses: actions/upload-artifact@v4
# with:
# name: instrumentation_test_report
# path: app/build/reports/androidTests/connected/
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ dependencies {

// Unit Test
testImplementation(libs.junit)
testImplementation(libs.mockito)
testImplementation(libs.robolectric)
testImplementation(libs.androidx.core.testing)
testImplementation(libs.kotlinx.coroutines.test)
testImplementation(libs.mockito)
testImplementation(libs.mockito.kotlin)
testImplementation(libs.mockk)
testImplementation(libs.test.rules)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ class SignInScreenTest {
composeTestRule.onNodeWithText("Password").performTextInput("12345678")
composeTestRule.onNodeWithText("Log in").performClick()

// Wait for navigation to complete (adjust timeout as needed)
composeTestRule.waitUntil(timeoutMillis = 2000) {
navController.currentDestination?.route == HomeNavigation.ROUTE
}
Expand All @@ -94,7 +93,6 @@ class SignInScreenTest {
fun signInScreen_forgotPasswordClick_navigatesToForgotPassword() {
composeTestRule.onNodeWithText("Forgot?").performClick()

// Wait for navigation to complete (adjust timeout as needed)
composeTestRule.waitUntil(timeoutMillis = 2000) {
navController.currentDestination?.route == ResetPasswordNavigation.ROUTE
}
Expand Down
30 changes: 0 additions & 30 deletions app/src/main/res/drawable-v24/ic_launcher_foreground.xml

This file was deleted.

170 changes: 0 additions & 170 deletions app/src/main/res/drawable/ic_launcher_background.xml

This file was deleted.

8 changes: 5 additions & 3 deletions app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:ignore="MonochromeLauncherIcon">
<background android:drawable="@color/ic_launcher_background" />
<foreground android:drawable="@mipmap/ic_launcher_foreground" />
</adaptive-icon>
8 changes: 5 additions & 3 deletions app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:ignore="MonochromeLauncherIcon">
<background android:drawable="@color/ic_launcher_background" />
<foreground android:drawable="@mipmap/ic_launcher_foreground" />
</adaptive-icon>
7 changes: 0 additions & 7 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="purple_200">#FFBB86FC</color>
<color name="purple_500">#FF6200EE</color>
<color name="purple_700">#FF3700B3</color>
<color name="teal_200">#FF03DAC5</color>
<color name="teal_700">#FF018786</color>
<color name="black">#FF000000</color>
<color name="white">#FFFFFFFF</color>
</resources>
12 changes: 10 additions & 2 deletions data/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,20 @@ dependencies {
testImplementation(libs.kotlinx.coroutines.test)
testImplementation(libs.mockito.kotlin)
testImplementation(libs.mockk)
androidTestImplementation(libs.androidx.espresso.core)
testImplementation(libs.test.rules)
androidTestImplementation(libs.room.testing)
testImplementation(libs.androidx.junit)
testImplementation(libs.turbine)
testImplementation(libs.truth)

// UI Test
androidTestImplementation(libs.room.testing)
androidTestImplementation(libs.androidx.espresso.core)
androidTestImplementation(libs.hilt.android.testing)
androidTestImplementation(libs.test.runner)
androidTestImplementation(libs.test.rules)
androidTestImplementation(libs.androidx.junit)
androidTestImplementation(libs.turbine)
androidTestImplementation(libs.kotlinx.coroutines.test)
}

protobuf {
Expand Down
Loading
Loading