@capacitor/android 3.3.4 → 3.4.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/CHANGELOG.md CHANGED
@@ -3,6 +3,38 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.4.2](https://github.com/ionic-team/capacitor/compare/3.4.1...3.4.2) (2022-03-03)
7
+
8
+ **Note:** Version bump only for package @capacitor/android
9
+
10
+
11
+
12
+
13
+
14
+ ## [3.4.1](https://github.com/ionic-team/capacitor/compare/3.4.0...3.4.1) (2022-02-09)
15
+
16
+ **Note:** Version bump only for package @capacitor/android
17
+
18
+
19
+
20
+
21
+
22
+ # [3.4.0](https://github.com/ionic-team/capacitor/compare/3.3.4...3.4.0) (2022-01-19)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * **android:** prevent input file crash if accept has . ([#5363](https://github.com/ionic-team/capacitor/issues/5363)) ([bdacb30](https://github.com/ionic-team/capacitor/commit/bdacb300bb6391dc4b84bb2bab075df993a15cba))
28
+
29
+
30
+ ### Features
31
+
32
+ * **android:** Add getLong helper on PluginCall ([#5235](https://github.com/ionic-team/capacitor/issues/5235)) ([26261fb](https://github.com/ionic-team/capacitor/commit/26261fb49211330c4db72c259359565da7d7bc4b))
33
+
34
+
35
+
36
+
37
+
6
38
  ## [3.3.4](https://github.com/ionic-team/capacitor/compare/3.3.3...3.3.4) (2022-01-05)
7
39
 
8
40
 
@@ -54,8 +54,8 @@ android {
54
54
 
55
55
  repositories {
56
56
  google()
57
- jcenter()
58
57
  mavenCentral()
58
+ jcenter()
59
59
  }
60
60
 
61
61
  dependencies {
@@ -414,7 +414,7 @@ public class BridgeWebChromeClient extends WebChromeClient {
414
414
  if (fileChooserParams.getMode() == FileChooserParams.MODE_OPEN_MULTIPLE) {
415
415
  intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true);
416
416
  }
417
- if (fileChooserParams.getAcceptTypes().length > 1) {
417
+ if (fileChooserParams.getAcceptTypes().length > 1 || intent.getType().startsWith(".")) {
418
418
  String[] validTypes = getValidTypes(fileChooserParams.getAcceptTypes());
419
419
  intent.putExtra(Intent.EXTRA_MIME_TYPES, validTypes);
420
420
  if (intent.getType().startsWith(".")) {
@@ -214,6 +214,24 @@ public class PluginCall {
214
214
  return defaultValue;
215
215
  }
216
216
 
217
+ @Nullable
218
+ public Long getLong(String name) {
219
+ return this.getLong(name, null);
220
+ }
221
+
222
+ @Nullable
223
+ public Long getLong(String name, @Nullable Long defaultValue) {
224
+ Object value = this.data.opt(name);
225
+ if (value == null) {
226
+ return defaultValue;
227
+ }
228
+
229
+ if (value instanceof Long) {
230
+ return (Long) value;
231
+ }
232
+ return defaultValue;
233
+ }
234
+
217
235
  @Nullable
218
236
  public Float getFloat(String name) {
219
237
  return this.getFloat(name, null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor/android",
3
- "version": "3.3.4",
3
+ "version": "3.4.2",
4
4
  "description": "Capacitor: Cross-platform apps with JavaScript and the web",
5
5
  "homepage": "https://capacitorjs.com",
6
6
  "author": "Ionic Team <hi@ionic.io> (https://ionic.io)",
@@ -22,10 +22,10 @@
22
22
  "verify": "./gradlew clean lint build test -b capacitor/build.gradle"
23
23
  },
24
24
  "peerDependencies": {
25
- "@capacitor/core": "^3.3.0"
25
+ "@capacitor/core": "^3.4.0"
26
26
  },
27
27
  "publishConfig": {
28
28
  "access": "public"
29
29
  },
30
- "gitHead": "bf215b19e0c8186a9124491073feb16f3273a2f9"
30
+ "gitHead": "2e4a06b34d664c538ea96dde6be2abea99acb468"
31
31
  }