Skip to content

Commit

Permalink
Remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
vil02 authored Oct 20, 2024
1 parent d720ddf commit 44a0ba4
Show file tree
Hide file tree
Showing 25 changed files with 0 additions and 50 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,18 @@


import androidx.test.internal.runner.junit4.AndroidJUnit4ClassRunner;
import androidx.test.internal.util.ReflectionUtil;
import androidx.test.platform.app.InstrumentationRegistry;
import androidx.work.BackoffPolicy;
import androidx.work.Constraints;
import androidx.work.OneTimeWorkRequest;
import androidx.work.WorkManager;
import androidx.work.WorkRequest;
import androidx.work.impl.model.WorkSpec;

import com.cloudinary.Cloudinary;
import com.cloudinary.android.callback.ErrorInfo;
import com.cloudinary.android.callback.UploadCallback;
import com.cloudinary.android.payload.FilePayload;
import com.cloudinary.utils.ObjectUtils;

import org.cloudinary.json.JSONObject;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;

import java.io.File;
import java.io.IOException;
import java.lang.reflect.Field;
import java.lang.reflect.ParameterizedType;
import java.util.Map;

@RunWith(AndroidJUnit4ClassRunner.class)
public class AndroidJobStrategyTest extends AbstractTest {
Expand Down
3 changes: 0 additions & 3 deletions core/src/main/java/com/cloudinary/android/MediaManager.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package com.cloudinary.android;

import android.app.Application;
import android.content.Context;
import android.net.Uri;
import android.os.Build;
import android.view.View;

import androidx.annotation.NonNull;
Expand All @@ -24,7 +22,6 @@
import com.cloudinary.android.payload.Payload;
import com.cloudinary.android.payload.ResourcePayload;
import com.cloudinary.android.policy.GlobalUploadPolicy;
import com.cloudinary.android.policy.UploadPolicy;
import com.cloudinary.android.signed.SignatureProvider;
import com.cloudinary.utils.Analytics;
import com.cloudinary.utils.StringUtils;
Expand Down
2 changes: 0 additions & 2 deletions core/src/main/java/com/cloudinary/android/UploadRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@
import com.cloudinary.android.payload.PayloadNotFoundException;
import com.cloudinary.android.policy.TimeWindow;
import com.cloudinary.android.policy.UploadPolicy;
import com.cloudinary.android.preprocess.PayloadDecodeException;
import com.cloudinary.android.preprocess.PreprocessChain;
import com.cloudinary.android.preprocess.PreprocessException;
import com.cloudinary.android.preprocess.ResourceCreationException;
import com.cloudinary.utils.ObjectUtils;

import java.io.File;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.cloudinary.android.download;

import android.graphics.drawable.Drawable;
import android.widget.ImageView;

import com.cloudinary.Transformation;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import android.content.Context;

import com.cloudinary.android.UploadRequest;
import com.cloudinary.android.payload.Payload;
import com.cloudinary.android.payload.PayloadNotFoundException;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
package com.cloudinary.android.preprocess;

import android.content.Context;

import com.cloudinary.android.preprocess.Preprocess;
import com.cloudinary.android.preprocess.PreprocessException;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
package com.cloudinary.android.signed;

import android.content.Context;

import com.cloudinary.android.MediaManager;
import com.cloudinary.android.UploadRequest;

import java.util.Map;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.cloudinary.android.download;

import android.graphics.drawable.Drawable;
import android.widget.ImageView;

import androidx.annotation.DrawableRes;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import android.graphics.Point;

import com.cloudinary.android.preprocess.Preprocess;
import com.cloudinary.android.preprocess.PreprocessChain;
import com.cloudinary.android.preprocess.PreprocessException;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

import android.graphics.Bitmap;

import com.cloudinary.android.UploadRequest;

/**
* A preprocess chain to run on images before uploading. Pass an instance of a populated chain to {@link UploadRequest#preprocess(PreprocessChain)}.
* The processing steps will run by the order in which they were added to the chain. This chain uses the default Bitmap encoder/decoder, however custom implementations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import android.graphics.Bitmap;

import com.cloudinary.android.preprocess.Preprocess;
import com.cloudinary.android.preprocess.PreprocessChain;

/**
* Preprocess implementation for resizing. Send an instance to {@link PreprocessChain#addStep(Preprocess)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import android.graphics.Matrix;

import com.cloudinary.android.preprocess.Preprocess;
import com.cloudinary.android.preprocess.PreprocessChain;

/**
* Preprocess for rotating. Send an instance to {@link PreprocessChain#addStep(Preprocess)} to rotate an image.
Expand Down
2 changes: 0 additions & 2 deletions sample/src/main/java/com/cloudinary/sample/helpers/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;

import com.cloudinary.sample.R;

public class Utils {

public static String UPLOAD_PRESET = "android_sample";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import android.content.SharedPreferences;
import android.os.Bundle;

import com.cloudinary.android.MediaManager;
import com.cloudinary.sample.R;
import com.cloudinary.sample.helpers.CloudinaryHelper;
import com.cloudinary.sample.main.delivery.DeliveryFragment;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

import com.cloudinary.sample.R;
import com.cloudinary.sample.databinding.ActivityBaseBinding;
import com.cloudinary.sample.databinding.ActivityMainBinding;
import com.cloudinary.sample.databinding.HeadingBinding;
import com.cloudinary.sample.helpers.StringHelper;
import com.cloudinary.sample.main.delivery.optimization.OptimizationFragment;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import com.bumptech.glide.request.target.SimpleTarget;
import com.bumptech.glide.request.transition.Transition;
import com.cloudinary.sample.databinding.LocalizationFragmentBinding;
import com.cloudinary.sample.databinding.OptimizationFragmentBinding;
import com.cloudinary.sample.helpers.views.RevealImageView;


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import androidx.recyclerview.widget.RecyclerView;

import com.cloudinary.sample.R;
import com.cloudinary.sample.databinding.TransformationCellBinding;
import com.cloudinary.sample.databinding.UsecasesCellBinding;
import com.cloudinary.sample.main.delivery.usecases.OnUseCaseItemSelectedListener;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.cloudinary.sample.databinding.TransformationFragmentBinding;
import com.cloudinary.sample.databinding.UsecasesFragmentBinding;
import com.cloudinary.sample.main.delivery.usecases.OnUseCaseItemSelectedListener;
import com.cloudinary.sample.main.delivery.usecases.inner.adapt.AdaptToScreenSizeFragment;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

import com.cloudinary.android.cldvideoplayer.CldVideoPlayer;
import com.cloudinary.sample.databinding.AdaptToScreenSizeBinding;
import com.cloudinary.sample.databinding.ConditionalProductBadgingBinding;

public class AdaptToScreenSizeFragment extends Fragment {
AdaptToScreenSizeBinding binding;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.cloudinary.sample.databinding.ActivityBaseBinding;
import com.cloudinary.sample.databinding.NoCloudFragmentBinding;
import com.cloudinary.sample.helpers.CloudinaryHelper;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import androidx.fragment.app.FragmentTransaction;

import com.cloudinary.sample.databinding.UploadChoiceFragmentBinding;
import com.cloudinary.sample.databinding.VideoFragmentBinding;
import com.cloudinary.sample.main.widgets.upload_widget.UploadWidgetFragment;


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;

import com.cloudinary.sample.databinding.UploadChoiceFragmentBinding;
import com.cloudinary.sample.databinding.UploadFragmentBinding;
import com.cloudinary.sample.main.delivery.base.BaseActivity;
import com.cloudinary.sample.main.delivery.base.BaseActivityType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import androidx.media3.common.Player;

import com.cloudinary.android.cldvideoplayer.CldVideoPlayer;
import com.cloudinary.sample.databinding.DeliveryFragementBinding;
import com.cloudinary.sample.databinding.WidgetsFragementBinding;
import com.cloudinary.sample.main.delivery.base.BaseActivity;
import com.cloudinary.sample.main.delivery.base.BaseActivityType;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.cloudinary.sample.main.widgets.image_widget;

import static java.util.Objects.requireNonNull;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
Expand All @@ -15,7 +13,6 @@
import com.cloudinary.android.download.fresco.FrescoDownloadRequestBuilderFactory;
import com.cloudinary.android.download.glide.GlideDownloadRequestBuilderFactory;
import com.cloudinary.android.download.picasso.PicassoDownloadRequestBuilderFactory;
import com.cloudinary.sample.GlideApp;
import com.cloudinary.sample.databinding.ImageWidgetFragmentBinding;
import com.facebook.drawee.view.SimpleDraweeView;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import com.cloudinary.android.callback.ErrorInfo;
import com.cloudinary.android.callback.UploadCallback;
import com.cloudinary.android.uploadwidget.UploadWidget;
import com.cloudinary.sample.databinding.UploadChoiceFragmentBinding;
import com.cloudinary.sample.databinding.UploadWidgetFragmentBinding;
import com.cloudinary.sample.helpers.Utils;

Expand Down

0 comments on commit 44a0ba4

Please sign in to comment.