@capgo/capacitor-flash 1.2.27 → 2.0.2

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
@@ -49,12 +49,12 @@ Works out of the box
49
49
  ### isAvailable()
50
50
 
51
51
  ```typescript
52
- isAvailable() => Promise<{ value: boolean; }>
52
+ isAvailable() => any
53
53
  ```
54
54
 
55
55
  Checks if flashlight is available
56
56
 
57
- **Returns:** <code>Promise&lt;{ value: boolean; }&gt;</code>
57
+ **Returns:** <code>any</code>
58
58
 
59
59
  --------------------
60
60
 
@@ -62,7 +62,7 @@ Checks if flashlight is available
62
62
  ### switchOn(...)
63
63
 
64
64
  ```typescript
65
- switchOn(options: { intensity?: number; }) => Promise<void>
65
+ switchOn(options: { intensity?: number; }) => any
66
66
  ```
67
67
 
68
68
  Turns the flashlight on
@@ -71,29 +71,33 @@ Turns the flashlight on
71
71
  | ------------- | ------------------------------------ |
72
72
  | **`options`** | <code>{ intensity?: number; }</code> |
73
73
 
74
+ **Returns:** <code>any</code>
75
+
74
76
  --------------------
75
77
 
76
78
 
77
79
  ### switchOff()
78
80
 
79
81
  ```typescript
80
- switchOff() => Promise<void>
82
+ switchOff() => any
81
83
  ```
82
84
 
83
85
  Turns the flashlight off
84
86
 
87
+ **Returns:** <code>any</code>
88
+
85
89
  --------------------
86
90
 
87
91
 
88
92
  ### isSwitchedOn()
89
93
 
90
94
  ```typescript
91
- isSwitchedOn() => Promise<{ value: boolean; }>
95
+ isSwitchedOn() => any
92
96
  ```
93
97
 
94
98
  Checks if the flashlight is turned on or off
95
99
 
96
- **Returns:** <code>Promise&lt;{ value: boolean; }&gt;</code>
100
+ **Returns:** <code>any</code>
97
101
 
98
102
  --------------------
99
103
 
@@ -101,12 +105,12 @@ Checks if the flashlight is turned on or off
101
105
  ### toggle()
102
106
 
103
107
  ```typescript
104
- toggle() => Promise<{ value: boolean; }>
108
+ toggle() => any
105
109
  ```
106
110
 
107
111
  Toggle the flashlight
108
112
 
109
- **Returns:** <code>Promise&lt;{ value: boolean; }&gt;</code>
113
+ **Returns:** <code>any</code>
110
114
 
111
115
  --------------------
112
116
 
@@ -1,8 +1,8 @@
1
1
  ext {
2
- junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
3
- androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.3'
4
- androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.4.0'
5
- androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.4.2'
2
+ junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
3
+ androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.5'
4
+ androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.5.1'
5
+ androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.6.1'
6
6
  }
7
7
 
8
8
  buildscript {
@@ -11,17 +11,18 @@ buildscript {
11
11
  google()
12
12
  }
13
13
  dependencies {
14
- classpath 'com.android.tools.build:gradle:7.3.1'
14
+ classpath 'com.android.tools.build:gradle:8.0.0'
15
15
  }
16
16
  }
17
17
 
18
18
  apply plugin: 'com.android.library'
19
19
 
