Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

Commit

Permalink
release v0.3.1
Browse files Browse the repository at this point in the history
Former-commit-id: 3784380cd9c7ebfd54da5f4f58f89239f3d73c65 [formerly c52a870]
Former-commit-id: 8ff499d76afbe27254a7196aafb254007a70d582
  • Loading branch information
ingbyr committed Jun 24, 2018
1 parent 2300e94 commit ed7e849
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 16 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Video Download Manager
![](https://img.shields.io/badge/version-0.3.0-green.svg)
![](https://img.shields.io/badge/version-0.3.1-green.svg)
![](https://img.shields.io/github/stars/ingbyr/VDM.svg)
![](https://img.shields.io/github/forks/ingbyr/VDM.svg)
![](https://img.shields.io/github/issues/ingbyr/VDM.svg)
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group = "com.ingbyr.vdm"
version = "0.3.0"
version = "0.3.1"

buildscript {
ext.kotlin_version = "1.2.41"
Expand Down Expand Up @@ -57,7 +57,7 @@ jfx {
additionalAppResources = "src/main/deploy"
skipMainClassScanning = true
jvmProperties = ["-Dfile.encoding": "UTF-8"]
nativeReleaseVersion = "0.3.0"
nativeReleaseVersion = "0.3.1"
bundler = "exe"
needShortcut = true
bundleArguments = [
Expand Down
14 changes: 8 additions & 6 deletions src/main/kotlin/com/ingbyr/vdm/views/MainView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ import com.ingbyr.vdm.utils.VDMConfigUtils
import com.ingbyr.vdm.utils.VDMOSUtils
import com.ingbyr.vdm.utils.VDMUtils
import com.jfoenix.controls.JFXButton
import com.jfoenix.controls.JFXCheckBox
import com.jfoenix.controls.JFXProgressBar
import javafx.geometry.Insets
import javafx.scene.control.*
import javafx.scene.layout.ColumnConstraints
import javafx.scene.layout.GridPane
Expand All @@ -28,6 +26,8 @@ class MainView : View() {
title = messages["ui.vdm"]
}

private val vdmVersion = "0.3.1"

private val logger: Logger = LoggerFactory.getLogger(MainView::class.java)
override val root: VBox by fxml("/fxml/MainView.fxml")
private val controller: MainController by inject()
Expand All @@ -52,7 +52,7 @@ class MainView : View() {
private var menuDonate: MenuItem

private var selectedTaskModel: DownloadTaskModel? = null
private lateinit var downloadTaskTableView: TableView<DownloadTaskModel>
private var downloadTaskTableView: TableView<DownloadTaskModel>

private val cu = VDMConfigUtils(app.config)

Expand Down Expand Up @@ -136,14 +136,16 @@ class MainView : View() {
if (firstTimeUse) {
// init config file
// TODO update version when released new one
cu.update(VDMConfigUtils.VDM_VERSION, "0.3.0")
cu.update(VDMConfigUtils.YOUTUBE_DL_VERSION, "2018.05.18")
cu.update(VDMConfigUtils.VDM_VERSION, vdmVersion)
cu.update(VDMConfigUtils.YOUTUBE_DL_VERSION, "2018.06.19")
cu.update(VDMConfigUtils.YOU_GET_VERSION, VDMUtils.UNKNOWN_VERSION)

find(PreferencesView::class).openWindow()?.hide()
cu.update(VDMConfigUtils.FIRST_TIME_USE, "false")
cu.saveToConfigFile()
} else {
cu.update(VDMConfigUtils.VDM_VERSION, vdmVersion)
}
cu.saveToConfigFile()

// debug mode
val rootLogger = LoggerFactory.getLogger(ch.qos.logback.classic.Logger.ROOT_LOGGER_NAME) as ch.qos.logback.classic.Logger
Expand Down
9 changes: 2 additions & 7 deletions src/main/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
<configuration scan="true" scanPeriod="30 seconds" debug="false" packagingData="true">

<contextName>LearnLogback</contextName>

<property name="USER_HOME" value="./log"/>

<timestamp key="bySecond" datePattern="yyyyMMdd" timeReference="contextBirth"/>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>debug</level>
</filter>

<encoder>
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36}.%M\(%line\) - %msg%n</pattern>
<charset>UTF-8</charset>
Expand All @@ -27,7 +22,7 @@
</appender>

<root level="debug">
<appender-ref ref="STDOUT"/>
<!--<appender-ref ref="FILE"/>-->
<!--<appender-ref ref="STDOUT"/>-->
<appender-ref ref="FILE"/>
</root>
</configuration>

0 comments on commit ed7e849

Please sign in to comment.