Skip to content
Merged
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
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ jobs:

strategy:
matrix:
java-version: [8, 11, 17, 21, 23]
java-version: [8, 11, 17, 21, 23, 25]

steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
java-version: ${{ matrix.java-version }}
distribution: 'corretto'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
java-version: 8
distribution: 'corretto'
Expand All @@ -31,4 +31,4 @@ jobs:
git config user.email ""
git add docs/
git commit -m "Update javadoc" || echo "No changes to commit"
git push
git push
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.bitpay</groupId>
<artifactId>bitpay_sdk</artifactId>
<version>10.2.5</version>
<version>10.3.0</version>
<packaging>jar</packaging>

<name>BitPay</name>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/bitpay/sdk/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class Config {
/**
* BitPay Plugin Info Version.
*/
public static final String BITPAY_PLUGIN_INFO = "BitPay_Java_Client_v10.2.5";
public static final String BITPAY_PLUGIN_INFO = "BitPay_Java_Client_v10.3.0";
/**
* BitPay Api Frame.
*/
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/com/bitpay/sdk/util/KeyUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ public KeyUtils() {
public static boolean privateKeyExists(String privateKeyFile) {
PrivateKeyFile = privateKeyFile;

// if the private key file is null or empty, return false
if (privateKeyFile == null || privateKeyFile.isEmpty()) {
return false;
}

return new File(privateKeyFile).exists();
}

Expand Down
2 changes: 1 addition & 1 deletion src/test/java/com/bitpay/sdk/ConfigTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void it_should_returns_bitpay_api_version() {

@Test
public void it_should_returns_bitpay_plugin_info() {
Assertions.assertTrue(Config.BITPAY_PLUGIN_INFO.contains("BitPay_Java_Client_v10.2.5"));
Assertions.assertTrue(Config.BITPAY_PLUGIN_INFO.contains("BitPay_Java_Client_v10.3.0"));
}

@Test
Expand Down