20
20
  android {
21
- compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 32
21
+ namespace "ee.forgr.plugin.capacitor_flash"
22
+ compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 33
22
23
  defaultConfig {
23
24
  minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22
24
- targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 32
25
+ targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 33
25
26
  versionCode 1
26
27
  versionName "1.0"
27
28
  testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -36,8 +37,8 @@ android {
36
37
  abortOnError false
37
38
  }
38
39
  compileOptions {
39
- sourceCompatibility JavaVersion.VERSION_1_8
40
- targetCompatibility JavaVersion.VERSION_1_8
40
+ sourceCompatibility JavaVersion.VERSION_17
41
+ targetCompatibility JavaVersion.VERSION_17
41
42
  }
42
43
  }
43
44
 
@@ -1,3 +1,3 @@
1
1
  <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
- package="ee.forgr.plugin.capacitor_flash">
2
+ >
3
3
  </manifest>
package/dist/docs.json CHANGED
@@ -7,9 +7,9 @@
7
7
  "methods": [
8
8
  {
9
9
  "name": "isAvailable",
10
- "signature": "() => Promise<{ value: boolean; }>",
10
+ "signature": "() => any",
11
11
  "parameters": [],
12
- "returns": "Promise<{ value: boolean; }>",
12
+ "returns": "any",
13
13
  "tags": [
14
14
  {
15
15
  "name": "returns",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  {
24
24
  "name": "switchOn",
25
- "signature": "(options: { intensity?: number; }) => Promise<void>",
25
+ "signature": "(options: { intensity?: number; }) => any",
26
26
  "parameters": [
27
27
  {
28
28
  "name": "options",
@@ -30,7 +30,7 @@
30
30
  "type": "{ intensity?: number | undefined; }"
31
31
  }
32
32
  ],
33
- "returns": "Promise<void>",
33
+ "returns": "any",
34
34
  "tags": [
35
35
  {
36
36
  "name": "returns",
@@ -47,9 +47,9 @@
47
47
  },
48
48
  {
49
49
  "name": "switchOff",
50
- "signature": "() => Promise<void>",
50
+ "signature": "() => any",
51
51
  "parameters": [],
52
- "returns": "Promise<void>",
52
+ "returns": "any",
53
53
  "tags": [
54
54
  {
55
55
  "name": "rejects",
@@ -62,9 +62,9 @@
62
62
  },
63
63
  {
64
64
  "name": "isSwitchedOn",
65
- "signature": "() => Promise<{ value: boolean; }>",
65
+ "signature": "() => any",
66
66
  "parameters": [],
67
- "returns": "Promise<{ value: boolean; }>",
67
+ "returns": "any",
68
68
  "tags": [
69
69
  {
70
70
  "name": "returns",
@@ -77,9 +77,9 @@
77
77
  },
78
78
  {
79
79
  "name": "toggle",
80
- "signature": "() => Promise<{ value: boolean; }>",
80
+ "signature": "() => any",
81
81
  "parameters": [],
82
- "returns": "Promise<{ value: boolean; }>",
82
+ "returns": "any",
83
83
  "tags": [
84
84
  {
85
85
  "name": "returns",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-flash",
3
- "version": "1.2.27",
3
+ "version": "2.0.2",
4
4
  "description": "Switch the Flashlight / Torch of your device.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -47,28 +47,28 @@
47
47
  "prepublishOnly": "npm run build"
48
48
  },
49
49
  "devDependencies": {
50
- "@capacitor/android": "^4.4.0",
51
- "@capacitor/cli": "^4.4.0",
52
- "@capacitor/core": "^4.4.0",
53
- "@capacitor/docgen": "^0.2.0",
54
- "@capacitor/ios": "^4.4.0",
50
+ "@capacitor/android": "^5.0.3",
51
+ "@capacitor/cli": "^5.0.3",
52
+ "@capacitor/core": "^5.0.3",
53
+ "@capacitor/docgen": "^0.2.1",
54
+ "@capacitor/ios": "^5.0.3",
55
55
  "@ionic/eslint-config": "^0.3.0",
56
- "@ionic/prettier-config": "^2.0.0",
56
+ "@ionic/prettier-config": "^3.0.0",
57
57
  "@ionic/swiftlint-config": "^1.1.2",
58
- "@typescript-eslint/eslint-plugin": "^5.42.1",
59
- "@typescript-eslint/parser": "^5.42.1",
60
- "eslint": "^8.27.0",
61
- "eslint-plugin-import": "^2.26.0",
62
- "husky": "^8.0.2",
63
- "prettier": "^2.7.1",
64
- "prettier-plugin-java": "^2.0.0",
65
- "rimraf": "^3.0.2",
66
- "rollup": "^3.2.5",
67
- "swiftlint": "^1.0.1",
68
- "typescript": "^4.8.4"
58
+ "@typescript-eslint/eslint-plugin": "^5.59.6",
59
+ "@typescript-eslint/parser": "^5.59.6",
60
+ "eslint": "^8.41.0",
61
+ "eslint-plugin-import": "^2.27.5",
62
+ "husky": "^8.0.3",
63
+ "prettier": "^2.8.8",
64
+ "prettier-plugin-java": "^2.1.0",
65
+ "rimraf": "^5.0.1",
66
+ "rollup": "^3.23.0",
67
+ "swiftlint": "^1.0.2",
68
+ "typescript": "^5.0.4"
69
69
  },
70
70
  "peerDependencies": {
71
- "@capacitor/core": "^4.0.0"
71
+ "@capacitor/core": "^5.0.0"
72
72
  },
73
73
  "prettier": "@ionic/prettier-config",
74
74
  "swiftlint": "@ionic/swiftlint-config",