Skip to content

Commit

Permalink
First
Browse files Browse the repository at this point in the history
  • Loading branch information
Wenpiner committed Oct 7, 2023
1 parent 4546ee0 commit 45b2436
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 30 deletions.
37 changes: 10 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,44 +1,27 @@
# FlutterAssets

![Build](https://github.com/Wenpiner/FlutterAssets/workflows/Build/badge.svg)
[![Version](https://img.shields.io/jetbrains/plugin/v/PLUGIN_ID.svg)](https://plugins.jetbrains.com/plugin/PLUGIN_ID)
[![Downloads](https://img.shields.io/jetbrains/plugin/d/PLUGIN_ID.svg)](https://plugins.jetbrains.com/plugin/PLUGIN_ID)

## Template ToDo list
- [x] Create a new [IntelliJ Platform Plugin Template][template] project.
- [ ] Get familiar with the [template documentation][template].
- [ ] Adjust the [pluginGroup](./gradle.properties), [plugin ID](./src/main/resources/META-INF/plugin.xml) and [sources package](./src/main/kotlin).
- [ ] Adjust the plugin description in `README` (see [Tips][docs:plugin-description])
- [ ] Review the [Legal Agreements](https://plugins.jetbrains.com/docs/marketplace/legal-agreements.html?from=IJPluginTemplate).
- [ ] [Publish a plugin manually](https://plugins.jetbrains.com/docs/intellij/publishing-plugin.html?from=IJPluginTemplate) for the first time.
- [ ] Set the `PLUGIN_ID` in the above README badges.
- [ ] Set the [Plugin Signing](https://plugins.jetbrains.com/docs/intellij/plugin-signing.html?from=IJPluginTemplate) related [secrets](https://github.com/JetBrains/intellij-platform-plugin-template#environment-variables).
- [ ] Set the [Deployment Token](https://plugins.jetbrains.com/docs/marketplace/plugin-upload.html?from=IJPluginTemplate).
- [ ] Click the <kbd>Watch</kbd> button on the top of the [IntelliJ Platform Plugin Template][template] to be notified about releases containing new features and fixes.
[![Version](https://img.shields.io/jetbrains/plugin/v/22869-flutterassets.svg)](https://plugins.jetbrains.com/plugin/22869-flutterassets)
[![Downloads](https://img.shields.io/jetbrains/plugin/d/22869-flutterassets.svg)](https://plugins.jetbrains.com/plugin/22869-flutterassets)

## Todo list
<!-- Plugin description -->
This Fancy IntelliJ Platform Plugin is going to be your implementation of the brilliant ideas that you have.

This specific section is a source for the [plugin.xml](/src/main/resources/META-INF/plugin.xml) file which will be extracted by the [Gradle](/build.gradle.kts) during the build process.
- [x] Automatically generate all files in the right-click selected directory to pubspec.yaml.
- [ ] AI intelligent suggestions.

To keep everything working, do not remove `<!-- ... -->` sections.
<!-- Plugin description end -->

## Installation

- Using the IDE built-in plugin system:

<kbd>Settings/Preferences</kbd> > <kbd>Plugins</kbd> > <kbd>Marketplace</kbd> > <kbd>Search for "FlutterAssets"</kbd> >

<kbd>Settings/Preferences</kbd> > <kbd>Plugins</kbd> > <kbd>Marketplace</kbd> > <kbd>Search for "
FlutterAssets"</kbd> >
<kbd>Install</kbd>

- Manually:

Download the [latest release](https://github.com/Wenpiner/FlutterAssets/releases/latest) and install it manually using
<kbd>Settings/Preferences</kbd> > <kbd>Plugins</kbd> > <kbd>⚙️</kbd> > <kbd>Install plugin from disk...</kbd>


---
Plugin based on the [IntelliJ Platform Plugin Template][template].

[template]: https://github.com/JetBrains/intellij-platform-plugin-template
[docs:plugin-description]: https://plugins.jetbrains.com/docs/intellij/plugin-user-experience.html#plugin-description-and-presentation
<!-- Plugin description end -->
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pluginGroup = com.github.wenpiner.flutterassets
pluginName = FlutterAssets
pluginRepositoryUrl = https://github.com/Wenpiner/FlutterAssets
# SemVer format -> https://semver.org
pluginVersion = 0.0.1
pluginVersion = 0.0.2

# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
pluginSinceBuild = 223
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ class MyTask(private var project: Project, private var relativePath: String) : R
val tempMap = flutter as MutableMap<Any, Any>
tempMap["assets"] = flutterAssets
}
yaml.dump(yamlMap, pubspec.writer())

val s = yaml.dump(yamlMap)
pubspec.writeText(s)
result = true
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<add-to-group group-id="ProjectViewPopupMenu" anchor="after" relative-to-action="ReplaceInPath"/>
</group>
<action class="com.github.wenpiner.flutterassets.actionSystem.FlutterAssetsAction"
id="FlutterAssetsAction" description="Start flutter assets sync" text="Flutter Assets Sync">
id="FlutterAssetsAction" description="Start flutter assets sync" text="Sync">
<add-to-group group-id="Flutter Assets"/>
</action>
</actions>
Expand Down

0 comments on commit 45b2436

Please sign in to comment.