-
Notifications
You must be signed in to change notification settings - Fork 157
/
.depsvalidator.yml
59 lines (58 loc) · 2.04 KB
/
.depsvalidator.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
---
manifests:
- type: Package.swift
- type: Package.resolved
omit_for:
# Temporarily disabled since we use .binaryTarget instead of SPM dependency for MapboxCoreMaps
- MapboxCoreMaps
- MapboxCommon
- type: Package.resolved
path: Apps/Apps.xcworkspace/xcshareddata/swiftpm/Package.resolved
omit_for:
# Temporarily disabled since we use .binaryTarget instead of SPM dependency for MapboxCoreMaps
- MapboxCoreMaps
- MapboxCommon
- type: Podspec
- type: packager
- type: Cross-check Common SDK version with GL Native
omit_for:
- MapboxCoreMaps
- MapboxCommon
- Turf
dependencies:
- name: MapboxCoreMaps
variations:
Package.swift: mapbox-core-maps-ios
Package.resolved: mapbox-core-maps-ios
- name: MapboxCommon
variations:
Package.swift: mapbox-common-ios
Package.resolved: mapbox-common-ios
- name: Turf
variations:
Package.swift: turf-swift
Package.resolved: turf-swift
manifest_definitions:
- name: packager
type: SemanticVersion
default_path: scripts/release/packager/versions.json
command: jq -r ".$DEPSVALIDATOR_DEPENDENCY_NAME" "$DEPSVALIDATOR_MANIFEST_PATH"
- name: Cross-check Common SDK version with GL Native
type: SemanticVersion
default_path: gl-native-common-version(virtual_manifest)
command: |
set -e
export GITHUB_TOKEN=$(mbx-ci github reader token)
if [[ -z "$GITHUB_TOKEN" ]];
then
exit 1
fi
COREMAPS_VERSION=$(jq -r .MapboxCoreMaps scripts/release/packager/versions.json)
if [[ "$COREMAPS_VERSION" == *"SNAPSHOT"* ]];
then
# take commit hash from a snapshot string, e.g. 11.0.0-SNAPSHOT.1012T1154Z.cad0c70
GL_NATIVE_GITHUB_REF=$(echo "$COREMAPS_VERSION" | cut -d "." -f 5)
else
GL_NATIVE_GITHUB_REF="maps-v$COREMAPS_VERSION"
fi
gh api -H "Accept: application/vnd.github+json" "/repos/mapbox/mapbox-gl-native-internal/contents/common-version.txt?ref=$GL_NATIVE_GITHUB_REF" --jq ".content" | base64 --decode