@capgo/camera-preview 7.24.7 → 7.24.9
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/README.md
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
<a href="https://capgo.app/"><img src='https://raw.githubusercontent.com/Cap-go/capgo/main/assets/capgo_banner.png' alt='Capgo - Instant updates for capacitor'/></a>
|
|
4
4
|
|
|
5
5
|
<div align="center">
|
|
6
|
-
<h2><a href="https://capgo.app/?ref=
|
|
7
|
-
<h2><a href="https://capgo.app/consulting/?ref=
|
|
6
|
+
<h2><a href="https://capgo.app/?ref=plugin_camera_preview"> ➡️ Get Instant updates for your App with Capgo</a></h2>
|
|
7
|
+
<h2><a href="https://capgo.app/consulting/?ref=plugin_camera_preview"> Missing a feature? We’ll build the plugin for you 💪</a></h2>
|
|
8
8
|
</div>
|
|
9
9
|
|
|
10
10
|
|
|
@@ -63,7 +63,7 @@ import org.json.JSONObject;
|
|
|
63
63
|
)
|
|
64
64
|
public class CameraPreview extends Plugin implements CameraXView.CameraXViewListener {
|
|
65
65
|
|
|
66
|
-
private final String
|
|
66
|
+
private final String pluginVersion = "";
|
|
67
67
|
|
|
68
68
|
@Override
|
|
69
69
|
protected void handleOnPause() {
|
|
@@ -1947,7 +1947,7 @@ public class CameraPreview extends Plugin implements CameraXView.CameraXViewList
|
|
|
1947
1947
|
public void getPluginVersion(final PluginCall call) {
|
|
1948
1948
|
try {
|
|
1949
1949
|
final JSObject ret = new JSObject();
|
|
1950
|
-
ret.put("version", this.
|
|
1950
|
+
ret.put("version", this.pluginVersion);
|
|
1951
1951
|
call.resolve(ret);
|
|
1952
1952
|
} catch (final Exception e) {
|
|
1953
1953
|
call.reject("Could not get plugin version", e);
|
|
@@ -34,7 +34,7 @@ extension UIWindow {
|
|
|
34
34
|
*/
|
|
35
35
|
@objc(CameraPreview)
|
|
36
36
|
public class CameraPreview: CAPPlugin, CAPBridgedPlugin, CLLocationManagerDelegate {
|
|
37
|
-
private let
|
|
37
|
+
private let pluginVersion: String = "7.24.9"
|
|
38
38
|
public let identifier = "CameraPreviewPlugin"
|
|
39
39
|
public let jsName = "CameraPreview"
|
|
40
40
|
public let pluginMethods: [CAPPluginMethod] = [
|
|
@@ -2196,7 +2196,7 @@ public class CameraPreview: CAPPlugin, CAPBridgedPlugin, CLLocationManagerDelega
|
|
|
2196
2196
|
}
|
|
2197
2197
|
|
|
2198
2198
|
@objc func getPluginVersion(_ call: CAPPluginCall) {
|
|
2199
|
-
call.resolve(["version": self.
|
|
2199
|
+
call.resolve(["version": self.pluginVersion])
|
|
2200
2200
|
}
|
|
2201
2201
|
|
|
2202
2202
|
}
|