@cuby-ui/ar 0.0.21 → 1.0.1
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.
|
Binary file
|
|
@@ -7,6 +7,7 @@ import android.content.Intent;
|
|
|
7
7
|
import android.util.Log;
|
|
8
8
|
import com.cuby.cubyar.NativeLogger;
|
|
9
9
|
import com.cuby.cubyar.ModelData;
|
|
10
|
+
import com.cuby.cubyar.ReviewSession;
|
|
10
11
|
import com.getcapacitor.JSObject;
|
|
11
12
|
import com.getcapacitor.PermissionState;
|
|
12
13
|
import com.getcapacitor.Plugin;
|
|
@@ -16,6 +17,8 @@ import com.getcapacitor.annotation.CapacitorPlugin;
|
|
|
16
17
|
import com.getcapacitor.annotation.Permission;
|
|
17
18
|
import com.getcapacitor.annotation.PermissionCallback;
|
|
18
19
|
|
|
20
|
+
import org.json.JSONObject;
|
|
21
|
+
|
|
19
22
|
@CapacitorPlugin(name = "NativeBridge", permissions = {
|
|
20
23
|
@Permission(strings = { Manifest.permission.CAMERA }, alias = "camera")
|
|
21
24
|
})
|
|
@@ -62,9 +65,6 @@ public class NativeBridge extends Plugin {
|
|
|
62
65
|
Intent intent = new Intent();
|
|
63
66
|
intent.setClassName(activity.getPackageName(), "com.epicgames.unreal.GameActivity");
|
|
64
67
|
|
|
65
|
-
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
|
66
|
-
intent.addFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);
|
|
67
|
-
|
|
68
68
|
if (intent.resolveActivity(activity.getPackageManager()) != null) {
|
|
69
69
|
activity.startActivity(intent);
|
|
70
70
|
Log.i(LOG_TAG, "Unreal AR activity launched successfully");
|