Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
* jfoenix 9.0.1 -> 9.0.2
  • Loading branch information
Seil0 committed Mar 11, 2018
1 parent 81a7910 commit 6282c8c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>org.kellerkinder</groupId>
<artifactId>Project-HomeFlix</artifactId>
<version>0.5.2</version>
<version>0.6.0</version>
<packaging>jar</packaging>

<name>Project-HomeFlix</name>
Expand Down Expand Up @@ -32,7 +32,7 @@
<dependency>
<groupId>com.jfoenix</groupId>
<artifactId>jfoenix</artifactId>
<version>9.0.1</version>
<version>9.0.2</version>
</dependency>

<dependency>
Expand Down Expand Up @@ -89,7 +89,7 @@
<shadedArtifactAttached>true</shadedArtifactAttached>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>org.kellerkinder.Project_HomeFlix.Main</mainClass>
<mainClass>kellerkinder.HomeFlix.application.Main</mainClass>
</transformer>
</transformers>
</configuration>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -955,8 +955,9 @@ public void loadSettings() {

// try loading the omdbAPI key
try {
File file = new File(getClass().getClassLoader().getResource("apiKeys.json").getFile());
JsonObject apiKeys = Json.parse(new FileReader(file)).asObject();
InputStream in = getClass().getClassLoader().getResourceAsStream("apiKeys.json");
BufferedReader reader = new BufferedReader(new InputStreamReader(in));
JsonObject apiKeys = Json.parse(reader).asObject();
omdbAPIKey = apiKeys.getString("omdbAPIKey", "");
} catch (Exception e) {
LOGGER.error("Cloud not load the omdbAPI key. Please contact the developer!", e);
Expand Down

0 comments on commit 6282c8c

Please sign in to comment.