Prepare for release and deprecate old RPC sdk

This commit is contained in:
2024-12-02 11:46:36 +02:00
parent d2aca8ffa9
commit 5a8769bee9
13 changed files with 13 additions and 4 deletions

View File

@@ -11,6 +11,7 @@ import java.util.List;
* Class containing references to all available discord event handles. * Class containing references to all available discord event handles.
* Registering a handler is optional, and non-assigned handlers will be ignored * Registering a handler is optional, and non-assigned handlers will be ignored
*/ */
@Deprecated(forRemoval = true)
public class DiscordEventHandlers extends Structure { public class DiscordEventHandlers extends Structure {
// Callback for when the RPC was initialized successfully // Callback for when the RPC was initialized successfully

View File

@@ -9,6 +9,7 @@ import org.jetbrains.annotations.Nullable;
* @author HypherionSA * @author HypherionSA
* Java Wrapper of the Discord-RPC Library * Java Wrapper of the Discord-RPC Library
*/ */
@Deprecated(forRemoval = true)
public interface DiscordRPC extends Library { public interface DiscordRPC extends Library {
DiscordRPC INSTANCE = Native.load("discord-rpc", DiscordRPC.class); DiscordRPC INSTANCE = Native.load("discord-rpc", DiscordRPC.class);

View File

@@ -13,6 +13,7 @@ import java.util.List;
* @author HypherionSA * @author HypherionSA
* Class reprenting a Discord RPC activity * Class reprenting a Discord RPC activity
*/ */
@Deprecated(forRemoval = true)
public class DiscordRichPresence extends Structure { public class DiscordRichPresence extends Structure {
// First line of text on the RPC // First line of text on the RPC

View File

@@ -9,6 +9,7 @@ import java.util.List;
* @author HypherionSA * @author HypherionSA
* Class representing the Discord User * Class representing the Discord User
*/ */
@Deprecated(forRemoval = true)
public class DiscordUser extends Structure { public class DiscordUser extends Structure {
// The User ID of the User // The User ID of the User

View File

@@ -6,6 +6,7 @@ import com.sun.jna.Callback;
* @author HypherionSA * @author HypherionSA
* Callback for when the Discord RPC disconnects * Callback for when the Discord RPC disconnects
*/ */
@Deprecated(forRemoval = true)
public interface DisconnectedCallback extends Callback { public interface DisconnectedCallback extends Callback {
/** /**

View File

@@ -6,6 +6,7 @@ import com.sun.jna.Callback;
* @author HypherionSA * @author HypherionSA
* Callback for when the RPC ran into an error * Callback for when the RPC ran into an error
*/ */
@Deprecated(forRemoval = true)
public interface ErroredCallback extends Callback { public interface ErroredCallback extends Callback {
/** /**

View File

@@ -6,6 +6,7 @@ import com.sun.jna.Callback;
* @author HypherionSA * @author HypherionSA
* Callback for when someone was approved to join your game * Callback for when someone was approved to join your game
*/ */
@Deprecated(forRemoval = true)
public interface JoinGameCallback extends Callback { public interface JoinGameCallback extends Callback {
/** /**

View File

@@ -7,6 +7,7 @@ import com.sun.jna.Callback;
* @author HypherionSA * @author HypherionSA
* Callback for when someone requests to join your game * Callback for when someone requests to join your game
*/ */
@Deprecated(forRemoval = true)
public interface JoinRequestCallback extends Callback { public interface JoinRequestCallback extends Callback {
/** /**

View File

@@ -7,6 +7,7 @@ import com.sun.jna.Callback;
* @author HypherionSA * @author HypherionSA
* Callback for when the RPC has connected successfully * Callback for when the RPC has connected successfully
*/ */
@Deprecated(forRemoval = true)
public interface ReadyCallback extends Callback { public interface ReadyCallback extends Callback {
/** /**

View File

@@ -6,6 +6,7 @@ import com.sun.jna.Callback;
* @author HypherionSA * @author HypherionSA
* Callback for when someone is requesting to spectate your game * Callback for when someone is requesting to spectate your game
*/ */
@Deprecated(forRemoval = true)
public interface SpectateGameCallback extends Callback { public interface SpectateGameCallback extends Callback {
/** /**

View File

@@ -9,6 +9,7 @@ import java.io.Serializable;
* Helper class to add Buttons to Discord Rich Presence * Helper class to add Buttons to Discord Rich Presence
* This can not be used with Join/Spectate * This can not be used with Join/Spectate
*/ */
@Deprecated(forRemoval = true)
public class RPCButton implements Serializable { public class RPCButton implements Serializable {
// The label of the button // The label of the button

View File

@@ -61,11 +61,9 @@ tasks.assemble {
publisher { publisher {
apiKeys { apiKeys {
modrinth(System.getenv("MODRINTH_TOKEN"))
nightbloom(System.getenv("PLATFORM_KEY")) nightbloom(System.getenv("PLATFORM_KEY"))
} }
setModrinthID(modrinth_id)
setNightbloomID("craterlib") setNightbloomID("craterlib")
setVersionType("alpha") setVersionType("alpha")
setChangelog(rootProject.file("changelog.md")) setChangelog(rootProject.file("changelog.md"))

View File

@@ -1,7 +1,7 @@
**New Features**: **New Features**:
- Paper Support. Currently only available on Modrinth and NightBloom - Paper Support. Currently only available on [NightBloom](https://nightbloom.cc/project/craterlib/files?loader=paper)
- Added API's for working with FTB Ranks and LuckPerms groups - Added APIs for working with FTB Ranks and LuckPerms groups
**Bug Fixes**: **Bug Fixes**: