From 28a86ffc5b7defc60fcfd5aedfe26d8c79107f33 Mon Sep 17 00:00:00 2001 From: Walter Juan <4141614+walter-juan@users.noreply.github.com> Date: Sun, 26 Jan 2025 17:00:23 +0100 Subject: [PATCH] Version 2.0.0 (#45) * New application design * Clean up mark as seen code * Update dependencies * Add missing debug icons * Remove dependency updates action and markdown formater * Update runs * Add Koin * Remove login screen * Remove MaterialColors class * Add Detekt with formatting and change configs for Compose * Fix some warnings * Change default synchronization interval from 1 to 5 minutes --- .github/workflows/dependency-updates.yml | 28 - .run/ghd [build].run.xml | 2 +- .run/ghd [cleanDebugFolder].run.xml | 2 +- ...> ghd [dependencyUpdates+browser].run.xml} | 4 +- CHANGELOG.md | 18 +- README.md | 29 +- app/build.gradle.kts | 282 +------- app/src/main/graphql/GetPullRequests.graphql | 1 + app/src/main/kotlin/com/woowla/ghd/Main.kt | 138 +++- .../woowla/ghd/data/local/LocalDataSource.kt | 64 +- .../ghd/data/local/prop/AppProperties.kt | 12 +- .../woowla/ghd/data/local/room/AppDatabase.kt | 27 +- .../data/local/room/daos/PullRequestDao.kt | 1 - .../local/room/daos/PullRequestSeenDao.kt | 25 - .../ghd/data/local/room/daos/ReviewSeenDao.kt | 22 - .../data/remote/AuthorizationInterceptor.kt | 2 +- .../ghd/data/remote/GitHubPATTokenProvider.kt | 2 +- .../ghd/data/remote/RemoteDataSource.kt | 10 +- .../data/remote/mappers/ApiToDomainMappers.kt | 8 +- .../woowla/ghd/domain/entities/AppSettings.kt | 5 +- .../domain/entities/GitHubMergeableState.kt | 21 + .../woowla/ghd/domain/entities/PullRequest.kt | 69 +- .../ghd/domain/entities/PullRequestBase.kt | 43 -- .../ghd/domain/entities/PullRequestDiff.kt | 9 - .../ghd/domain/entities/PullRequestSeen.kt | 44 -- .../entities/PullRequestStateExtended.kt | 2 +- .../entities/PullRequestWithRepoAndReviews.kt | 33 +- .../woowla/ghd/domain/entities/RepoToCheck.kt | 12 +- .../com/woowla/ghd/domain/entities/Review.kt | 34 +- .../woowla/ghd/domain/entities/ReviewBase.kt | 25 - .../woowla/ghd/domain/entities/ReviewSeen.kt | 30 - .../ghd/domain/entities/SyncSettings.kt | 5 +- .../ghd/domain/mappers/DomainMappers.kt | 38 - .../ghd/domain/services/AppSettingsService.kt | 2 +- .../ghd/domain/services/AppVersionService.kt | 2 +- .../ghd/domain/services/PullRequestService.kt | 68 +- .../ghd/domain/services/ReleaseService.kt | 8 +- .../ghd/domain/services/RepoToCheckService.kt | 8 +- .../domain/services/SyncSettingsService.kt | 2 +- .../domain/synchronization/Synchronizer.kt | 17 +- .../kotlin/com/woowla/ghd/eventbus/Event.kt | 1 - .../com/woowla/ghd/eventbus/EventBus.kt | 1 + .../com/woowla/ghd/extensions/Instant.kt | 2 +- .../com/woowla/ghd/extensions/String.kt | 14 + .../ghd/notifications/NotificationClient.kt | 7 +- .../ghd/notifications/NotificationsSender.kt | 7 +- .../com/woowla/ghd/presentation/app/App.kt | 37 +- .../woowla/ghd/presentation/app/AppColors.kt | 155 +--- .../woowla/ghd/presentation/app/AppDimens.kt | 9 +- .../woowla/ghd/presentation/app/AppScreen.kt | 4 +- .../woowla/ghd/presentation/app/AppTheme.kt | 22 +- .../com/woowla/ghd/presentation/app/i18n.kt | 50 +- .../ghd/presentation/components/Avatar.kt | 86 +++ .../presentation/components/CardListItem.kt | 102 --- .../ghd/presentation/components/Cards.kt | 390 ++++++++++ .../ghd/presentation/components/Chip.kt | 51 ++ .../ghd/presentation/components/Dialogs.kt | 38 + .../ghd/presentation/components/IconCard.kt | 328 --------- .../components/LabelledCheckBox.kt | 58 -- .../components/LabelledRadioButton.kt | 11 +- .../ghd/presentation/components/Others.kt | 45 ++ .../components/OutlinedSelectField.kt | 1 + .../components/OutlinedTextFieldValidation.kt | 83 --- .../components/PullRequestCard.kt | 183 ----- .../presentation/components/ReleaseCard.kt | 83 --- .../components/RepoToCheckCard.kt | 123 ---- .../ghd/presentation/components/Screen.kt | 99 ++- .../ghd/presentation/components/Sections.kt | 195 +++-- .../ghd/presentation/components/SwitchText.kt | 38 - .../woowla/ghd/presentation/components/Tag.kt | 51 ++ .../ghd/presentation/components/Utils.kt | 59 ++ .../decorators/PullRequestDecorator.kt | 39 +- .../decorators/ReleaseDecorator.kt | 1 - .../decorators/ReviewDecorator.kt | 2 +- .../decorators/SyncResultDecorator.kt | 74 +- .../decorators/SyncResultEntryDecorator.kt | 31 +- .../ghd/presentation/screens/AboutScreen.kt | 144 +++- .../screens/ComponentsSampleScreen.kt | 682 ------------------ .../ghd/presentation/screens/HomeScreen.kt | 28 +- .../ghd/presentation/screens/LoginScreen.kt | 161 ----- .../screens/NotificationsScreen.kt | 55 +- .../screens/PullRequestsScreen.kt | 143 ++-- .../presentation/screens/ReleasesScreen.kt | 134 ++-- .../screens/RepoToCheckBulkSampleScreen.kt | 51 -- .../screens/RepoToCheckBulkScreen.kt | 132 ++++ .../screens/RepoToCheckEditScreen.kt | 181 +++-- .../presentation/screens/RepoToCheckScreen.kt | 183 ----- .../screens/ReposToCheckScreen.kt | 247 +++++++ .../presentation/screens/SettingsScreen.kt | 279 ++++--- .../ghd/presentation/screens/SplashScreen.kt | 18 +- .../screens/SyncResultEntriesScreen.kt | 118 ++- .../presentation/screens/SyncResultsScreen.kt | 108 ++- .../viewmodels/ComponentsViewModel.kt | 86 --- .../presentation/viewmodels/LoginViewModel.kt | 30 - .../viewmodels/NotificationsViewModel.kt | 7 +- .../viewmodels/PullRequestsViewModel.kt | 145 +++- .../viewmodels/ReleasesViewModel.kt | 132 +++- .../viewmodels/RepoToCheckEditViewModel.kt | 6 +- .../viewmodels/ReposToCheckBulkViewModel.kt | 82 +++ .../viewmodels/ReposToCheckViewModel.kt | 201 ++++-- .../viewmodels/SettingsViewModel.kt | 18 +- .../viewmodels/SplashViewModel.kt | 6 +- .../viewmodels/SyncResultEntriesViewModel.kt | 80 +- .../viewmodels/SyncResultsViewModel.kt | 84 ++- .../kotlin/com/woowla/ghd/utils/Browser.kt | 14 + .../com/woowla/ghd/utils/MaterialColors.kt | 601 --------------- .../resources/icons/ic_launcher_debug.ico | Bin 0 -> 541 bytes .../resources/icons/ic_launcher_debug.png | Bin 0 -> 18219 bytes .../4.json | 588 +++++++++++++++ .../kotlin/com/woowla/ghd/RandomEntities.kt | 26 +- ...estServiceActivityNotificationsUnitTest.kt | 1 - ...equestServiceStateNotificationsUnitTest.kt | 1 - .../com/woowla/ghd/utils/EnumUnitTest.kt | 2 +- config/detekt/detekt-baseline.xml | 648 +++++++++++++++++ config/detekt/detekt-config.yml | 55 ++ gradle/libs.versions.toml | 54 +- gradle/wrapper/gradle-wrapper.jar | Bin 63721 -> 43453 bytes gradle/wrapper/gradle-wrapper.properties | 2 +- gradlew.bat | 20 +- 119 files changed, 4568 insertions(+), 4619 deletions(-) delete mode 100644 .github/workflows/dependency-updates.yml rename .run/{ghd [dependencyUpdates].run.xml => ghd [dependencyUpdates+browser].run.xml} (78%) delete mode 100644 app/src/main/kotlin/com/woowla/ghd/data/local/room/daos/PullRequestSeenDao.kt delete mode 100644 app/src/main/kotlin/com/woowla/ghd/data/local/room/daos/ReviewSeenDao.kt create mode 100644 app/src/main/kotlin/com/woowla/ghd/domain/entities/GitHubMergeableState.kt delete mode 100644 app/src/main/kotlin/com/woowla/ghd/domain/entities/PullRequestBase.kt delete mode 100644 app/src/main/kotlin/com/woowla/ghd/domain/entities/PullRequestDiff.kt delete mode 100644 app/src/main/kotlin/com/woowla/ghd/domain/entities/PullRequestSeen.kt delete mode 100644 app/src/main/kotlin/com/woowla/ghd/domain/entities/ReviewBase.kt delete mode 100644 app/src/main/kotlin/com/woowla/ghd/domain/entities/ReviewSeen.kt create mode 100644 app/src/main/kotlin/com/woowla/ghd/extensions/String.kt create mode 100644 app/src/main/kotlin/com/woowla/ghd/presentation/components/Avatar.kt delete mode 100644 app/src/main/kotlin/com/woowla/ghd/presentation/components/CardListItem.kt create mode 100644 app/src/main/kotlin/com/woowla/ghd/presentation/components/Cards.kt create mode 100644 app/src/main/kotlin/com/woowla/ghd/presentation/components/Chip.kt create mode 100644 app/src/main/kotlin/com/woowla/ghd/presentation/components/Dialogs.kt delete mode 100644 app/src/main/kotlin/com/woowla/ghd/presentation/components/IconCard.kt delete mode 100644 app/src/main/kotlin/com/woowla/ghd/presentation/components/LabelledCheckBox.kt create mode 100644 app/src/main/kotlin/com/woowla/ghd/presentation/components/Others.kt delete mode 100644 app/src/main/kotlin/com/woowla/ghd/presentation/components/OutlinedTextFieldValidation.kt delete mode 100644 app/src/main/kotlin/com/woowla/ghd/presentation/components/PullRequestCard.kt delete mode 100644 app/src/main/kotlin/com/woowla/ghd/presentation/components/ReleaseCard.kt delete mode 100644 app/src/main/kotlin/com/woowla/ghd/presentation/components/RepoToCheckCard.kt delete mode 100644 app/src/main/kotlin/com/woowla/ghd/presentation/components/SwitchText.kt create mode 100644 app/src/main/kotlin/com/woowla/ghd/presentation/components/Tag.kt create mode 100644 app/src/main/kotlin/com/woowla/ghd/presentation/components/Utils.kt delete mode 100644 app/src/main/kotlin/com/woowla/ghd/presentation/screens/ComponentsSampleScreen.kt delete mode 100644 app/src/main/kotlin/com/woowla/ghd/presentation/screens/LoginScreen.kt delete mode 100644 app/src/main/kotlin/com/woowla/ghd/presentation/screens/RepoToCheckBulkSampleScreen.kt create mode 100644 app/src/main/kotlin/com/woowla/ghd/presentation/screens/RepoToCheckBulkScreen.kt delete mode 100644 app/src/main/kotlin/com/woowla/ghd/presentation/screens/RepoToCheckScreen.kt create mode 100644 app/src/main/kotlin/com/woowla/ghd/presentation/screens/ReposToCheckScreen.kt delete mode 100644 app/src/main/kotlin/com/woowla/ghd/presentation/viewmodels/ComponentsViewModel.kt delete mode 100644 app/src/main/kotlin/com/woowla/ghd/presentation/viewmodels/LoginViewModel.kt create mode 100644 app/src/main/kotlin/com/woowla/ghd/presentation/viewmodels/ReposToCheckBulkViewModel.kt delete mode 100644 app/src/main/kotlin/com/woowla/ghd/utils/MaterialColors.kt create mode 100644 app/src/main/resources/icons/ic_launcher_debug.ico create mode 100644 app/src/main/resources/icons/ic_launcher_debug.png create mode 100644 app/src/main/room/schemas/com.woowla.ghd.data.local.room.AppDatabase/4.json create mode 100644 config/detekt/detekt-baseline.xml create mode 100644 config/detekt/detekt-config.yml diff --git a/.github/workflows/dependency-updates.yml b/.github/workflows/dependency-updates.yml deleted file mode 100644 index e9e24e57..00000000 --- a/.github/workflows/dependency-updates.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Dependency updates - -on: - workflow_dispatch: - -jobs: - check-versions: - name: Check versions - runs-on: ubuntu-22.04 - steps: - - name: Check out repository code - uses: actions/checkout@v4 - - name: Set up Java - uses: actions/setup-java@v4 - with: - distribution: 'temurin' - java-version: '17' - - name: Gradle Wrapper Validation - uses: gradle/actions/wrapper-validation@v3 - - name: Check dependency updates - uses: gradle/actions/setup-gradle@v3 - with: - arguments: | - clean - dependencyUpdates - -PdebugConfig=false - - name: Upload the report - run: cat build/reports/dependencyUpdates/report.md > $GITHUB_STEP_SUMMARY diff --git a/.run/ghd [build].run.xml b/.run/ghd [build].run.xml index c6703823..2c0912e4 100644 --- a/.run/ghd [build].run.xml +++ b/.run/ghd [build].run.xml @@ -1,5 +1,5 @@ - +