@o3r/mobile 12.2.5 → 12.2.8
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@o3r/mobile",
|
|
3
|
-
"version": "12.2.
|
|
3
|
+
"version": "12.2.8",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -41,13 +41,14 @@
|
|
|
41
41
|
"@capacitor/device": "^7.0.0",
|
|
42
42
|
"@capacitor/preferences": "^7.0.0",
|
|
43
43
|
"@ngrx/store": "^19.0.0",
|
|
44
|
-
"@o3r/core": "^12.2.
|
|
45
|
-
"@o3r/logger": "^12.2.
|
|
46
|
-
"@o3r/schematics": "^12.2.
|
|
47
|
-
"@o3r/store-sync": "^12.2.
|
|
44
|
+
"@o3r/core": "^12.2.8",
|
|
45
|
+
"@o3r/logger": "^12.2.8",
|
|
46
|
+
"@o3r/schematics": "^12.2.8",
|
|
47
|
+
"@o3r/store-sync": "^12.2.8",
|
|
48
48
|
"@schematics/angular": "^19.0.0",
|
|
49
49
|
"fast-deep-equal": "^3.1.3",
|
|
50
|
-
"rxjs": "^7.8.1"
|
|
50
|
+
"rxjs": "^7.8.1",
|
|
51
|
+
"type-fest": "^4.30.1"
|
|
51
52
|
},
|
|
52
53
|
"peerDependenciesMeta": {
|
|
53
54
|
"@angular-devkit/schematics": {
|
|
@@ -58,6 +59,9 @@
|
|
|
58
59
|
},
|
|
59
60
|
"@schematics/angular": {
|
|
60
61
|
"optional": true
|
|
62
|
+
},
|
|
63
|
+
"type-fest": {
|
|
64
|
+
"optional": true
|
|
61
65
|
}
|
|
62
66
|
},
|
|
63
67
|
"engines": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,IAAI,EACL,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,IAAI,EACL,MAAM,4BAA4B,CAAC;AAIpC,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,UAAU,CAAC;AAwFlB;;;GAGG;AACH,eAAO,MAAM,KAAK,GAAI,SAAS,qBAAqB,KAAG,IAKtD,CAAC"}
|
|
@@ -4,6 +4,24 @@ exports.ngAdd = void 0;
|
|
|
4
4
|
const path = require("node:path");
|
|
5
5
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
6
|
const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json');
|
|
7
|
+
/**
|
|
8
|
+
* List of external dependencies to be added to the project as peer dependencies
|
|
9
|
+
*/
|
|
10
|
+
const dependenciesToInstall = [
|
|
11
|
+
'@angular/common',
|
|
12
|
+
'@angular/core',
|
|
13
|
+
'@capacitor/browser',
|
|
14
|
+
'@capacitor/core',
|
|
15
|
+
'@capacitor/device',
|
|
16
|
+
'@capacitor/preferences',
|
|
17
|
+
'@ngrx/store',
|
|
18
|
+
'fast-deep-equal',
|
|
19
|
+
'rxjs'
|
|
20
|
+
];
|
|
21
|
+
/**
|
|
22
|
+
* List of external dependencies to be added to the project as dev dependencies
|
|
23
|
+
*/
|
|
24
|
+
const devDependenciesToInstall = [];
|
|
7
25
|
const reportMissingSchematicsDep = (logger) => (reason) => {
|
|
8
26
|
logger.error(`[ERROR]: Adding @o3r/mobile has failed.
|
|
9
27
|
If the error is related to missing @o3r dependencies you need to install '@o3r/core' to be able to use the mobile package. Please run 'ng add @o3r/core' .
|
|
@@ -16,10 +34,12 @@ Otherwise, use the error message as guidance.`);
|
|
|
16
34
|
*/
|
|
17
35
|
function ngAddFn(options) {
|
|
18
36
|
/* ng add rules */
|
|
19
|
-
return async (tree) => {
|
|
20
|
-
const { getPackageInstallConfig, getProjectNewDependenciesTypes, setupDependencies, getO3rPeerDeps, getWorkspaceConfig, removePackages } = await Promise.resolve().then(() => require('@o3r/schematics'));
|
|
37
|
+
return async (tree, context) => {
|
|
38
|
+
const { getExternalDependenciesInfo, getPackageInstallConfig, getProjectNewDependenciesTypes, setupDependencies, getO3rPeerDeps, getWorkspaceConfig, removePackages } = await Promise.resolve().then(() => require('@o3r/schematics'));
|
|
21
39
|
const depsInfo = getO3rPeerDeps(path.resolve(__dirname, '..', '..', 'package.json'));
|
|
22
40
|
const workspaceProject = options.projectName ? getWorkspaceConfig(tree)?.projects[options.projectName] : undefined;
|
|
41
|
+
const projectDirectory = workspaceProject?.root || '.';
|
|
42
|
+
const projectPackageJson = tree.readJson(path.posix.join(projectDirectory, 'package.json'));
|
|
23
43
|
const dependencies = depsInfo.o3rPeerDeps.reduce((acc, dep) => {
|
|
24
44
|
acc[dep] = {
|
|
25
45
|
inManifest: [{
|
|
@@ -30,11 +50,21 @@ function ngAddFn(options) {
|
|
|
30
50
|
};
|
|
31
51
|
return acc;
|
|
32
52
|
}, getPackageInstallConfig(packageJsonPath, tree, options.projectName, false, !!options.exactO3rVersion));
|
|
53
|
+
const externalDependenciesInfo = getExternalDependenciesInfo({
|
|
54
|
+
devDependenciesToInstall,
|
|
55
|
+
dependenciesToInstall,
|
|
56
|
+
projectType: workspaceProject?.projectType,
|
|
57
|
+
projectPackageJson,
|
|
58
|
+
o3rPackageJsonPath: packageJsonPath
|
|
59
|
+
}, context.logger);
|
|
33
60
|
return (0, schematics_1.chain)([
|
|
34
61
|
removePackages(['@otter/mobile']),
|
|
35
62
|
setupDependencies({
|
|
36
63
|
projectName: options.projectName,
|
|
37
|
-
dependencies
|
|
64
|
+
dependencies: {
|
|
65
|
+
...dependencies,
|
|
66
|
+
...externalDependenciesInfo
|
|
67
|
+
},
|
|
38
68
|
ngAddToRun: depsInfo.o3rPeerDeps
|
|
39
69
|
})
|
|
40
70
|
]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":";;;AAAA,kCAAkC;AAClC,2DAGoC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":";;;AAAA,kCAAkC;AAClC,2DAGoC;AAQpC,MAAM,eAAe,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;AAC5E;;GAEG;AACH,MAAM,qBAAqB,GAAG;IAC5B,iBAAiB;IACjB,eAAe;IACf,oBAAoB;IACpB,iBAAiB;IACjB,mBAAmB;IACnB,wBAAwB;IACxB,aAAa;IACb,iBAAiB;IACjB,MAAM;CACP,CAAC;AAEF;;GAEG;AACH,MAAM,wBAAwB,GAAa,EAE0C,CAAC;AAEtF,MAAM,0BAA0B,GAAG,CAAC,MAA2C,EAAE,EAAE,CAAC,CAAC,MAAW,EAAE,EAAE;IAClG,MAAM,CAAC,KAAK,CAAC;;8CAE+B,CAAC,CAAC;IAC9C,MAAM,MAAM,CAAC;AACf,CAAC,CAAC;AAEF;;;GAGG;AACH,SAAS,OAAO,CAAC,OAA8B;IAC7C,kBAAkB;IAClB,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;QAC7B,MAAM,EACJ,2BAA2B,EAC3B,uBAAuB,EACvB,8BAA8B,EAC9B,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,cAAc,EACf,GAAG,2CAAa,iBAAiB,EAAC,CAAC;QACpC,MAAM,QAAQ,GAAG,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC;QACrF,MAAM,gBAAgB,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,WAAW,CAAC,CA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