-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [Feature] Dynamic state parent group (#48) * feat: add parentGroup field in createState message * bump SDK and TP Api version * Change parameter order * feat: use the name from the category of the categoryId if parentGroup isn't specified * fix: typo's in stateId fix: use correct categoryId * fix: add check for category id from constants * fix: break outer loop * feat: add CategoryHelper.getCategoryShortId method * core: Upgrade dependencies * core: Upgrade Gradle version to 7.5.1 * core: Upgrade Gradle version to 7.5.1 * core: Upgrade Gradle version to 7.5.1 * core: Upgrade Gradle version to 7.5.1 * core: Upgrade Gradle version to 7.5.1 * core: Dependencies management * core: ActionTranslation annotation * fix: Github Workflow * fix: Github Workflows * fix: Github Workflows * fix: Github Workflows * fix: Tests wait time * fix: Packager SNAPSHOT publication * fix: Packager SNAPSHOT publication * fix: Packager SNAPSHOT publication * fix: Packager SNAPSHOT publication * fix: Packager SNAPSHOT publication * feat: Plugin ParentCategory * feat: TouchPortalPlugin.getBase64ImageFromUrl closes #38 * fix: Set encoding to UTF-8 * feat: TP Plugin API 7 Platform start command * core: Refactor Annotations Processor core: TP_JAVA_FILE * fix: JavaDoc * fix: JavaDoc * fix: JavaDoc * core: Refactor Annotations Processor * core: Add logs in tests * core: (WIP) Modularization closes #54 * doc: Update Samples and README.md * core: Call TPInvokable.onInvoke from callbacksExecutor * core: TPInvokable.onListChanged core: Use callbacksExecutor * core: Revert to System Java instalation * core: Revert to System Java instalation * core: 9.0.0 * Feat: TriggerEvent (#63) * Feat: forceUpdate (#64) Co-authored-by: Christophe Carvalho Vilas-Boas <[email protected]> * Change `sdk` to `api` (#66) * Add CodeQL workflow for GitHub code scanning (#53) Co-authored-by: LGTM Migrator <[email protected]> * [API 7] Setting Tooltip (#65) * Feat: Setting Tooltip * fix: use java 8 * Remove empty lines * Check if empty * use UpperCamelCase instead of Full uppercase * Check if empty --------- Co-authored-by: Pjiesco <[email protected]> Co-authored-by: lgtm-com[bot] <43144390+lgtm-com[bot]@users.noreply.github.com> Co-authored-by: LGTM Migrator <[email protected]>
- Loading branch information
1 parent
97f71be
commit a3ce808
Showing
57 changed files
with
2,349 additions
and
1,358 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: "CodeQL" | ||
|
||
on: | ||
push: | ||
branches: [ "master", "develop" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
schedule: | ||
- cron: "28 7 * * 6" | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: [ java ] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
with: | ||
languages: ${{ matrix.language }} | ||
queries: +security-and-quality | ||
|
||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v2 | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 | ||
with: | ||
category: "/language:${{ matrix.language }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 changes: 80 additions & 0 deletions
80
Annotations/src/main/java/com/christophecvb/touchportal/annotations/ActionTranslation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
/* | ||
* Touch Portal Plugin SDK | ||
* | ||
* Copyright 2020 Christophe Carvalho Vilas-Boas | ||
* [email protected] | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package com.christophecvb.touchportal.annotations; | ||
|
||
import java.lang.annotation.*; | ||
|
||
/** | ||
* ActionTranslation Annotation | ||
* <p> | ||
* Target is a Method | ||
* </p> | ||
*/ | ||
@Repeatable(ActionTranslations.class) | ||
@Target({ElementType.METHOD, ElementType.TYPE}) | ||
public @interface ActionTranslation { | ||
/** | ||
* ActionTranslation Language | ||
* | ||
* @return Language language | ||
*/ | ||
Language language(); | ||
|
||
/** | ||
* ActionTranslation name | ||
* <p> | ||
* Default is "" | ||
* </p> | ||
* | ||
* @return String name | ||
*/ | ||
String name() default ""; | ||
|
||
/** | ||
* ActionTranslation prefix | ||
* <p> | ||
* Default is "" | ||
* </p> | ||
* | ||
* @return String prefix | ||
*/ | ||
String prefix() default ""; | ||
|
||
/** | ||
* ActionTranslation description | ||
* <p> | ||
* Default is "" | ||
* </p> | ||
* | ||
* @return String description | ||
*/ | ||
String description() default ""; | ||
|
||
/** | ||
* ActionTranslation format | ||
* <p> | ||
* Default is "" | ||
* </p> | ||
* | ||
* @return String format | ||
*/ | ||
String format() default ""; | ||
} |
9 changes: 9 additions & 0 deletions
9
Annotations/src/main/java/com/christophecvb/touchportal/annotations/ActionTranslations.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.christophecvb.touchportal.annotations; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Target; | ||
|
||
@Target({ElementType.METHOD, ElementType.TYPE}) | ||
public @interface ActionTranslations { | ||
ActionTranslation[] value(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
Annotations/src/main/java/com/christophecvb/touchportal/annotations/Language.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.christophecvb.touchportal.annotations; | ||
|
||
/** | ||
* Languages supported by Touch Portal | ||
*/ | ||
public enum Language { | ||
//ENGLISH("en"), This is the default language to provide in Action annotation | ||
GERMAN("de"), | ||
SPANISH("es"), | ||
FRENCH("fr"), | ||
DUTCH("nl"), | ||
PORTUGUESE("pt"), | ||
TURKISH("tr"); | ||
|
||
|
||
private final String code; | ||
|
||
Language(String code) { | ||
this.code = code; | ||
} | ||
|
||
public String getCode() { | ||
return this.code; | ||
} | ||
} |
Oops, something went wrong.