Skip to content

Commit

Permalink
chore: Update android script
Browse files Browse the repository at this point in the history
  • Loading branch information
behzodhalil committed Sep 2, 2023
1 parent 93ae61e commit 1fdbd8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 31 deletions.
30 changes: 2 additions & 28 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,32 +25,6 @@ jobs:
distribution: adopt
java-version: 11

- name: Cache gradle, wrapper and buildSrc
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/buildSrc/**/*.kt') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Cache konan
uses: actions/cache@v3
with:
path: |
~/.konan/cache
~/.konan/dependencies
~/.konan/kotlin-native-macos*
~/.konan/kotlin-native-mingw*
~/.konan/kotlin-native-windows*
~/.konan/kotlin-native-linux*
~/.konan/kotlin-native-prebuilt-macos*
~/.konan/kotlin-native-prebuilt-mingw*
~/.konan/kotlin-native-prebuilt-windows*
~/.konan/kotlin-native-prebuilt-linux*
key: ${{ runner.os }}-konan-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-konan-
- name: Make gradlew executable
run: chmod +x ./gradlew

Expand All @@ -73,7 +47,7 @@ jobs:
with:
key-prefix: gradle-build
- name: Build
run: ./gradlew build
run: ./gradlew assembleDebug
test:
name: Unit tests
runs-on: ubuntu-22.04
Expand All @@ -89,7 +63,7 @@ jobs:
with:
key-prefix: gradle-test
- name: Unit tests
run: ./gradlew test
run: ./gradlew :data:local:test :data:network:test
- name: Upload test results
uses: actions/[email protected]
if: failure()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,12 @@ fun initKoin(declaration: KoinAppDeclaration = {}) =

fun initKoin() = initKoin() {}


val discoverFeatureModule = module {
single { DiscoverReducer() }
single { ArticleMiddleware(get()) }
single { PopularPlanetsMiddleware(get()) }
}



val favouriteFeatureModule = module {
single { FavouriteReducer() }
single { FavouriteMiddleware(get()) }
Expand Down

0 comments on commit 1fdbd8a

Please sign in to comment.