Skip to content

Commit

Permalink
feat: hide icons addon
Browse files Browse the repository at this point in the history
  • Loading branch information
Apehum committed Jun 9, 2024
0 parents commit 0b3daea
Show file tree
Hide file tree
Showing 15 changed files with 606 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/prerelease-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Publish

on:
push:
branches:
- v1.0

jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: write
packages: write

steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: |
8
16
17
21
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: build

- name: Publish to GitHub
uses: Apehum/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
github-generate-changelog: true
github-prerelease: true
changelog-file: changelog.md
42 changes: 42 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/

### IntelliJ IDEA ###
.idea/
*.iws
*.iml
*.ipr
out/
!**/src/main/**/out/
!**/src/test/**/out/

### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/

### VS Code ###
.vscode/

### Mac OS ###
.DS_Store

run/
docker/
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 Plasmo

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# pv-addon-hide-icons

Simple server-side [Plasmo Voice](https://modrinth.com/mod/plasmo-voice) addon for hiding source icons.
You can configure which type of sources to hide in `pv-addon-hide-icons/config.toml`.


> [!WARNING]
> This addon requires [2.1.0-SNAPSHOT](https://github.com/plasmoapp/plasmo-voice/releases/tag/2.1.0-SNAPSHOT) of Plasmo Voice.
30 changes: 30 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
plugins {
kotlin("jvm") version libs.versions.kotlin.get()
alias(libs.plugins.pv.entrypoints)
alias(libs.plugins.pv.kotlin.relocate)
alias(libs.plugins.pv.java.templates)
}

dependencies {
compileOnly(kotlin("stdlib-jdk8"))

compileOnly(libs.plasmovoice)
}

java.toolchain.languageVersion.set(JavaLanguageVersion.of(8))

repositories {
mavenCentral()
maven("https://repo.plasmoverse.com/snapshots")
maven("https://repo.plasmoverse.com/releases")
}

tasks {
jar {
enabled = false
}

shadowJar {
archiveClassifier.set("")
}
}
3 changes: 3 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
group=io.github.apehum.pv.hideicons
version=1.0.0-SNAPSHOT
kotlin.stdlib.default.dependency=false
13 changes: 13 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[versions]
kotlin = "1.9.21"

plasmovoice = "2.1.0-SNAPSHOT"
pv-gradle-plugin = "1.0.2-SNAPSHOT"

[libraries]
plasmovoice = { module = "su.plo.voice.api:server", version.ref = "plasmovoice" }

[plugins]
pv-entrypoints = { id = "su.plo.voice.plugin.entrypoints", version.ref = "pv-gradle-plugin" }
pv-kotlin-relocate = { id = "su.plo.voice.plugin.relocate-kotlin", version.ref = "pv-gradle-plugin" }
pv-java-templates = { id = "su.plo.voice.plugin.java-templates", version.ref = "pv-gradle-plugin" }
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 6 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 0b3daea

Please sign in to comment.