@bubblewrap/core 1.20.0 → 1.20.1

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.
@@ -19,6 +19,7 @@ exports.ImageHelper = void 0;
19
19
  const path = require("path");
20
20
  const fs = require("fs");
21
21
  const Jimp = require("jimp");
22
+ const plugin_color_1 = require("@jimp/plugin-color");
22
23
  const FetchUtils_1 = require("./FetchUtils");
23
24
  const util_1 = require("util");
24
25
  const svg2img_1 = require("./wrappers/svg2img");
@@ -73,13 +74,13 @@ class ImageHelper {
73
74
  const image = await Jimp.read(icon.data);
74
75
  image.color([
75
76
  // Set all pixels to black/0
76
- { apply: 'red', params: [-255] },
77
- { apply: 'green', params: [-255] },
78
- { apply: 'blue', params: [-255] },
77
+ { apply: plugin_color_1.ColorActionName.RED, params: [-255] },
78
+ { apply: plugin_color_1.ColorActionName.GREEN, params: [-255] },
79
+ { apply: plugin_color_1.ColorActionName.BLUE, params: [-255] },
79
80
  // Add to channels using theme color
80
- { apply: 'red', params: [themeColor.red()] },
81
- { apply: 'green', params: [themeColor.green()] },
82
- { apply: 'blue', params: [themeColor.blue()] },
81
+ { apply: plugin_color_1.ColorActionName.RED, params: [themeColor.red()] },
82
+ { apply: plugin_color_1.ColorActionName.GREEN, params: [themeColor.green()] },
83
+ { apply: plugin_color_1.ColorActionName.BLUE, params: [themeColor.blue()] },
83
84
  ]);
84
85
  return { url: icon.url, data: image };
85
86
  }
@@ -23,8 +23,8 @@ const FirstRunFlagFeature_1 = require("./FirstRunFlagFeature");
23
23
  const Log_1 = require("../Log");
24
24
  const ArCoreFeature_1 = require("./ArCoreFeature");
25
25
  const ANDROID_BROWSER_HELPER_VERSIONS = {
26
- stable: 'com.google.androidbrowserhelper:androidbrowserhelper:2.4.0',
27
- alpha: 'com.google.androidbrowserhelper:androidbrowserhelper:2.4.0',
26
+ stable: 'com.google.androidbrowserhelper:androidbrowserhelper:2.5.0',
27
+ alpha: 'com.google.androidbrowserhelper:androidbrowserhelper:2.5.0',
28
28
  };
29
29
  /**
30
30
  * Analyzes a TwaManifest to collect enable features and aggregates all customizations that will
@@ -20,7 +20,7 @@ const EmptyFeature_1 = require("./EmptyFeature");
20
20
  class PlayBillingFeature extends EmptyFeature_1.EmptyFeature {
21
21
  constructor() {
22
22
  super('playbilling');
23
- this.buildGradle.dependencies.push('com.google.androidbrowserhelper:billing:1.0.0-alpha09');
23
+ this.buildGradle.dependencies.push('com.google.androidbrowserhelper:billing:1.0.0-alpha10');
24
24
  this.androidManifest.components.push(`
25
25
  <activity
26
26
  android:name="com.google.androidbrowserhelper.playbilling.provider.PaymentActivity"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bubblewrap/core",
3
- "version": "1.20.0",
3
+ "version": "1.20.1",
4
4
  "description": "Core Library to generate, build and sign TWA projects",
5
5
  "engines": {
6
6
  "node": ">=14.15.0"
@@ -50,12 +50,12 @@
50
50
  "fetch-h2": "^2.5.1",
51
51
  "googleapis": "^81.0.0",
52
52
  "inquirer": "^7.3.3",
53
- "jimp": "^0.14.0",
53
+ "jimp": "^0.22.7",
54
54
  "lodash.template": "^4.5.0",
55
55
  "mime-types": "^2.1.28",
56
56
  "node-fetch": "^2.6.1",
57
57
  "tar": "^6.1.0",
58
58
  "valid-url": "^1.0.9"
59
59
  },
60
- "gitHead": "8e1716ce14bbc2b06e175753094b7ffccbafd19d"
60
+ "gitHead": "176aee15be2723c805b8f4df505dd4e9d6684025"
61
61
  }