Skip to content
This repository has been archived by the owner on Apr 8, 2020. It is now read-only.

Commit

Permalink
Mark core FJD classes as deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
ciarand committed Apr 30, 2019
1 parent 6a3b50a commit 7a60f02
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@
* @see #FirebaseJobDispatcher(Driver)
* @see Driver
* @see JobParameters
* @deprecated Firebase Job Dispatcher is deprecated. Apps should migrate to WorkManager before Apr
* 7, 2020. Please see FJD's README.md file for more information.
*/
@Deprecated
public final class FirebaseJobDispatcher {
/** Indicates the schedule request seems to have been successful. */
public static final int SCHEDULE_RESULT_SUCCESS = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@
import android.support.annotation.Nullable;
import com.firebase.jobdispatcher.Constraint.JobConstraint;

/** JobParameters represents anything that can describe itself in terms of Job components. */
/**
* JobParameters represents anything that can describe itself in terms of Job components.
*
* @deprecated Firebase Job Dispatcher is deprecated. Apps should migrate to WorkManager before Apr
* 7, 2020. Please see FJD's README.md file for more information.
*/
@Deprecated
public interface JobParameters {

/** Returns the name of the backing JobService class. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,14 @@
import android.app.Service;
import android.content.Intent;
import android.content.res.Configuration;
import android.os.Binder;
import android.os.Bundle;
import android.os.Handler;
import android.os.IBinder;
import android.os.Looper;
import android.os.Message;
import android.os.RemoteException;
import android.os.SystemClock;
import android.support.annotation.AnyThread;
import android.support.annotation.BinderThread;
import android.os.RemoteException;
// import android.support.annotation.GuardedBy;
import android.support.annotation.IntDef;
import android.support.annotation.MainThread;
import android.support.annotation.NonNull;
Expand Down Expand Up @@ -68,7 +64,11 @@
* <p>Implementations should also override {@link #onStopJob(JobParameters)}, which will be called
* if the scheduling engine wishes to interrupt your work (most likely because the runtime
* constraints that are associated with the job in question are no longer met).
*
* @deprecated Firebase Job Dispatcher is deprecated. Apps should migrate to WorkManager before Apr
* 7, 2020. Please see FJD's README.md file for more information.
*/
@Deprecated
public abstract class JobService extends Service {

/**
Expand Down

0 comments on commit 7a60f02

Please sign in to comment.