Skip to content

Commit a9c1871

Browse files
committed
Replace PermissionHelper.java with cordova-plugin-compat
1 parent 624ddd5 commit a9c1871

File tree

3 files changed

+3
-139
lines changed

3 files changed

+3
-139
lines changed

plugin.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
<repo>https://git-wip-us.apache.org/repos/asf/cordova-plugin-camera.git</repo>
3131
<issue>https://issues.apache.org/jira/browse/CB/component/12320645</issue>
3232

33+
<dependency id="cordova-plugin-compat" version="^1.0.0" />
34+
3335
<js-module src="www/CameraConstants.js" name="Camera">
3436
<clobbers target="Camera" />
3537
</js-module>
@@ -71,7 +73,6 @@
7173
<source-file src="src/android/CameraLauncher.java" target-dir="src/org/apache/cordova/camera" />
7274
<source-file src="src/android/FileHelper.java" target-dir="src/org/apache/cordova/camera" />
7375
<source-file src="src/android/ExifHelper.java" target-dir="src/org/apache/cordova/camera" />
74-
<source-file src="src/android/PermissionHelper.java" target-dir="src/org/apache/cordova/camera" />
7576

7677
<js-module src="www/CameraPopoverHandle.js" name="CameraPopoverHandle">
7778
<clobbers target="CameraPopoverHandle" />

src/android/CameraLauncher.java

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Licensed to the Apache Software Foundation (ASF) under one
3434
import org.apache.cordova.CordovaPlugin;
3535
import org.apache.cordova.CordovaResourceApi;
3636
import org.apache.cordova.LOG;
37+
import org.apache.cordova.PermissionHelper;
3738
import org.apache.cordova.PluginResult;
3839
import org.json.JSONArray;
3940
import org.json.JSONException;

src/android/PermissionHelper.java

-138
This file was deleted.

0 commit comments

Comments
 (0)