cordova-plugin-mserviceinterface-2.0 1.0.39 → 1.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/plugin.xml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
|
|
3
3
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
4
4
|
id="cordova-plugin-mserviceinterface-2.0"
|
|
5
|
-
version="1.0.
|
|
5
|
+
version="1.0.41">
|
|
6
6
|
<name>mserviceinterface-2.0</name>
|
|
7
7
|
<description>This plugin establishes the connection to the native interface and performs the requested task.</description>
|
|
8
8
|
<author>selfservit@gmail.com</author>
|
|
@@ -2,8 +2,6 @@ package com.selfservit.util;
|
|
|
2
2
|
|
|
3
3
|
import android.os.Build;
|
|
4
4
|
import android.os.Environment;
|
|
5
|
-
import android.support.annotation.RequiresApi;
|
|
6
|
-
import android.support.v4.app.NotificationCompat;
|
|
7
5
|
import android.util.Log;
|
|
8
6
|
import com.onesignal.NotificationExtenderService;
|
|
9
7
|
import com.onesignal.OSNotificationDisplayedResult;
|
|
@@ -21,6 +19,9 @@ import java.util.Date;
|
|
|
21
19
|
import java.util.Locale;
|
|
22
20
|
import static com.selfservit.util.mInterfaceUtil.decrypt;
|
|
23
21
|
|
|
22
|
+
import androidx.annotation.RequiresApi;
|
|
23
|
+
import androidx.core.app.NotificationCompat;
|
|
24
|
+
|
|
24
25
|
public class backgroundNotification extends NotificationExtenderService {
|
|
25
26
|
|
|
26
27
|
String[] baseDirectory;
|
|
@@ -38,10 +38,6 @@ import android.provider.DocumentsContract;
|
|
|
38
38
|
import android.provider.MediaStore;
|
|
39
39
|
import android.provider.OpenableColumns;
|
|
40
40
|
import android.provider.Settings;
|
|
41
|
-
import android.support.annotation.NonNull;
|
|
42
|
-
import android.support.annotation.Nullable;
|
|
43
|
-
import android.support.annotation.RequiresApi;
|
|
44
|
-
import android.support.v4.app.ActivityCompat;
|
|
45
41
|
import android.util.Base64;
|
|
46
42
|
import android.util.Log;
|
|
47
43
|
import android.util.Patterns;
|
|
@@ -109,6 +105,8 @@ import id.zelory.compressor.Compressor;
|
|
|
109
105
|
|
|
110
106
|
import static android.app.Activity.RESULT_OK;
|
|
111
107
|
|
|
108
|
+
import androidx.annotation.RequiresApi;
|
|
109
|
+
|
|
112
110
|
public class mInterface extends CordovaPlugin implements com.google.android.gms.location.LocationListener, GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener, ResultCallback<LocationSettingsResult> {
|
|
113
111
|
private static final String TAG = "mInterface";
|
|
114
112
|
public Stack<ProgressDialog> spinnerDialogStack = new Stack<ProgressDialog>();
|
|
@@ -24,10 +24,6 @@ import android.os.Environment;
|
|
|
24
24
|
import android.os.IBinder;
|
|
25
25
|
import android.os.Looper;
|
|
26
26
|
import android.os.SystemClock;
|
|
27
|
-
import android.support.annotation.NonNull;
|
|
28
|
-
import android.support.annotation.Nullable;
|
|
29
|
-
import android.support.annotation.RequiresApi;
|
|
30
|
-
import android.support.v4.app.NotificationCompat;
|
|
31
27
|
|
|
32
28
|
import com.google.android.gms.common.ConnectionResult;
|
|
33
29
|
import com.google.android.gms.common.GooglePlayServicesUtil;
|
|
@@ -63,6 +59,11 @@ import javax.xml.parsers.DocumentBuilderFactory;
|
|
|
63
59
|
|
|
64
60
|
import static com.selfservit.util.mInterfaceUtil.decrypt;
|
|
65
61
|
|
|
62
|
+
import androidx.annotation.NonNull;
|
|
63
|
+
import androidx.annotation.Nullable;
|
|
64
|
+
import androidx.annotation.RequiresApi;
|
|
65
|
+
import androidx.core.app.NotificationCompat;
|
|
66
|
+
|
|
66
67
|
@TargetApi(Build.VERSION_CODES.O)
|
|
67
68
|
public class mInterfaceService extends Service implements com.google.android.gms.location.LocationListener, GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener {
|
|
68
69
|
public Timer setQueueInterval,
|
|
@@ -281,7 +282,7 @@ public class mInterfaceService extends Service implements com.google.android.gms
|
|
|
281
282
|
|
|
282
283
|
public void createLocationRequest() {
|
|
283
284
|
try {
|
|
284
|
-
mLocationRequest =
|
|
285
|
+
mLocationRequest = LocationRequest.create();
|
|
285
286
|
mLocationRequest.setInterval(MINIMUM_INTERVAL * 1000);
|
|
286
287
|
mLocationRequest.setFastestInterval(MINIMUM_INTERVAL * 1000);
|
|
287
288
|
mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);
|
|
@@ -20,7 +20,6 @@ import android.os.AsyncTask;
|
|
|
20
20
|
import android.os.Build;
|
|
21
21
|
import android.os.Environment;
|
|
22
22
|
import android.provider.MediaStore;
|
|
23
|
-
import android.support.annotation.RequiresApi;
|
|
24
23
|
import android.util.Base64;
|
|
25
24
|
import android.util.Log;
|
|
26
25
|
import android.widget.Toast;
|
|
@@ -63,6 +62,8 @@ import javax.crypto.spec.SecretKeySpec;
|
|
|
63
62
|
|
|
64
63
|
import static com.selfservit.util.mInterface.pathComponent;
|
|
65
64
|
|
|
65
|
+
import androidx.annotation.RequiresApi;
|
|
66
|
+
|
|
66
67
|
public class mInterfaceUtil {
|
|
67
68
|
|
|
68
69
|
LocationManager locationManager;
|