@nativescript-community/ui-massifmaps 5.1.1 → 5.1.3
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,14 @@
|
|
|
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
|
+
## [5.1.3](https://github.com/nativescript-community/ui-massifmaps/compare/v5.1.2...v5.1.3) (2026-11-26)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @nativescript-community/ui-massifmaps
|
|
9
|
+
|
|
10
|
+
## [5.1.2](https://github.com/nativescript-community/ui-massifmaps/compare/v5.1.1...v5.1.2) (2026-11-26)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @nativescript-community/ui-massifmaps
|
|
13
|
+
|
|
6
14
|
## [5.1.1](https://github.com/nativescript-community/ui-massifmaps/compare/v5.1.0...v5.1.1) (2026-11-13)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @nativescript-community/ui-massifmaps
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nativescript-community/ui-massifmaps",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.3",
|
|
4
4
|
"description": "NativeScript plugin for MassifMaps SDK",
|
|
5
5
|
"main": "index",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"readme": "readme generate -c ../../tools/readme/blueprint.json",
|
|
12
12
|
"tsc": "cpy '**/*.d.ts' '../../packages/ui-massifmaps' --parents --cwd=../../src/ui-massifmaps && tsc --build",
|
|
13
13
|
"clean": "bin/rimraf ./*.d.ts ./*.js ./*.js.map ./*.tsbuildinfo ./*.mjs ./*.mjs.map ./angular ./svelte ./vue* ./react",
|
|
14
|
-
"postinstall": "node ios-dev/postinstall.js",
|
|
15
|
-
"preuninstall": "node ios-dev/preuninstall.js"
|
|
14
|
+
"postinstall": "node platforms/ios/ios-dev/postinstall.js",
|
|
15
|
+
"preuninstall": "node platforms/ios/ios-dev/preuninstall.js"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@massif-maps/typings": "^6.5.0",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"publishConfig": {
|
|
62
62
|
"access": "public"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "0c985fe5ae0a21ae93cadeb88323fb9ee4eaccd1"
|
|
65
65
|
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* iOS counterpart of android's DEBUGMASSIF=1: build the Massif SDK from source before the prepare,
|
|
3
|
+
* into build/spm-local, the folder nativescript.config.ts links when DEBUGMASSIF is set.
|
|
4
|
+
*
|
|
5
|
+
* DEBUGMASSIF=1 ns run ios
|
|
6
|
+
*
|
|
7
|
+
* MASSIF_SDK_HOME is the SDK checkout (as on android). MASSIF_IOS_TARGET forces simulator, device or catalyst
|
|
8
|
+
* (comma separated to build several). Without it, `--device` in the command line means device, else simulator.
|
|
9
|
+
* Incremental: a no-op xcodebuild when no SDK source changed. Skipped in CI.
|
|
10
|
+
*/
|
|
11
|
+
const path = require('path');
|
|
12
|
+
const fs = require('fs');
|
|
13
|
+
const { spawnSync } = require('child_process');
|
|
14
|
+
|
|
15
|
+
const DEFAULT_SDK_HOME = '/Volumes/dev/massif/massif-sdk';
|
|
16
|
+
|
|
17
|
+
function massifTargets(env, argv) {
|
|
18
|
+
if (!env.DEBUGMASSIF || env.CI) {
|
|
19
|
+
return [];
|
|
20
|
+
}
|
|
21
|
+
if (env.MASSIF_IOS_TARGET) {
|
|
22
|
+
return env.MASSIF_IOS_TARGET.split(',').map((target) => target.trim()).filter(Boolean);
|
|
23
|
+
}
|
|
24
|
+
return argv.some((arg) => arg === '--device' || arg === '--for-device' || arg === '--forDevice') ? ['device'] : ['simulator'];
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
module.exports = function ($logger, projectData, injector, hookArgs) {
|
|
28
|
+
const platformName = (
|
|
29
|
+
(hookArgs && hookArgs.platformData && hookArgs.platformData.normalizedPlatformName) ||
|
|
30
|
+
(hookArgs && hookArgs.checkForChangesOpts && hookArgs.checkForChangesOpts.platform) ||
|
|
31
|
+
''
|
|
32
|
+
).toLowerCase();
|
|
33
|
+
const targets = platformName === 'ios' ? massifTargets(process.env, process.argv) : [];
|
|
34
|
+
if (!targets.length) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
const sdkHome = process.env.MASSIF_SDK_HOME || DEFAULT_SDK_HOME;
|
|
39
|
+
const script = path.join(sdkHome, 'scripts', 'ios-dev', 'build-plugin-spm.sh');
|
|
40
|
+
if (!fs.existsSync(script)) {
|
|
41
|
+
throw new Error(`massif: DEBUGMASSIF is set but ${script} does not exist - set MASSIF_SDK_HOME to the SDK checkout`);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
for (const target of targets) {
|
|
45
|
+
$logger.info(`massif: building the SDK from source for ${target}`);
|
|
46
|
+
const result = spawnSync(script, [target], { cwd: path.dirname(script), stdio: 'inherit' });
|
|
47
|
+
|
|
48
|
+
// A failed SDK build must fail the app build: linking the previous binary means debugging stale code.
|
|
49
|
+
if (result.error) {
|
|
50
|
+
throw new Error(`massif: could not run ${script}: ${result.error.message}`);
|
|
51
|
+
}
|
|
52
|
+
if (result.status !== 0) {
|
|
53
|
+
throw new Error(`massif: SDK build failed for ${target} (exit ${result.status})`);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
module.exports.massifTargets = massifTargets;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require('@nativescript/hook')(require('path').join(__dirname, '..', '..', '..')).postinstall();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require('@nativescript/hook')(require('path').join(__dirname, '..', '..', '..')).preuninstall();
|