feat: cordova10
This commit is contained in:
parent
672d804518
commit
9044cbe1d4
@ -28,8 +28,8 @@ import android.print.PageRange;
|
||||
import android.print.PrintAttributes;
|
||||
import android.print.PrintDocumentAdapter;
|
||||
import android.print.PrintDocumentInfo;
|
||||
import android.support.annotation.NonNull;
|
||||
import android.support.v4.print.PrintHelper;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.print.PrintHelper;
|
||||
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
|
@ -24,8 +24,8 @@ package de.appplant.cordova.plugin.printer;
|
||||
import android.content.Context;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.BitmapFactory;
|
||||
import android.support.annotation.NonNull;
|
||||
import android.support.annotation.Nullable;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import java.io.BufferedInputStream;
|
||||
import java.io.IOException;
|
||||
|
@ -26,8 +26,8 @@ import android.content.res.AssetManager;
|
||||
import android.content.res.Resources;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.BitmapFactory;
|
||||
import android.support.annotation.NonNull;
|
||||
import android.support.annotation.Nullable;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import android.util.Base64;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
|
@ -27,9 +27,9 @@ import android.graphics.Bitmap;
|
||||
import android.print.PrintAttributes;
|
||||
import android.print.PrintDocumentAdapter;
|
||||
import android.print.PrintJob;
|
||||
import android.support.annotation.NonNull;
|
||||
import android.support.annotation.Nullable;
|
||||
import android.support.v4.print.PrintHelper;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.print.PrintHelper;
|
||||
import android.webkit.CookieManager;
|
||||
import android.webkit.WebSettings;
|
||||
import android.webkit.WebView;
|
||||
|
@ -22,8 +22,8 @@
|
||||
package de.appplant.cordova.plugin.printer;
|
||||
|
||||
import android.print.PrintAttributes;
|
||||
import android.support.annotation.NonNull;
|
||||
import android.support.v4.print.PrintHelper;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.print.PrintHelper;
|
||||
|
||||
import org.json.JSONObject;
|
||||
|
||||
@ -35,10 +35,10 @@ import static android.print.PrintAttributes.Margins.NO_MARGINS;
|
||||
import static android.print.PrintAttributes.MediaSize.UNKNOWN_LANDSCAPE;
|
||||
import static android.print.PrintAttributes.MediaSize.UNKNOWN_PORTRAIT;
|
||||
import static android.print.PrintDocumentInfo.PAGE_COUNT_UNKNOWN;
|
||||
import static android.support.v4.print.PrintHelper.ORIENTATION_LANDSCAPE;
|
||||
import static android.support.v4.print.PrintHelper.ORIENTATION_PORTRAIT;
|
||||
import static android.support.v4.print.PrintHelper.SCALE_MODE_FILL;
|
||||
import static android.support.v4.print.PrintHelper.SCALE_MODE_FIT;
|
||||
import static androidx.print.PrintHelper.ORIENTATION_LANDSCAPE;
|
||||
import static androidx.print.PrintHelper.ORIENTATION_PORTRAIT;
|
||||
import static androidx.print.PrintHelper.SCALE_MODE_FILL;
|
||||
import static androidx.print.PrintHelper.SCALE_MODE_FIT;
|
||||
|
||||
/**
|
||||
* Wrapper for the print job settings.
|
||||
|
@ -27,8 +27,8 @@ import android.os.ParcelFileDescriptor;
|
||||
import android.print.PageRange;
|
||||
import android.print.PrintAttributes;
|
||||
import android.print.PrintDocumentAdapter;
|
||||
import android.support.annotation.NonNull;
|
||||
import android.support.v4.print.PrintHelper;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.print.PrintHelper;
|
||||
|
||||
/**
|
||||
* Simple delegate class to have access to the onFinish method.
|
||||
|
@ -21,8 +21,8 @@
|
||||
|
||||
package de.appplant.cordova.plugin.printer;
|
||||
|
||||
import android.support.annotation.NonNull;
|
||||
import android.support.annotation.Nullable;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import android.webkit.WebView;
|
||||
|
||||
import org.apache.cordova.CallbackContext;
|
||||
|
Loading…
Reference in New Issue
Block a user