Merge master and add Readme
This commit is contained in:
commit
e86d440f00
|
@ -55,6 +55,12 @@ And in the package list in the same file (e.g. `getPackages`) add:
|
|||
+ new RNCameraKitPackage()
|
||||
```
|
||||
|
||||
Add to `proguard-rules.pro` file:
|
||||
|
||||
```diff
|
||||
+ -dontwarn com.google.zxing.qrcode.decoder.**
|
||||
```
|
||||
|
||||
## Running the example project
|
||||
|
||||
- ```cd old-example```
|
||||
|
|
|
@ -37,8 +37,11 @@ public class CameraPermission {
|
|||
}
|
||||
|
||||
private boolean isCameraPermission(int requestCode, String[] permissions) {
|
||||
return requestCode == CAMERA_PERMISSION_REQUEST_CODE &&
|
||||
Manifest.permission.CAMERA.equals(permissions[0]);
|
||||
if (permissions.length > 0) {
|
||||
return requestCode == CAMERA_PERMISSION_REQUEST_CODE &&
|
||||
Manifest.permission.CAMERA.equals(permissions[0]);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public int checkAuthorizationStatus(Activity activity) {
|
||||
|
|
Loading…
Reference in New Issue