Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into dev
Browse files Browse the repository at this point in the history
# Conflicts:
#	.idea/gradle.xml
  • Loading branch information
ndiritumichael committed Oct 8, 2024
2 parents b061a70 + 47425b0 commit 466b0dd
Show file tree
Hide file tree
Showing 27 changed files with 684 additions and 114 deletions.
68 changes: 68 additions & 0 deletions .github/workflows/manual_deploy_to_firebase_workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Deploy Android Debug
on:
workflow_dispatch:
inputs:
versionCode:
description: Version Code (eg. 123)
required: true
versionName:
description: Version Name (eg 1.2.3)
required: true

env:
VERSION_CODE: ${{ github.event.inputs.versionCode }}
VERSION_NAME: ${{ github.event.inputs.versionName }}

jobs:

build:
name: 🔨 Build
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: "17"

- name: Make gradle executable
run: chmod +x ./gradlew

- name: Build with Gradle
run: ./gradlew build --stacktrace

deploy:
name: 🚀 Deploy to Firebase App Distribution
needs:
- build
runs-on: ubuntu-latest
steps:

- name: Checkout Code
uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: "17"

- name: Make gradle executable
run: chmod +x ./gradlew

- name: Get local.properties from secrets
run: echo "${{secrets.ProjectSecrets }}" > $GITHUB_WORKSPACE/local.properties

- name: Build Debug APK
run: ./gradlew assembleDebug --stacktrace

- name: Firebase App Distribution
uses: wzieba/Firebase-Distribution-Github-Action@v1.7.0
with:
appId: ${{secrets.FIREBASE_APP_ID}}
serviceCredentialsFileContent: ${{secrets.CREDENTIAL_FILE_CONTENT}}
groups: testers
file: app/build/outputs/apk/debug/app-debug.apk
113 changes: 113 additions & 0 deletions .idea/androidTestResultsUserPreferences.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions .idea/deploymentTargetSelector.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions .idea/git_toolbox_prj.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 41 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/ktlint-plugin.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/runConfigurations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ dependencies {
implementation(projects.core.domain)
implementation(libs.firebase.crashlytics)
implementation(libs.firebase.analytics)
// For Robolectric tests.
testImplementation(libs.hilt.android.testing)
kspTest(libs.hilt.compiler)
}

sentry {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ fun AppNavigation(
startDestination = com.devmike.domain.appdestinations.AppDestinations.RepositorySearch,
) {
composable<com.devmike.domain.appdestinations.AppDestinations.RepositorySearch> {
RepositorySearchScreen(onLogoutClicked = onLogout) { name, owner ->
RepositorySearchScreen(
onLogoutClicked = onLogout,
) { name, owner ->
val destination =
com.devmike.domain.appdestinations.AppDestinations
.Issues(repository = name, owner = owner)
Expand Down
4 changes: 2 additions & 2 deletions core/data/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ android {
dependencies {

api(projects.core.domain)
implementation(projects.core.network)
implementation(projects.core.database)
api(projects.core.network)
api(projects.core.database)
testImplementation(libs.androidx.test.ext)
testImplementation(libs.mockk)
testImplementation(libs.turbine)
Expand Down
3 changes: 2 additions & 1 deletion core/testing/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ android {
}

dependencies {

implementation(projects.core.data)
implementation(projects.core.datastore)
implementation(libs.androidx.arch.core.testing)
implementation(libs.kotlinx.coroutines.test)
implementation(libs.core.ktx)
Expand Down
3 changes: 3 additions & 0 deletions feature/repository/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,16 @@ dependencies {

implementation(projects.core.data)
implementation(projects.core.domain)
debugImplementation(libs.ui.test.manifest)

implementation(libs.androidx.paging.compose)
implementation(libs.coil.compose)
testImplementation(libs.mockk)
testImplementation(libs.turbine)
testImplementation(libs.androidx.arch.core.testing)
androidTestImplementation(libs.androidx.arch.core.testing)
testImplementation(libs.kotlinx.coroutines.test)
androidTestImplementation(libs.kotlinx.coroutines.test)
testImplementation(libs.core.ktx)
testImplementation(libs.truth)
// alternatively - without Android dependencies for tests
Expand Down
5 changes: 5 additions & 0 deletions feature/repository/src/androidTest/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>

<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET" />
</manifest>
Loading

0 comments on commit 466b0dd

Please sign in to comment.