Skip to content

Commit

Permalink
Flatten android modules. Get rid of android directory and move module…
Browse files Browse the repository at this point in the history
…s to root dir.
  • Loading branch information
thomaskioko committed Feb 9, 2025
1 parent dfc5e76 commit 798f2df
Show file tree
Hide file tree
Showing 61 changed files with 28 additions and 28 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/baseline-profile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
uses: android-actions/setup-android@v3

- name: Accept licenses
run: yes | sdkmanager --licenses || true
run: yes | sdkmanager --licenses || trueMovr

- name: Build app and benchmark
run: ./gradlew assembleNonMinifiedRelease
Expand All @@ -48,7 +48,7 @@ jobs:
run: ./gradlew cleanManagedDevices

- name: Generate Baseline Profile
run: ./gradlew :android:app:generateBaselineProfile
run: ./gradlew :app:generateBaselineProfile
-Pandroid.testInstrumentationRunnerArguments.androidx.benchmark.enabledRules=baselineprofile
-Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect"
--no-configuration-cache
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ jobs:
- name: 🤖 Build Android App
run: |
./gradlew check \
:android:app:assemble \
:android:app:bundle \
:app:assemble \
:app:bundle \
-x assembleNonMinifiedRelease \
-x bundleNonMinifiedRelease \
-Pandroidx.baselineprofile.skipgeneration=true \
Expand Down Expand Up @@ -157,7 +157,7 @@ jobs:
${{ runner.os }}-gradle-
- name: Lint Project
run: ./gradlew :android:app:lintRelease
run: ./gradlew :app:lintRelease

- name: Upload Lint Report
if: ${{ !cancelled() }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dependencies {
api(libs.androidx.compose.material.icons)
api(libs.androidx.compose.runtime)

implementation(projects.android.resources)
implementation(projects.androidResources)

implementation(libs.androidx.annotation)
implementation(libs.androidx.collections)
Expand Down
File renamed without changes.
File renamed without changes.
14 changes: 7 additions & 7 deletions android/app/build.gradle.kts → app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ android {
}

dependencies {
implementation(projects.android.designsystem)
implementation(projects.android.ui.home)
implementation(projects.android.ui.moreShows)
implementation(projects.android.ui.seasonDetails)
implementation(projects.android.ui.showDetails)
implementation(projects.android.ui.trailers)
implementation(projects.androidDesignsystem)
implementation(projects.androidFeature.home)
implementation(projects.androidFeature.moreShows)
implementation(projects.androidFeature.seasonDetails)
implementation(projects.androidFeature.showDetails)
implementation(projects.androidFeature.trailers)
implementation(projects.core.base)
implementation(projects.core.util)
implementation(projects.traktAuth.api)
Expand Down Expand Up @@ -97,7 +97,7 @@ dependencies {
implementation(libs.coroutines.core)
implementation(libs.ktor.core)

baselineProfile(projects.android.benchmark)
baselineProfile(projects.benchmark)

runtimeOnly(libs.androidx.profileinstaller)
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ android {
}
}

targetProjectPath = ":android:app"
targetProjectPath = ":app"
}

@Suppress("UnstableApiUsage")
Expand Down
File renamed without changes.
28 changes: 14 additions & 14 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,24 +44,24 @@ develocity {
}

include(
":android:app",
":android:designsystem",
":android:benchmark",
":android:ui:discover",
":android:ui:home",
":android:ui:more-shows",
":android:resources",
":android:screenshot-tests",
":android:ui:search",
":android:ui:season-details",
":android:ui:settings",
":android:ui:show-details",
":android:ui:trailers",
":android:ui:watchlist",
":app",
":android-designsystem",
":android-feature:discover",
":android-feature:home",
":android-feature:more-shows",
":android-feature:search",
":android-feature:season-details",
":android-feature:settings",
":android-feature:show-details",
":android-feature:trailers",
":android-feature:watchlist",
":android-resources",
":benchmark",
":core:base",
":core:logger",
":core:network-util",
":core:paging",
":core:screenshot-tests",
":core:util",
":core:util:testing",
":database",
Expand Down

0 comments on commit 798f2df

Please sign in to comment.