@capacitor/camera 8.1.0-test.20260331 → 8.1.0-test.20260401.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.
package/android/build.gradle
CHANGED
|
@@ -89,5 +89,5 @@ dependencies {
|
|
|
89
89
|
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
|
|
90
90
|
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
|
|
91
91
|
implementation 'com.google.code.gson:gson:2.10.1'
|
|
92
|
-
implementation 'io.ionic.libs:ioncamera-android:0.1.0
|
|
92
|
+
implementation 'io.ionic.libs:ioncamera-android:0.1.0'
|
|
93
93
|
}
|
|
@@ -35,6 +35,23 @@ public class CameraPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
35
35
|
private lazy var videoManager = IONCAMRFactory.createVideoManagerWrapper(withDelegate: self, and: self.bridge?.viewController ?? UIViewController())
|
|
36
36
|
|
|
37
37
|
private var imageCounter = 0
|
|
38
|
+
|
|
39
|
+
public override func load() {
|
|
40
|
+
NotificationCenter.default.addObserver(
|
|
41
|
+
self,
|
|
42
|
+
selector: #selector(onAppTerminate),
|
|
43
|
+
name: UIApplication.willTerminateNotification,
|
|
44
|
+
object: nil
|
|
45
|
+
)
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
deinit {
|
|
49
|
+
NotificationCenter.default.removeObserver(self)
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@objc private func onAppTerminate() {
|
|
53
|
+
cameraManager.cleanTemporaryFiles()
|
|
54
|
+
}
|
|
38
55
|
|
|
39
56
|
private func decodeParameters<T: Decodable>(from call: CAPPluginCall) -> T? {
|
|
40
57
|
guard let dict = call.options as? [String: Any],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capacitor/camera",
|
|
3
|
-
"version": "8.1.0-test.
|
|
3
|
+
"version": "8.1.0-test.20260401.1",
|
|
4
4
|
"description": "The Camera API provides the ability to take a photo with the camera or choose an existing one from the photo album.",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|