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