Closed lealobanov closed 4 months ago
The recent changes enhance the development experience by streamlining CI workflows, upgrading dependencies, and improving the error handling in API connectors for both Java and Kotlin examples. The updates promote modular architecture, simplify dependency management, and refine testing strategies, fostering better maintainability and clarity across the project.
Files | Change Summary |
---|---|
.github/workflows/ci-examples-pull-request.yml |
Removed emulator steps for a more streamlined CI process; tests now run independently. |
gradle/wrapper/gradle-wrapper.properties |
Updated Gradle version to 8.9 and added network timeout and URL validation properties. |
gradlew , gradlew.bat |
Enhanced script robustness; improved compliance with POSIX standards and error handling. |
java-example/build.gradle.kts , kotlin-example/build.gradle.kts |
Updated dependencies, removed version variables, and added testing capabilities with project modules. |
java-example/src/main/java/org/onflow/examples/java/AccessAPIConnector.java , kotlin-example/src/main/kotlin/org/onflow/examples/kotlin/AccessAPIConnector.kt |
Refactored constructors and methods to enhance API interaction and error handling. |
java-example/src/test/java/org/onflow/examples/java/AccessAPIConnectorTest.java , kotlin-example/src/test/kotlin/org/onflow/examples/kotlin/AccessAPIConnectorTest.kt |
Improved test structure, incorporated dependency injection, and refined naming for better clarity. |
sdk/build.gradle.kts , sdk/src/testFixtures/kotlin/org/onflow/flow/sdk/test/AbstractFlowEmulatorExtension.kt |
Added JUnit 5 dependencies for testing and refined lifecycle management in test extensions. |
java-example/src/main/resources/cadence/test_utils_create_account.cdc , kotlin-example/src/main/resources/cadence/test_utils_create_account.cdc |
Introduced new Cadence transaction scripts for account creation with initial balances. |
sequenceDiagram
participant User
participant AccessAPIConnector
participant FlowAccessApi
User->>AccessAPIConnector: Create account request
AccessAPIConnector->>FlowAccessApi: Send account creation transaction
FlowAccessApi-->>AccessAPIConnector: Transaction result
AccessAPIConnector-->>User: Account created confirmation
π° In the garden where I hop and play,
I see the code bloom brighter each day.
With tests so clear and workflows bright,
Our rabbit code leaps to new heights!
Hooray for the changes, letβs celebrate! πΌβ¨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
2 filesβ Β±0ββ2 suitesβ Β±0βββ18s :stopwatch: +15s 6 tests Β±0ββ6 :heavy_check_mark: Β±0ββ0 :zzz: Β±0ββ0 :x: Β±0β
Results for commit ac121712.βΒ± Comparison against base commit 0d669577.
:recycle: This comment has been updated with latest results.
0 filesβ Β±0ββ0 suitesβ Β±0βββ0s :stopwatch: Β±0s 0 tests Β±0ββ0 :heavy_check_mark: Β±0ββ0 :zzz: Β±0ββ0 :x: Β±0β
Results for commit 1b6d3f14.βΒ± Comparison against base commit 1b6d3f14.
:recycle: This comment has been updated with latest results.
0 filesβ Β±0ββ0 suitesβ Β±0βββ0s :stopwatch: Β±0s 0 tests Β±0ββ0 :heavy_check_mark: Β±0ββ0 :zzz: Β±0ββ0 :x: Β±0β
Results for commit 1b6d3f14.βΒ± Comparison against base commit 1b6d3f14.
:recycle: This comment has been updated with latest results.
Description
For contributor use:
master
branchFiles changed
in the Github PR explorerSummary by CodeRabbit
New Features
AccessAPIConnector
class for better API interaction and error handling.Bug Fixes
AccessAPIConnector
and its tests.Documentation
Tests
Chores