Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

611 update rx bloc android studio plugin #949

Open
wants to merge 19 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions .github/workflows/build_rx_bloc_intellij_plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ on:
- "extensions/intellij/intellij_generator_plugin/**"
- ".github/workflows/build_rx_bloc_intellij_plugin.yml"


jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -24,25 +23,25 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Set up JDK 8
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '8'
java-version: '17'
distribution: 'temurin'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file


- name: Build with Gradle
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
with:
build-root-directory: extensions/intellij/intellij_generator_plugin
arguments: assemble

uses: gradle/actions/setup-gradle@v4

- name: Build Plugin
run: |
cd extensions/intellij/intellij_generator_plugin
./gradlew buildPlugin

- name: Zip file
run: tar -cvf rxbloc_plugin.tar extensions/intellij/intellij_generator_plugin/build/distributions/*


- uses: actions/upload-artifact@v4
with:
name: rxbloc_plugin
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/test_rx_bloc_intellij_plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,20 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Set up JDK 8
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '8'
java-version: '17'
distribution: 'temurin'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file

- name: Build with Gradle
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4
with:
build-root-directory: extensions/intellij/intellij_generator_plugin
arguments: test
gradle-version: '8.10.2'

- name: Build with Gradle
run: |
cd extensions/intellij/intellij_generator_plugin
./gradlew test
1 change: 1 addition & 0 deletions extensions/intellij/intellij_generator_plugin/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ build/*

# IntelliJ
/out/
.intellijPlatform

# mpeltonen/sbt-idea plugin
.idea_modules/
Expand Down
140 changes: 140 additions & 0 deletions extensions/intellij/intellij_generator_plugin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
<!-- Keep a Changelog guide -> https://keepachangelog.com -->

# RxBloc IntelliJ Plugin Changelog

## [4.0.0] - Unreleased

### Changed

- Migrate to [IntelliJ Platform Gradle Plugin 2.0](https://blog.jetbrains.com/platform/2024/07/intellij-platform-gradle-plugin-2-0/).
- Upgrade Gradle Wrapper to `8.10.2`
- Update `platformVersion` to `2023.3.8`
- Change since build to `233` (2023.3)

## [3.1.0] - 2024-11-28

### Added

- Added the option to choose between the `golden_toolkit` and `alchemist` packages when creating golden tests.


## [3.0.4] - 2024-07-11

### Changed

- Replaced deprecated classes from external libraries with their updated counterparts to ensure compatibility and improve performance.

## [3.0.3] - 2023-10-11

### Fixed

- Incompatibility issues with Android Studio Giraffe

## [3.0.2] - 2023-04-20

### Changed

- Separate state mock initialization.

## [3.0.1] - 2023-03-20

### Fixed

- Imports for features created in sub-folder.

## [3.0.0] - 2023-02-28

### Added

- Detect user-selected folder/item so the bootstrap (RxBloc Tests) menu item is optionally visible.
- Skip the feature/lib selection when features are selected and directly generate tests.
- Added a combo box in the "Create Feature" dialog for choosing Routing Solution:
- Go Route
- Auto Route
- None
- Replace extensions with service when checkbox is On.

### Changed

- Improved imports in the generated tests.

### Removed

- Removed the null safety checkbox.

## [2.1.0] - 2022-11-29

### Added

- Allow scanning `lib/src` folder for features and libs.

### Changed

- Improved imports in the generated tests.

### Fixed

- Fixed auto-wrap freeze.

## [2.0.0] - 2022-10-25

### Added

- Bootstrap Test Generator in the project menu that outputs:
- Bootstrapped unit test for the bloc
- Factory of the page associated with the bloc
- Code for mocking the bloc states
- Template for creating golden tests with the most common use cases:
- empty result
- error
- loading
- success

## [1.5.0] - 2022-09-19

### Changed

- Updated DI Dependencies to not be a singleton.
- Improvement to the "Wrap With Quick Action Support" to analyze, filter, and display a choose BloC states dialog based on the file names and path by the convention:
- feature_xx
- bloc / xx_bloc.dart
- di
- views / xx_page.dart

### Added

- Filters to display BloC states:
- **RxResultBuilder** - filters states with `Result`
- **RxPaginatedBuilder** - filters states with `PaginatedList`
- **RxTextFormFieldBuilder** - filters states that are `string`

## [1.4.0] - 2021-07-08

### Added

- Introduce "New -> RxBloc List"
- Wrap With Quick Action Support (RxBlocBuilder, RxResultBuilder, RxPaginatedBuilder, RxBlocListener, RxFormFieldBuilder, RxTextFormFieldBuilder).

## [1.3.0] - 2021-06-17

### Added

- Option for creating an entire feature that includes bloc, page and dependency injection

## [1.2.0] - 2021-03-22

### Added

- Option for creating Null Safety BloC classes

## [1.1.0] - 2021-03-02

### Added

- Option for creating BloC extensions

## [1.0.0] - 2021-02-22

### Added

- Initial release
116 changes: 0 additions & 116 deletions extensions/intellij/intellij_generator_plugin/build.gradle

This file was deleted.

Loading
Loading