Commit 8c311a9
authored
Add build logic (#55)
* Add static analysis and linting configuration via custom convention plugins
* Implemented a `build-logic` system using convention plugins to standardize project configurations across Android, KMP, and JVM modules.
* Introduced `MifosDetektConventionPlugin`, `MifosSpotlessConventionPlugin`, and `MifosKtlintConventionPlugin` for automated code quality and formatting.
* Added a custom `lint` module containing specialized detectors:
* `DesignSystemDetector`: Enforces usage of the internal design system over standard Material components.
* `Material2Detector`: Flags usage of deprecated Material 2 APIs in favor of Material 3.
* `TestMethodNameDetector`: Validates test naming conventions (prefix removal and format checks).
* Configured Spotless with copyright header templates for Kotlin, KTS, and XML files.
* Integrated Detekt with a comprehensive rule set in `config/detekt/detekt.yml`, including Compose-specific rules.
* Refactored existing modules (`mifos-authenticator-biometrics`, `mifos-authenticator-passcode`, etc.) to use the new convention plugins.
* Updated `libs.versions.toml` with new dependencies for linting, static analysis, and Android build tools.
* Add static analysis and linting configuration via custom convention plugins
* Implemented a `build-logic` system using convention plugins to standardize project configurations across Android, KMP, and JVM modules.
* Introduced `MifosDetektConventionPlugin`, `MifosSpotlessConventionPlugin`, and `MifosKtlintConventionPlugin` for automated code quality and formatting.
* Added a custom `lint` module containing specialized detectors:
* `DesignSystemDetector`: Enforces usage of the internal design system over standard Material components.
* `Material2Detector`: Flags usage of deprecated Material 2 APIs in favor of Material 3.
* `TestMethodNameDetector`: Validates test naming conventions (prefix removal and format checks).
* Configured Spotless with copyright header templates for Kotlin, KTS, and XML files.
* Integrated Detekt with a comprehensive rule set in `config/detekt/detekt.yml`, including Compose-specific rules.
* Refactored existing modules (`mifos-authenticator-biometrics`, `mifos-authenticator-passcode`, etc.) to use the new convention plugins.
* Updated `libs.versions.toml` with new dependencies for linting, static analysis, and Android build tools.
* Apply licensing and code style updates across the project.
* Added license headers to Kotlin source files, XML resources, and build scripts.
* Renamed `ProvidableCompositionLocal` variables in `mifos-authenticator-biometrics` to follow camelCase naming conventions (e.g., `LibraryLocalAndroidActivity` to `libraryLocalAndroidActivity`).
* Applied consistent code formatting and trailing commas throughout the codebase using Spotless/Ktlint.
* Updated Spotless configuration to ignore function naming rules for `@Composable` annotations.
* Cleaned up unused imports in several sample module files.
* Update project dependencies and improve code quality (#50)
* Added license headers to all source files.
* Updated several dependencies in `libs.versions.toml`, including `androidx-lifecycle` to 2.10.0, `composeBom` to 2026.01.00, and static analysis tools like `spotless` and `detekt`.
* Configured a GitHub Actions workflow for automated PR checks.
* Added a Pull Request template for better contribution tracking.
* Refactored `LibraryLocalCompositionProvider` across all platforms to ensure proper provision of authentication-related locals.
* Applied consistent formatting and style fixes, including trailing commas, improved spacing, and `@Suppress` annotations where necessary.
* Replaced `e.printStackTrace()` with `Logger.e` in `PlatformAuthenticator` for Android.
* Simplified `PasscodeHeader` by removing the unused `isPasscodeAlreadySet` parameter.
* Improved UI components like `PasscodeKeys` and `PasscodeLengthSwitch` with better alignment and formatting.
* Clean up build-logic convention scripts
* Removed unused import `org.gradle.kotlin.dsl.assign` in `KotlinAndroid.kt`.
* Refactored `disableUnnecessaryAndroidTests` in `AndroidInstrumentedTests.kt` for better formatting and added a trailing newline.
* Minor formatting adjustments to trailing braces in `Spotless.kt`, `Detekt.kt`, and `KotlinMultiplatform.kt`.
* Removed dependency-guard plugin and updated Kotlin compiler and Webpack configurations.
* Removed dependencyGuard plugin and version from `build.gradle.kts` and `libs.versions.toml`.
* Updated `KotlinAndroid.kt` to use the `.set()` method for `jvmTarget` and `allWarningsAsErrors` compiler options.
* Updated `cmp-sample-web` build configuration to use `ExperimentalWasmDsl` and simplified the `devServer` static file serving logic.
* Add Git hooks plugin and update build configurations
* Created `GitHooksConventionPlugin` to automate the installation of pre-commit hooks from the `scripts` directory.
* Integrated the Git hooks plugin into `AndroidApplicationConventionPlugin`.
* Updated `targetSdk` to 36 in `AndroidApplicationConventionPlugin`.
* Added `dependency-guard` plugin for dependency tracking and management.
* Added `google-oss-licenses-plugin` and `truth` library dependencies.
* Updated Kotlin compiler options to use the `kotlin` extension block instead of `KotlinCompile` tasks.
* Registered the `mifos.git.hooks` plugin in `build-logic`.
* Clean up build configuration and update dependencies
* Removed unused imports in `build.gradle.kts` and `KotlinMultiplatform.kt`.
* Formatted task list in `GitHooksConventionPlugin.kt` for better readability.
* Updated `kotlinSerialization` version to 1.10.0 in `libs.versions.toml`.
* Minor linting and whitespace adjustments in `build.gradle.kts`.
* Update build configuration and dependencies in cmp-sample-android
* Changed `ktlintVersion` to a `const val` in Spotless configuration.
* Updated `cmp-sample-android` to use the `kotlin` extension for JVM target configuration instead of `tasks.withType`.
* Added `dependencyGuard` configuration for debug and release runtime classpaths.
* Removed commented-out Koin dependencies.
* Update LICENSE path in file headers
Updated the license file reference in the copyright headers across multiple modules from `LICENSE.md` to `LICENSE`.1 parent 8f93f77 commit 8c311a9
123 files changed
Lines changed: 3313 additions & 843 deletions
File tree
- .github
- workflows
- build-logic
- convention
- src/main/kotlin
- org/mifos
- cmp-sample-android
- src
- androidTest/java/cmp/sample/android
- main
- kotlin/cmp/sample/android
- res
- drawable-v24
- drawable
- mipmap-anydpi-v26
- values
- test/java/cmp/sample/android
- cmp-sample-desktop
- cmp-sample-web
- config/detekt
- gradle
- mifos-authenticator-biometrics
- src
- androidMain/kotlin/org/mifos/authenticator/biometrics
- platformAuthenticator
- commonMain/kotlin/org/mifos/authenticator/biometrics
- platformAuthenticator
- desktopMain/kotlin/org/mifos/authenticator/biometrics
- mockServer
- utils
- platformAuthenticator
- windows
- utils
- iosMain/kotlin/org/mifos/authenticator/biometrics
- platformAuthenticator
- jsMain/kotlin/org/mifos/authenticator/biometrics
- platformAuthenticator
- wasmJsMain/kotlin/org/mifos/authenticator/biometrics
- platformAuthenticator
- mifos-authenticator-passcode
- src/commonMain
- composeResources
- drawable
- values
- kotlin/org/mifos/authenticator/passcode
- components
- screen
- theme
- utility
- spotless
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
Lines changed: 37 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
Lines changed: 48 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
Lines changed: 59 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
Lines changed: 44 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
0 commit comments