Code Monkey home page Code Monkey logo

nappnuker's Introduction

NappNuker

UPDATE

Updated and modified versions of NappDownloadManger for iOS and Android have been created with a cleanUp() method which contains similar features to this module.

Please use the new modified full version of the downloader.


An Android Titanium module to nuke any leftover files and queue data after an aborted download queue from the Android version of the NappDownloadManager.

NB: This will disable the ability to resume downloads on the next launch of the app. (Many of us do not need this ability since it can complicate things a great deal!)

(For some reason I can't get a patched fork to build in Studio, so I created this extra module to do the job!)

The compiled module zip is in the /dist folder.

Usage

BEFORE loading the main NappDownloadmanager module… Preferably in app.js

if(Titanium.Platform.osname==='android'){
  var nappnuker = require('com.kosso.nappnuker');
  nappnuker.nukeNappDownloaderData();
  nappnuker = null;
}

That's it.

An iOS version of the NappDownloadmanager [nuke-at-launch branch] has been patched with this built-in. i.e.: No resuming downloads. The iOS version will also clean up any partially/failed downloads caused by a crash/exit during a download queue.

I might update this module to do the same. (ie: Read the data file queues and delete the incomplete files before trashing the data file itself.)


@kosso 2017

nappnuker's People

Contributors

kosso avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.