react-native-mapp-plugin 1.0.11-beta3 → 1.0.11-beta4
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/.idea/workspace.xml
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<project version="4">
|
|
3
3
|
<component name="ChangeListManager">
|
|
4
|
-
<list default="true" id="8b4f258a-c093-494f-afe5-5f5a25c90893" name="Default Changelist" comment=""
|
|
4
|
+
<list default="true" id="8b4f258a-c093-494f-afe5-5f5a25c90893" name="Default Changelist" comment="">
|
|
5
|
+
<change beforePath="$PROJECT_DIR$/android/build.gradle" beforeDir="false" afterPath="$PROJECT_DIR$/android/build.gradle" afterDir="false" />
|
|
6
|
+
<change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
|
|
7
|
+
</list>
|
|
5
8
|
<option name="SHOW_DIALOG" value="false" />
|
|
6
9
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
7
10
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
@@ -77,7 +80,7 @@
|
|
|
77
80
|
<workItem from="1633566225798" duration="599000" />
|
|
78
81
|
<workItem from="1634673153825" duration="3131000" />
|
|
79
82
|
<workItem from="1635406438746" duration="1187000" />
|
|
80
|
-
<workItem from="1635764727836" duration="
|
|
83
|
+
<workItem from="1635764727836" duration="10080000" />
|
|
81
84
|
</task>
|
|
82
85
|
<task id="LOCAL-00001" summary="new version">
|
|
83
86
|
<created>1632917445507</created>
|
package/android/.classpath
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<classpath>
|
|
3
|
-
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-
|
|
3
|
+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11/"/>
|
|
4
4
|
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
|
|
5
5
|
<classpathentry kind="output" path="bin/default"/>
|
|
6
6
|
</classpath>
|
|
@@ -5,7 +5,7 @@ connection.gradle.distribution=GRADLE_DISTRIBUTION(VERSION(7.0-rc-1))
|
|
|
5
5
|
connection.project.dir=
|
|
6
6
|
eclipse.preferences.version=1
|
|
7
7
|
gradle.user.home=
|
|
8
|
-
java.home
|
|
8
|
+
java.home=/Library/Java/JavaVirtualMachines/temurin-11.jdk/Contents/Home
|
|
9
9
|
jvm.arguments=
|
|
10
10
|
offline.mode=false
|
|
11
11
|
override.workspace.settings=true
|
package/android/build.gradle
CHANGED
|
@@ -35,12 +35,12 @@ def safeExtGet(prop, fallback) {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
android {
|
|
38
|
-
compileSdkVersion safeExtGet('compileSdkVersion',
|
|
39
|
-
buildToolsVersion safeExtGet('buildToolsVersion', '
|
|
38
|
+
compileSdkVersion safeExtGet('compileSdkVersion', 31)
|
|
39
|
+
buildToolsVersion safeExtGet('buildToolsVersion', '30.0.3')
|
|
40
40
|
|
|
41
41
|
defaultConfig {
|
|
42
42
|
minSdkVersion safeExtGet('minSdkVersion', 19)
|
|
43
|
-
targetSdkVersion safeExtGet('targetSdkVersion',
|
|
43
|
+
targetSdkVersion safeExtGet('targetSdkVersion', 31)
|
|
44
44
|
versionCode 1
|
|
45
45
|
versionName '1.0'
|
|
46
46
|
}
|
|
@@ -54,7 +54,6 @@ android {
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
dependencies {
|
|
57
|
-
|
|
58
57
|
implementation('com.facebook.react:react-native:+')
|
|
59
58
|
implementation 'com.android.support:appcompat-v7:28.0.0'
|
|
60
59
|
implementation 'com.google.code.gson:gson:2.8.5'
|
|
@@ -71,5 +70,6 @@ dependencies {
|
|
|
71
70
|
}
|
|
72
71
|
implementation 'androidx.media:media:1.0.1'
|
|
73
72
|
implementation 'androidx.legacy:legacy-support-v13:1.0.0'
|
|
74
|
-
implementation 'com.mapp.sdk:mapp-android:6.0.17-
|
|
73
|
+
implementation 'com.mapp.sdk:mapp-android:6.0.17-special13'
|
|
75
74
|
}
|
|
75
|
+
|
|
@@ -8,6 +8,7 @@ import android.content.pm.PackageManager;
|
|
|
8
8
|
import android.os.Build;
|
|
9
9
|
import android.util.Log;
|
|
10
10
|
|
|
11
|
+
import androidx.annotation.Nullable;
|
|
11
12
|
import androidx.core.app.NotificationManagerCompat;
|
|
12
13
|
import androidx.core.content.ContextCompat;
|
|
13
14
|
|
|
@@ -22,6 +23,7 @@ import com.appoxee.internal.inapp.model.MessageContext;
|
|
|
22
23
|
import com.appoxee.internal.inapp.model.Tracking;
|
|
23
24
|
import com.appoxee.internal.inapp.model.TrackingAttributes;
|
|
24
25
|
import com.appoxee.internal.service.AppoxeeServiceAdapter;
|
|
26
|
+
import com.appoxee.internal.util.ResultCallback;
|
|
25
27
|
import com.appoxee.push.NotificationMode;
|
|
26
28
|
import com.appoxee.push.PushData;
|
|
27
29
|
import com.facebook.react.bridge.Arguments;
|
|
@@ -285,63 +287,38 @@ public class RNMappPluginModule extends ReactContextBaseJavaModule {
|
|
|
285
287
|
}
|
|
286
288
|
|
|
287
289
|
@ReactMethod
|
|
288
|
-
public void
|
|
290
|
+
public void startGeofencing(final Promise promise) {
|
|
291
|
+
Appoxee.instance().startGeoFencing(new ResultCallback<String>() {
|
|
292
|
+
@Override
|
|
293
|
+
public void onResult(@Nullable String result) {
|
|
294
|
+
promise.resolve(result);
|
|
295
|
+
}
|
|
296
|
+
});
|
|
297
|
+
}
|
|
289
298
|
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
//
|
|
300
|
-
// Appoxee.instance().startGeoFencing();
|
|
301
|
-
// }
|
|
302
|
-
// }
|
|
303
|
-
// });
|
|
304
|
-
// task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, Manifest.permission.ACCESS_COARSE_LOCATION, Manifest.permission.ACCESS_FINE_LOCATION);
|
|
305
|
-
//
|
|
306
|
-
// } else if (Build.VERSION.SDK_INT == 29) {
|
|
307
|
-
// RequestPermissionsTask task = new RequestPermissionsTask(getReactApplicationContext(),
|
|
308
|
-
// new RequestPermissionsTask.Callback() {
|
|
309
|
-
// @Override
|
|
310
|
-
// public void onResult(boolean enabled) {
|
|
311
|
-
// if (enabled) {
|
|
312
|
-
//
|
|
313
|
-
// Appoxee.instance().startGeoFencing();
|
|
314
|
-
// }
|
|
315
|
-
// }
|
|
316
|
-
// });
|
|
317
|
-
// task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, Manifest.permission.ACCESS_COARSE_LOCATION, Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_BACKGROUND_LOCATION);
|
|
318
|
-
//
|
|
319
|
-
// } else if (Build.VERSION.SDK_INT == 30) {
|
|
320
|
-
// RequestPermissionsTask task = new RequestPermissionsTask(getReactApplicationContext(),
|
|
321
|
-
// new RequestPermissionsTask.Callback() {
|
|
322
|
-
// @Override
|
|
323
|
-
// public void onResult(boolean enabled) {
|
|
324
|
-
// if (enabled) {
|
|
325
|
-
// Appoxee.instance().startGeoFencing();
|
|
326
|
-
// RequestPermissionsTask task2 = new RequestPermissionsTask(getReactApplicationContext(),
|
|
327
|
-
// new RequestPermissionsTask.Callback() {
|
|
328
|
-
// @Override
|
|
329
|
-
// public void onResult(boolean enabled) {
|
|
330
|
-
// if (enabled) {
|
|
331
|
-
// Appoxee.instance().startGeoFencing();
|
|
332
|
-
// }
|
|
333
|
-
// }
|
|
334
|
-
// });
|
|
335
|
-
// task2.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, Manifest.permission.ACCESS_BACKGROUND_LOCATION);
|
|
336
|
-
//
|
|
337
|
-
// }
|
|
338
|
-
// }
|
|
339
|
-
// });
|
|
340
|
-
// task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, Manifest.permission.ACCESS_COARSE_LOCATION, Manifest.permission.ACCESS_FINE_LOCATION);
|
|
341
|
-
// }
|
|
299
|
+
@ReactMethod
|
|
300
|
+
public void stopGeofencing(final Promise promise) {
|
|
301
|
+
Appoxee.instance().stopGeoFencing(new ResultCallback<String>() {
|
|
302
|
+
@Override
|
|
303
|
+
public void onResult(@Nullable String result) {
|
|
304
|
+
promise.resolve(result);
|
|
305
|
+
}
|
|
306
|
+
});
|
|
307
|
+
}
|
|
342
308
|
|
|
309
|
+
/**
|
|
310
|
+
* This method is deprecated in Java. Use method {@link #startGeofencing(ResultCallback)}}
|
|
311
|
+
*/
|
|
312
|
+
@ReactMethod
|
|
313
|
+
@Deprecated()
|
|
314
|
+
public void startGeoFencing() {
|
|
315
|
+
Appoxee.instance().startGeoFencing();
|
|
343
316
|
}
|
|
344
317
|
|
|
318
|
+
/**
|
|
319
|
+
* Deprecated in Java. Use method {@link #stopGeofencing(ResultCallback)}
|
|
320
|
+
*/
|
|
321
|
+
@Deprecated
|
|
345
322
|
@ReactMethod
|
|
346
323
|
public void stopGeoFencing() {
|
|
347
324
|
Appoxee.instance().stopGeoFencing();
|
|
@@ -369,8 +346,6 @@ public class RNMappPluginModule extends ReactContextBaseJavaModule {
|
|
|
369
346
|
promise.resolve(messageToJson(message));
|
|
370
347
|
}
|
|
371
348
|
});
|
|
372
|
-
|
|
373
|
-
|
|
374
349
|
}
|
|
375
350
|
|
|
376
351
|
@ReactMethod
|