@capacitor-community/camera-preview 2.1.0 → 3.0.0

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
@@ -9,7 +9,7 @@
9
9
  </p>
10
10
  <br>
11
11
 
12
- Version 2 of this plugin is compatible with Ionic 5+ and Capacitor 3. If your project uses Capacitor 2, please make sure you install [version 1](https://github.com/capacitor-community/camera-preview/releases/tag/v1.2.1) of this plugin.
12
+ Version 2+ of this plugin is compatible with Ionic 5+ and Capacitor 3. If your project uses Capacitor 2, please make sure you install [version 1](https://github.com/capacitor-community/camera-preview/releases/tag/v1.2.1) of this plugin.
13
13
 
14
14
  **PR's are greatly appreciated.**
15
15
 
@@ -45,6 +45,8 @@ npx cap sync
45
45
  ```
46
46
 
47
47
  ## Extra Android installation steps
48
+ **Important** `camera-preview` 3+ requires Gradle 7. If you are using Gradle 4, please use [version 2](https://github.com/capacitor-community/camera-preview/tree/v2.1.0) of this plugin.
49
+
48
50
  Open `android/app/src/main/AndroidManifest.xml` and above the closing `</manifest>` tag add this line to request the CAMERA permission:
49
51
  ```xml
50
52
  <uses-permission android:name="android.permission.CAMERA" />
@@ -1,6 +1,6 @@
1
1
  buildscript {
2
2
  repositories {
3
- jcenter()
3
+ mavenCentral()
4
4
  google()
5
5
  }
6
6
  dependencies {
@@ -32,7 +32,6 @@ android {
32
32
 
33
33
  repositories {
34
34
  google()
35
- jcenter()
36
35
  mavenCentral()
37
36
  }
38
37
 
@@ -40,11 +39,10 @@ repositories {
40
39
  dependencies {
41
40
  implementation fileTree(dir: 'libs', include: ['*.jar'])
42
41
  implementation project(':capacitor-android')
43
- implementation 'androidx.appcompat:appcompat:1.3.0'
42
+ implementation 'com.android.support:appcompat-v7:28.0.0'
44
43
  implementation 'androidx.exifinterface:exifinterface:1.3.2'
45
44
  testImplementation 'junit:junit:4.12'
46
45
  androidTestImplementation 'com.android.support.test:runner:1.0.2'
47
46
  androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
48
- compile 'com.android.support:appcompat-v7:+'
49
47
  }
50
48
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor-community/camera-preview",
3
- "version": "2.1.0",
3
+ "version": "3.0.0",
4
4
  "description": "Camera preview",
5
5
  "main": "dist/esm/index.js",
6
6
  "types": "dist/esm/index.d.ts",