@positron-js/cli 1.0.16 → 1.0.17

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.
@@ -32,7 +32,9 @@ for(const config of configs) {
32
32
  then={(x) => (applicationDisplayVersion = `${x.major}.${x.minor}`, applicationVersion = x.build)}
33
33
  />
34
34
 
35
- <Common.PreBuild />
35
+ <Common.PreBuild
36
+ passphrase={config.passphrase}
37
+ />
36
38
 
37
39
  <FileSystem.MergeJson
38
40
  json={({
@@ -31,7 +31,9 @@ for (const config of configs) {
31
31
  </Batch>}
32
32
  >
33
33
 
34
- <Common.PreBuild/>
34
+ <Common.PreBuild
35
+ passphrase={config.passphrase}
36
+ />
35
37
 
36
38
  <FileSystem.MergeJson
37
39
  json={({
@@ -1,4 +1,4 @@
1
- import { Batch, Run } from "@neurospeech/jex/index.js";
1
+ import { Batch, Encryption, Run } from "@neurospeech/jex/index.js";
2
2
  import { FileSystem } from "@neurospeech/jex/dist/utils/FileSystem.js";
3
3
  import { fileURLToPath } from "url";
4
4
  import { readFile, writeFile } from "fs/promises";
@@ -16,7 +16,9 @@ const ReplaceText = async ({ filePath, replace }) => {
16
16
  };
17
17
 
18
18
  export const Common = {
19
- PreBuild({ env: {
19
+ PreBuild({
20
+ passphrase,
21
+ env: {
20
22
  MAUI_ICON_IOS_COLOR = "#FFFFFF",
21
23
  MAUI_ICON_DROID_COLOR = "#FFFFFF",
22
24
  MAUI_SPLASH_SCREEN_COLOR = "#FFFFFF",
@@ -56,6 +58,13 @@ export const Common = {
56
58
  overwrite={true}
57
59
  />
58
60
 
61
+ <Encryption.Aes256Cbc.Decrypt
62
+ input="./config/google-services.json.enc"
63
+ passphrase={passphrase}
64
+ output="./maui/PositronApp/config/google-services.json"
65
+ />
66
+
67
+
59
68
  <FileSystem.CopyFile
60
69
  src="./res/splash.svg"
61
70
  dest="./maui/PositronApp/Resources/Splash/Splash.svg"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@positron-js/cli",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "description": "Generate Code to create MAUI based Web View App",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -15,7 +15,7 @@
15
15
  "url": "https://github.com/Positron-JS/cli"
16
16
  },
17
17
  "dependencies": {
18
- "@neurospeech/jex": "^1.0.145",
18
+ "@neurospeech/jex": "^1.0.146",
19
19
  "cheerio": "^1.0.0",
20
20
  "commander": "^12.1.0",
21
21
  "prompts": "^2.4.2"
@@ -10,6 +10,8 @@ export default [
10
10
 
11
11
  targetFramework: "net10.0-android",
12
12
 
13
+ passphrase: readEnv("PASSPHRASE"),
14
+
13
15
  androidSdkRoot: readEnv("ANDROID_SDK_ROOT"),
14
16
  javaHome: readEnv("JAVA_HOME_21_X64", readEnv("JAVA_HOME")),
15
17
 
@@ -7,6 +7,8 @@ export default [
7
7
 
8
8
  url: "https://....",
9
9
 
10
+ passphrase: readEnv("PASSPHRASE"),
11
+
10
12
  certPath: "./cert/ios-distribution.p12",
11
13
  certPass: readEnv("APPLE_DISTRIBUTION_CERT_PASS"),
12
14
  provisioningProfileFile: readEnv("MOBILE_PROVISIONING_PROFILE", "./cert/ios-app.mobileprovision"),