fix: download script failed when dir does not exist
This commit is contained in:
@@ -92,12 +92,19 @@ dependencies {
|
|||||||
exclude group: 'com.afollestad.material-dialogs'
|
exclude group: 'com.afollestad.material-dialogs'
|
||||||
exclude group: 'com.android.support'
|
exclude group: 'com.android.support'
|
||||||
})
|
})
|
||||||
|
//MultiLevelListView
|
||||||
compile 'com.github.hyb1996:android-multi-level-listview:1.1'
|
compile 'com.github.hyb1996:android-multi-level-listview:1.1'
|
||||||
|
//Licenses Dialog
|
||||||
compile 'de.psdev.licensesdialog:licensesdialog:1.8.1'
|
compile 'de.psdev.licensesdialog:licensesdialog:1.8.1'
|
||||||
|
//Expandable RecyclerView
|
||||||
compile 'com.bignerdranch.android:expandablerecyclerview:3.0.0-RC1'
|
compile 'com.bignerdranch.android:expandablerecyclerview:3.0.0-RC1'
|
||||||
|
//FlexibleDivider
|
||||||
compile 'com.yqritc:recyclerview-flexibledivider:1.4.0'
|
compile 'com.yqritc:recyclerview-flexibledivider:1.4.0'
|
||||||
|
//???
|
||||||
compile 'com.wang.avi:library:2.1.3'
|
compile 'com.wang.avi:library:2.1.3'
|
||||||
|
//Commons-lang
|
||||||
compile 'org.apache.commons:commons-lang3:3.6'
|
compile 'org.apache.commons:commons-lang3:3.6'
|
||||||
|
//Expandable RecyclerView
|
||||||
compile 'com.thoughtbot:expandablerecyclerview:1.3'
|
compile 'com.thoughtbot:expandablerecyclerview:1.3'
|
||||||
compile('com.github.hyb1996:FloatingCircularActionMenu:0.0.4')
|
compile('com.github.hyb1996:FloatingCircularActionMenu:0.0.4')
|
||||||
compile 'com.github.hyb1996:Auto.js-ApkBuilder:1.0.1'
|
compile 'com.github.hyb1996:Auto.js-ApkBuilder:1.0.1'
|
||||||
@@ -123,12 +130,12 @@ dependencies {
|
|||||||
compile 'joda-time:joda-time:2.9.9'
|
compile 'joda-time:joda-time:2.9.9'
|
||||||
// Tasker Plugin
|
// Tasker Plugin
|
||||||
compile 'com.twofortyfouram:android-plugin-client-sdk-for-locale:4.0.3'
|
compile 'com.twofortyfouram:android-plugin-client-sdk-for-locale:4.0.3'
|
||||||
|
// Flurry
|
||||||
compile 'com.flurry.android:analytics:7.0.0@aar'
|
compile 'com.flurry.android:analytics:7.0.0@aar'
|
||||||
|
// MaterialDialogCommon
|
||||||
compile('com.afollestad.material-dialogs:commons:0.9.2.3', {
|
compile('com.afollestad.material-dialogs:commons:0.9.2.3', {
|
||||||
exclude group: 'com.android.support'
|
exclude group: 'com.android.support'
|
||||||
})
|
})
|
||||||
compile 'com.rengwuxian.materialedittext:library:2.0.3'
|
|
||||||
compile 'org.msgpack:msgpack-core:0.8.11'
|
|
||||||
compile project(':automator')
|
compile project(':automator')
|
||||||
compile project(':common')
|
compile project(':common')
|
||||||
compile project(':autojs')
|
compile project(':autojs')
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package com.stardust.scriptdroid.network.download;
|
|||||||
|
|
||||||
import com.jakewharton.retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory;
|
import com.jakewharton.retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory;
|
||||||
import com.stardust.concurrent.VolatileBox;
|
import com.stardust.concurrent.VolatileBox;
|
||||||
|
import com.stardust.pio.PFiles;
|
||||||
import com.stardust.scriptdroid.network.NodeBB;
|
import com.stardust.scriptdroid.network.NodeBB;
|
||||||
import com.stardust.scriptdroid.network.api.DownloadApi;
|
import com.stardust.scriptdroid.network.api.DownloadApi;
|
||||||
|
|
||||||
@@ -132,6 +133,7 @@ public class DownloadManager {
|
|||||||
|
|
||||||
public void start(ResponseBody body) {
|
public void start(ResponseBody body) {
|
||||||
try {
|
try {
|
||||||
|
PFiles.ensureDir(mPath);
|
||||||
startImpl(body);
|
startImpl(body);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
mProgress.onError(e);
|
mProgress.onError(e);
|
||||||
|
|||||||
@@ -1,122 +1,104 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<notices>
|
<notices>
|
||||||
<toast>
|
<notice>
|
||||||
<name>Rhino: JavaScript in Java</name>
|
<name>Rhino: JavaScript in Java</name>
|
||||||
<url>https://github.com/mozilla/rhino</url>
|
<url>https://github.com/mozilla/rhino</url>
|
||||||
<copyright/>
|
<copyright/>
|
||||||
<license>Mozilla Public License 2.0</license>
|
<license>Mozilla Public License 2.0</license>
|
||||||
</toast>
|
</notice>
|
||||||
<toast>
|
<notice>
|
||||||
<name>920 Text Editor</name>
|
|
||||||
<url>https://github.com/jecelyin/920-text-editor-v2</url>
|
|
||||||
<copyright/>
|
|
||||||
<license>Apache Software License 2.0</license>
|
|
||||||
</toast>
|
|
||||||
<toast>
|
|
||||||
<name>LeakCanary</name>
|
<name>LeakCanary</name>
|
||||||
<copyright>Copyright 2015 Square, Inc.</copyright>
|
<copyright>Copyright 2015 Square, Inc.</copyright>
|
||||||
<url>https://github.com/square/leakcanary</url>
|
<url>https://github.com/square/leakcanary</url>
|
||||||
<license>Apache Software License 2.0</license>
|
<license>Apache Software License 2.0</license>
|
||||||
</toast>
|
</notice>
|
||||||
<toast>
|
<notice>
|
||||||
<name>StorIO</name>
|
<name>StorIO</name>
|
||||||
<url>https://github.com/pushtorefresh/storio</url>
|
<url>https://github.com/pushtorefresh/storio</url>
|
||||||
<license>Apache Software License 2.0</license>
|
<license>Apache Software License 2.0</license>
|
||||||
</toast>
|
</notice>
|
||||||
<toast>
|
<notice>
|
||||||
<name>Material Dialogs</name>
|
<name>Material Dialogs</name>
|
||||||
<url>https://github.com/afollestad/material-dialogs</url>
|
<url>https://github.com/afollestad/material-dialogs</url>
|
||||||
<copyright>Copyright (c) 2014-2016 Aidan Michael Follestad</copyright>
|
<copyright>Copyright (c) 2014-2016 Aidan Michael Follestad</copyright>
|
||||||
<license>MIT License</license>
|
<license>MIT License</license>
|
||||||
</toast>
|
</notice>
|
||||||
<toast>
|
<notice>
|
||||||
<name>Gson</name>
|
<name>Gson</name>
|
||||||
<url>https://github.com/google/gson</url>
|
<url>https://github.com/google/gson</url>
|
||||||
<copyright>Copyright 2008 Google Inc.</copyright>
|
<copyright>Copyright 2008 Google Inc.</copyright>
|
||||||
<license>Apache Software License 2.0</license>
|
<license>Apache Software License 2.0</license>
|
||||||
</toast>
|
</notice>
|
||||||
<toast>
|
<notice>
|
||||||
<name>commonmark-java</name>
|
<name>commonmark-java</name>
|
||||||
<url>https://github.com/atlassian/commonmark-java</url>
|
<url>https://github.com/atlassian/commonmark-java</url>
|
||||||
<copyright>Copyright (c) 2015-2016 Atlassian and others.</copyright>
|
<copyright>Copyright (c) 2015-2016 Atlassian and others.</copyright>
|
||||||
<license>BSD 2-Clause License</license>
|
<license>BSD 2-Clause License</license>
|
||||||
</toast>
|
</notice>
|
||||||
<toast>
|
<notice>
|
||||||
<name>Alipay ZeroSdk</name>
|
<name>Alipay ZeroSdk</name>
|
||||||
<copyright>Copyright 2016 Fung Go (fython)</copyright>
|
<copyright>Copyright 2016 Fung Go (fython)</copyright>
|
||||||
<url>https://github.com/fython/AlipayZeroSdk</url>
|
<url>https://github.com/fython/AlipayZeroSdk</url>
|
||||||
<license>Apache Software License 2.0</license>
|
<license>Apache Software License 2.0</license>
|
||||||
</toast>
|
</notice>
|
||||||
<toast>
|
<notice>
|
||||||
<name>Console</name>
|
|
||||||
<copyright>Copyright 2015 Josef Raska</copyright>
|
|
||||||
<url>https://github.com/jraska/Console</url>
|
|
||||||
<license>Apache Software License 2.0</license>
|
|
||||||
</toast>
|
|
||||||
<toast>
|
|
||||||
<name>android-issue-reporter</name>
|
<name>android-issue-reporter</name>
|
||||||
<copyright/>
|
<copyright/>
|
||||||
<url>https://github.com/HeinrichReimer/android-issue-reporter</url>
|
<url>https://github.com/HeinrichReimer/android-issue-reporter</url>
|
||||||
<license>Apache Software License 2.0</license>
|
<license>Apache Software License 2.0</license>
|
||||||
</toast>
|
</notice>
|
||||||
<toast>
|
<notice>
|
||||||
<name>SortableTableView</name>
|
<name>SortableTableView</name>
|
||||||
<copyright>Copyright 2015 Ingo Schwarz</copyright>
|
<copyright>Copyright 2015 Ingo Schwarz</copyright>
|
||||||
<url>https://github.com/ISchwarz23/SortableTableView</url>
|
<url>https://github.com/ISchwarz23/SortableTableView</url>
|
||||||
<license>Apache Software License 2.0</license>
|
<license>Apache Software License 2.0</license>
|
||||||
</toast>
|
</notice>
|
||||||
<toast>
|
<notice>
|
||||||
<name>MultiLevelListView</name>
|
<name>MultiLevelListView</name>
|
||||||
<copyright>2016 (C) Copyright Open-RnD Sp. z o.o.</copyright>
|
<copyright>2016 (C) Copyright Open-RnD Sp. z o.o.</copyright>
|
||||||
<url>https://github.com/open-rnd/android-multi-level-listview</url>
|
<url>https://github.com/open-rnd/android-multi-level-listview</url>
|
||||||
<license>Apache Software License 2.0</license>
|
<license>Apache Software License 2.0</license>
|
||||||
</toast>
|
</notice>
|
||||||
<toast>
|
<notice>
|
||||||
<name>hover</name>
|
|
||||||
<copyright>2016 (C) Copyright Open-RnD Sp. z o.o.</copyright>
|
|
||||||
<url>https://github.com/google/hover</url>
|
|
||||||
<license>Apache Software License 2.0</license>
|
|
||||||
</toast>
|
|
||||||
<toast>
|
|
||||||
<name>event-bus</name>
|
<name>event-bus</name>
|
||||||
<copyright>2016 (C) Copyright Open-RnD Sp. z o.o.</copyright>
|
<copyright>2016 (C) Copyright Open-RnD Sp. z o.o.</copyright>
|
||||||
<url>https://github.com/greenrobot/EventBus</url>
|
<url>https://github.com/greenrobot/EventBus</url>
|
||||||
<license>Apache Software License 2.0</license>
|
<license>Apache Software License 2.0</license>
|
||||||
</toast>
|
</notice>
|
||||||
<toast>
|
<notice>
|
||||||
<name>Expandable RecyclerView</name>
|
<name>Expandable RecyclerView</name>
|
||||||
<copyright>Copyright (c) 2015 Big Nerd Ranch</copyright>
|
<copyright>Copyright (c) 2015 Big Nerd Ranch</copyright>
|
||||||
<url>https://github.com/bignerdranch/expandable-recycler-view</url>
|
<url>https://github.com/bignerdranch/expandable-recycler-view</url>
|
||||||
<license>MIT License</license>
|
<license>MIT License</license>
|
||||||
</toast>
|
</notice>
|
||||||
<toast>
|
<notice>
|
||||||
<name>Android Terminal Emulator</name>
|
<name>Android Terminal Emulator</name>
|
||||||
<copyright/>
|
<copyright/>
|
||||||
<url>https://github.com/jackpal/Android-Terminal-Emulator</url>
|
<url>https://github.com/jackpal/Android-Terminal-Emulator</url>
|
||||||
<license>Apache Software License 2.0</license>
|
<license>Apache Software License 2.0</license>
|
||||||
</toast>
|
</notice>
|
||||||
<toast>
|
<notice>
|
||||||
<name>RecyclerView-FlexibleDivider</name>
|
<name>RecyclerView-FlexibleDivider</name>
|
||||||
<copyright>Copyright 2016 yqritc</copyright>
|
<copyright>Copyright 2016 yqritc</copyright>
|
||||||
<url>https://github.com/yqritc/RecyclerView-FlexibleDivider</url>
|
<url>https://github.com/yqritc/RecyclerView-FlexibleDivider</url>
|
||||||
<license>Apache Software License 2.0</license>
|
<license>Apache Software License 2.0</license>
|
||||||
</toast>
|
</notice>
|
||||||
<toast>
|
<notice>
|
||||||
<name>Volley</name>
|
<name>Volley</name>
|
||||||
<copyright/>
|
<copyright/>
|
||||||
<url>https://github.com/google/volley</url>
|
<url>https://github.com/google/volley</url>
|
||||||
<license>Apache Software License 2.0</license>
|
<license>Apache Software License 2.0</license>
|
||||||
</toast>
|
</notice>
|
||||||
<toast>
|
<notice>
|
||||||
<name>Settings Compat</name>
|
<name>Settings Compat</name>
|
||||||
<copyright>Copyright 2016 czy1121</copyright>
|
<copyright>Copyright 2016 czy1121</copyright>
|
||||||
<url>https://github.com/czy1121/settingscompat</url>
|
<url>https://github.com/czy1121/settingscompat</url>
|
||||||
<license>Apache Software License 2.0</license>
|
<license>Apache Software License 2.0</license>
|
||||||
</toast>
|
</notice>
|
||||||
<toast>
|
<notice>
|
||||||
<name>Zip4j</name>
|
<name>Zip4j</name>
|
||||||
<copyright/>
|
<copyright/>
|
||||||
<url>http://www.lingala.net/zip4j/</url>
|
<url>http://www.lingala.net/zip4j/</url>
|
||||||
<license>Apache Software License 2.0</license>
|
<license>Apache Software License 2.0</license>
|
||||||
</toast>
|
</notice>
|
||||||
</notices>
|
</notices>
|
||||||
@@ -129,11 +129,6 @@
|
|||||||
android:title="@string/text_check_for_updates"
|
android:title="@string/text_check_for_updates"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Preference
|
|
||||||
android:layout="@layout/preference_custom"
|
|
||||||
android:title="@string/text_join_qq_group"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<Preference
|
<Preference
|
||||||
android:layout="@layout/preference_custom"
|
android:layout="@layout/preference_custom"
|
||||||
android:title="@string/text_issue_report"
|
android:title="@string/text_issue_report"
|
||||||
|
|||||||
Reference in New Issue
Block a user