You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# A tiny script to verify that the MPL submodule points to a valid release,
4
+
# and that this release matches the MPL dependency defined in this repo's gradle projects.
5
+
# Run this script from the root of the repo.
6
+
7
+
# Get the MPL version used in DB-ESDK's build.gradle
8
+
DBESDK_MPL_VERSION=$(cat project.properties | grep "mplDependencyJavaVersion"| sed 's/^.*=//')
9
+
10
+
# Get version from tag of HEAD in MaterialProviders submodule
11
+
cd submodules/MaterialProviders
12
+
MPL_SUBMODULE_VERSION=$(git tag --points-at HEAD | sed 's/v//');
13
+
if [ "$MPL_SUBMODULE_VERSION"=="" ];then
14
+
echo"Invalid MaterialProviders submodule. The submodule must be set to a commit that is tagged as a release.";
15
+
exit 1;
16
+
fi
17
+
18
+
# Validate this version matches the version used in the DB-ESDK's build.gradle
19
+
if [ "$DBESDK_MPL_VERSION"!="$MPL_SUBMODULE_VERSION" ];then
20
+
echo"Invalid MaterialProviders submodule. Mismatch between the submodule version ("$MPL_SUBMODULE_VERSION") and the version of the configured dependency in project.properties ("$DBESDK_MPL_VERSION").";
0 commit comments