-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
introduce downloadable sprites #33
Conversation
emoji-offline/src/main/java/com/gluonhq/emoji/LocalEmojiSpriteLoader.java
Outdated
Show resolved
Hide resolved
emoji/src/main/java/com/gluonhq/emoji/DownloadbleEmojiSpriteLoader.java
Outdated
Show resolved
Hide resolved
emoji/src/main/java/com/gluonhq/emoji/DownloadbleEmojiSpriteLoader.java
Outdated
Show resolved
Hide resolved
emoji/src/main/java/com/gluonhq/emoji/DownloadbleEmojiSpriteLoader.java
Outdated
Show resolved
Hide resolved
samples/introduction/src/main/java/com/gluonhq/sample/Main.java
Outdated
Show resolved
Hide resolved
emoji/src/main/java/com/gluonhq/emoji/DownloadbleEmojiSpriteLoader.java
Outdated
Show resolved
Hide resolved
samples/nodes/src/main/java/com/gluonhq/emoji/samples/Demo.java
Outdated
Show resolved
Hide resolved
emoji/src/main/java/com/gluonhq/emoji/DownloadbleEmojiSpriteLoader.java
Outdated
Show resolved
Hide resolved
emoji/src/main/java/com/gluonhq/emoji/DownloadbleEmojiSpriteLoader.java
Outdated
Show resolved
Hide resolved
emoji/src/main/java/com/gluonhq/emoji/DownloadbleEmojiSpriteLoader.java
Outdated
Show resolved
Hide resolved
emoji/src/main/java/com/gluonhq/emoji/DownloadbleEmojiSpriteLoader.java
Outdated
Show resolved
Hide resolved
samples/nodes/src/main/java/com/gluonhq/emoji/samples/Demo.java
Outdated
Show resolved
Hide resolved
samples/nodes/src/main/java/com/gluonhq/emoji/samples/Demo.java
Outdated
Show resolved
Hide resolved
emoji/src/main/java/com/gluonhq/emoji/DownloadbleEmojiSpriteLoader.java
Outdated
Show resolved
Hide resolved
emoji/src/main/java/com/gluonhq/emoji/DownloadbleEmojiSpriteLoader.java
Outdated
Show resolved
Hide resolved
emoji/src/main/java/com/gluonhq/emoji/DownloadbleEmojiSpriteLoader.java
Outdated
Show resolved
Hide resolved
emoji/src/main/java/com/gluonhq/emoji/DownloadableEmojiSpriteLoader.java
Show resolved
Hide resolved
emoji/src/main/java/com/gluonhq/emoji/DownloadableEmojiSpriteLoader.java
Show resolved
Hide resolved
@@ -45,12 +49,46 @@ | |||
|
|||
public class Demo extends Application { | |||
|
|||
private StackPane root; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed, but if you want, add a logging.properties file, so tests can be done with fine level.
samples/introduction/src/main/java/com/gluonhq/sample/Main.java
Outdated
Show resolved
Hide resolved
Path tmpFilePath = getTmpFilePath(size); | ||
if (Files.exists(tmpFilePath)) { | ||
LOG.fine("Temporary download file found"); | ||
LOG.fine("Delete file and re-try downloading"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Increase log-level here. This is something that should only happen in rare occasions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want all logging to happen at info
level or just this one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just that one.
While we are developing ourselves, we can easily increase the log level to check detailed logging.
But in case this is happening with users, and when they submit logs, only logs with INFO or higher are considered.
} | ||
|
||
private Path getLockFilePath(int size) { | ||
return Paths.get(String.format(LOCAL_PATH, commit)).resolve(size + ".downloading"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does the extension .downloading
makes sense or should I update it to .lck
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't really matter, but probably .lck or .tmp is better
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
Fixes #32