GithubHelp home page GithubHelp logo

android-sdk's People

Contributors

acconut avatar cdr-chakotay avatar ethanwillis avatar ifedapoolarewaju avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-sdk's Issues

Release Workflow

Establish the automated release GH-Actions workflow in this repo also

Issues brought up on Intercom

  1. AssemblyResponse::getId throws exceptions instead of doing its job because it looks for "id" instead of ”assembly_id.”
  2. Submitting an assembly requires an Activity when a Context should be enough. In my case, I use a service for managing the uploads: having to provide an activity really feels like a hack.
  3. The upload progress is not updated frequently enough to use it to update a progress bar properly.

Additional feature request:
Upload progress and completion/failure callbacks for individual uploads.

Major Changes

We'll need to rewrite some parts of the SDK in order to move it from deprecated methods to more recent implementations in the Java-SDK >= 1.0.0

Maybe we can take into account those ideas from an older issue (#4):

  • Submitting an assembly requires an Activity when a Context should be enough. In my case, I use a service for managing the uploads: having to provide an activity really feels like a hack.
  • Upload progress and completion/failure callbacks for individual uploads.

Maybe we should also consider pairing up and or do a complete rewrite @Acconut.

We could also do it the hard with Kotlin, as referenced here: #2

Consider adding a Kotlin example

Since Kotlin is a first class language on Android now (https://developer.android.com/kotlin/), people might be interested in building parts of their mobile application using Kotlin. The good thing is that Kotlin is (fully?) inter-operable with Java, so we do not need another SDK for it but an example might be helpful for users who want to use the Android SDK with Kotlin.

Signature of AndroidTransloadit::newAssembly should be updated (Context instead of Activity) to enable uploads through services and workers

I'm pretty sure the method can be implemented using only the application context (a Context object, which is a superclass of Activity).

Current signature:
public AndroidAsyncAssembly newAssembly(com.transloadit.sdk.async.AssemblyProgressListener listener, android.app.Activity activity);

Desired signature:
public AndroidAsyncAssembly newAssembly(com.transloadit.sdk.async.AssemblyProgressListener listener, android.content.Context context);

Having to provide an Activity is really problematic, as activities are only available when the user is interacting with the app. Therefore I cannot provide an activity from a worker, which I'd like to use in order to offer my users a delayed upload (so they can select their files offline and have the worker upload them afterward when they are back online). I cannot provide an activity either from a service, from which I handle failed downloads (and from which I'd also like to handle failed uploads).

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.