Code Monkey home page Code Monkey logo

securesharelib's Introduction

SecureShareLib

SecureShareLib is an Android Library that allows apps to integrate a transfer manager that runs in a background service and has some capability to retry transfer on device reboot.

This package was originally forked from the AOSP Download Provider package. We extended it's classes to allow for both Downloads and Uploads in its database and content provider.

###Building

  • You need to place your Flickr keys in res/values/flickr.xml with your own from Flickr's create site page

Example:

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <!-- insert your own keys from: https://www.flickr.com/services/apps/create/apply/ -->
    <string name="flickr_key">REPLACE_WITH_YOUR_KEY</string>
    <string name="flickr_secret">REPLACE_WITH_YOUR_KEY</string>
</resources>

###What's next?

In the next release we will merge this code with the fork of the Download Manger (here) that has been split out from being an internal platform app into being a stand alone Android SDK app. This will allow us to build the Transfer Manager

###Future Reseach

  • Plugin API

We will investigate how to allow 3rd party packages to expose their own transfer implementations at runtime via a plugin interface. This would allow a more dynamic list of supported partner platforms.

  • Resume

Some services such as Youtube or Rsync allow us to resume after an interrupted transfer. We plan to extend our api to allow us to support this for those platforms

  • Rate limiting

We intend to add the ability to lower the rate of trasnfer so as to not saturation your mobile data link

###Issues You may get the following errors when trying to build the project:

  • Unable to execute dex: Multiple dex files define Lorg/json/JSONArray;
  • Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lorg/json/JSONArray;

These are caused when there are two duplicate jar files seen from the main project. To fix this issue, follow the steps below:

  • remove the conflicting jar from the sub-project (delete the soundcloud-api-wrapper.jar from the libs folder in SecureShareLib)
  • right click the project name
  • go to properties
  • select 'Java Build Path' on left menu, then the 'Libraries' tab
  • click 'Add JARs' button on right and point it to the soundcloud-api-wrapper.jar (located in secureshareuilibrary/external/)
  • clean and rebuild

###Credits

SecureShareLib was developed by Scal.io and Small World News as part of the StoryMaker project with the generous support of Open Technology Fund.

StoryMaker - Make your story great

Authors

securesharelib's People

Contributors

micahjlucas avatar vitriolix avatar mnbogner avatar

Watchers

James Cloos avatar huihuiguoguo 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.