Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions code_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ declare -a SUBMODULES_REPO=(
);

# APP-ANDROID (OLD REPO)
if [[ $GIT_PROJECT_NAME == *"-gradle"* ]]; then # OLD REPO
if [[ "$GIT_PROJECT_NAME" == *"-gradle"* ]]; then # OLD REPO
SUBMODULES+=('app-android');
if [[ $PROJECT_NAME == *android ]]; then
SUBMODULES_REPO+=($PROJECT_NAME);
Expand All @@ -83,7 +83,7 @@ else
echo "> Bus/Train/... android app: '$PROJECT_NAME' > parser required";
SUBMODULES+=('parser');
SUBMODULES_REPO+=('parser');
if [[ $GIT_PROJECT_NAME == *"-gradle"* ]]; then # OLD REPO
if [[ "$GIT_PROJECT_NAME" == *"-gradle"* ]]; then # OLD REPO
SUBMODULES+=('agency-parser');
SUBMODULES_REPO+=("${PROJECT_NAME}-parser");
else
Expand Down
4 changes: 2 additions & 2 deletions shared-overwrite/submodules_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ declare -a SUBMODULES=(
"commons-java"
"commons-android"
);
if [[ $GIT_PROJECT_NAME == *"-gradle"* ]]; then # OLD REPO
if [[ "$GIT_PROJECT_NAME" == *"-gradle"* ]]; then # OLD REPO
SUBMODULES+=('app-android'); # OLD REPO
fi
if [[ -d "parser" ]]; then
SUBMODULES+=('parser');
if [[ $GIT_PROJECT_NAME == *"-gradle"* ]]; then # OLD REPO
if [[ "$GIT_PROJECT_NAME" == *"-gradle"* ]]; then # OLD REPO
SUBMODULES+=('agency-parser'); # OLD REPO
fi
fi
Expand Down
9 changes: 6 additions & 3 deletions shared/app-android/promote_from_alpha_to_private_beta.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ if [[ ${MT_PUSH_STORE_BETA_PRIVATE_ENABLED} != true ]]; then
fi
echo "> Push to Store Beta Private enabled...";

setGitProjectName $SCRIPT_DIR/../;
setGitProjectName "${SCRIPT_DIR}/../";
CONFIG_PATH="$SCRIPT_DIR/../config";
if [[ $GIT_PROJECT_NAME == *"-gradle"* ]]; then # OLD REPO
if [[ "$GIT_PROJECT_NAME" == *"-gradle"* ]]; then # OLD REPO
CONFIG_PATH="$SCRIPT_DIR/config";
fi

Expand All @@ -28,4 +28,7 @@ if [[ ! -f "$CONFIG_PATH/store/beta-private" ]]; then
exit 1; # error
fi

./promote.sh --from-track alpha --release-status completed;
./promote.sh \
--from-track alpha \
--release-status completed \
;
9 changes: 6 additions & 3 deletions shared/app-android/promote_from_internal_to_alpha.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ if [[ ${MT_PUSH_STORE_ALPHA_ENABLED} != true ]]; then
fi
echo "> Push to Store Alpha enabled...";

setGitProjectName $SCRIPT_DIR/../;
setGitProjectName "${SCRIPT_DIR}/../";
CONFIG_PATH="$SCRIPT_DIR/../config";
if [[ $GIT_PROJECT_NAME == *"-gradle"* ]]; then # OLD REPO
if [[ "$GIT_PROJECT_NAME" == *"-gradle"* ]]; then # OLD REPO
CONFIG_PATH="$SCRIPT_DIR/config";
fi

Expand All @@ -27,4 +27,7 @@ if [[ ! -f "$CONFIG_PATH/store/alpha" ]]; then
exit 1; # error
fi

./promote.sh --from-track internal --promote-track alpha --release-status completed;
./promote.sh \
--from-track internal --promote-track alpha \
--release-status completed \
;
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ if [[ ${MT_PUSH_STORE_PRODUCTION_ENABLED} != true ]]; then
fi
echo "> Push to Store Production enabled...";

setGitProjectName $SCRIPT_DIR/../;
setGitProjectName "${SCRIPT_DIR}/../";
CONFIG_PATH="$SCRIPT_DIR/../config";
if [[ $GIT_PROJECT_NAME == *"-gradle"* ]]; then # OLD REPO
if [[ "$GIT_PROJECT_NAME" == *"-gradle"* ]]; then # OLD REPO
CONFIG_PATH="$SCRIPT_DIR/config";
fi

Expand All @@ -28,4 +28,7 @@ if [[ ! -f "$CONFIG_PATH/store/production" ]]; then
exit 1; # error
fi

./promote.sh --promote-track production --user-fraction 0.01 --release-status inProgress;
./promote.sh \
--promote-track production \
--release-status inProgress --user-fraction 0.01 \
; # --from-track "Beta (Private)" # default from build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ if [[ ${MT_PUSH_STORE_PRODUCTION_ENABLED} != true ]]; then
fi
echo "> Push to Store Production enabled...";

setGitProjectName $SCRIPT_DIR/../;
setGitProjectName "${SCRIPT_DIR}/../";
CONFIG_PATH="$SCRIPT_DIR/../config";
if [[ $GIT_PROJECT_NAME == *"-gradle"* ]]; then # OLD REPO
if [[ "$GIT_PROJECT_NAME" == *"-gradle"* ]]; then # OLD REPO
CONFIG_PATH="$SCRIPT_DIR/config";
fi

Expand All @@ -28,4 +28,7 @@ if [[ ! -f "$CONFIG_PATH/store/production" ]]; then
exit 1; # error
fi

./promote.sh --promote-track production --user-fraction 0.10 --release-status inProgress;
./promote.sh \
--promote-track production \
--release-status inProgress --user-fraction 0.10 \
; # --from-track "Beta (Private)" # default from build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ if [[ ${MT_PUSH_STORE_PRODUCTION_ENABLED} != true ]]; then
fi
echo "> Push to Store Production enabled...";

setGitProjectName $SCRIPT_DIR/../;
setGitProjectName "${SCRIPT_DIR}/../";
CONFIG_PATH="$SCRIPT_DIR/../config";
if [[ $GIT_PROJECT_NAME == *"-gradle"* ]]; then # OLD REPO
if [[ "$GIT_PROJECT_NAME" == *"-gradle"* ]]; then # OLD REPO
CONFIG_PATH="$SCRIPT_DIR/config";
fi

Expand All @@ -28,4 +28,7 @@ if [[ ! -f "$CONFIG_PATH/store/production" ]]; then
exit 1; # error
fi

./promote.sh --promote-track production --user-fraction 0.25 --release-status inProgress;
./promote.sh \
--promote-track production \
--release-status inProgress --user-fraction 0.25 \
; # --from-track "Beta (Private)" # default from build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ if [[ ${MT_PUSH_STORE_PRODUCTION_ENABLED} != true ]]; then
fi
echo "> Push to Store Production enabled...";

setGitProjectName $SCRIPT_DIR/../;
setGitProjectName "${SCRIPT_DIR}/../";
CONFIG_PATH="$SCRIPT_DIR/../config";
if [[ $GIT_PROJECT_NAME == *"-gradle"* ]]; then # OLD REPO
if [[ "$GIT_PROJECT_NAME" == *"-gradle"* ]]; then # OLD REPO
CONFIG_PATH="$SCRIPT_DIR/config";
fi

Expand All @@ -28,4 +28,7 @@ if [[ ! -f "$CONFIG_PATH/store/production" ]]; then
exit 1; # error
fi

./promote.sh --promote-track production --user-fraction 0.33 --release-status inProgress;
./promote.sh \
--promote-track production \
--release-status inProgress --user-fraction 0.33 \
; # --from-track "Beta (Private)" # default from build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ if [[ ${MT_PUSH_STORE_PRODUCTION_ENABLED} != true ]]; then
fi
echo "> Push to Store Production enabled...";

setGitProjectName $SCRIPT_DIR/../;
setGitProjectName "${SCRIPT_DIR}/../";
CONFIG_PATH="$SCRIPT_DIR/../config";
if [[ $GIT_PROJECT_NAME == *"-gradle"* ]]; then # OLD REPO
if [[ "$GIT_PROJECT_NAME" == *"-gradle"* ]]; then # OLD REPO
CONFIG_PATH="$SCRIPT_DIR/config";
fi

Expand All @@ -28,4 +28,7 @@ if [[ ! -f "$CONFIG_PATH/store/production" ]]; then
exit 1; # error
fi

./promote.sh --promote-track production --user-fraction 1.00 --release-status completed;
./promote.sh \
--promote-track production \
--release-status completed --user-fraction 1.00 \
; # --from-track "Beta (Private)" # default from build.gradle
10 changes: 7 additions & 3 deletions shared/app-android/promote_from_production_to_production_010.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ if [[ ${MT_PUSH_STORE_PRODUCTION_ENABLED} != true ]]; then
fi
echo "> Push to Store Production enabled...";

setGitProjectName $SCRIPT_DIR/../;
setGitProjectName "${SCRIPT_DIR}/../";
CONFIG_PATH="$SCRIPT_DIR/../config";
if [[ $GIT_PROJECT_NAME == *"-gradle"* ]]; then # OLD REPO
if [[ "$GIT_PROJECT_NAME" == *"-gradle"* ]]; then # OLD REPO
CONFIG_PATH="$SCRIPT_DIR/config";
fi

Expand All @@ -27,4 +27,8 @@ if [[ ! -f "$CONFIG_PATH/store/production" ]]; then
exit 1; # error
fi

./promote.sh --from-track production --promote-track production --update production --user-fraction 0.10 --release-status inProgress;
./promote.sh \
--from-track production --promote-track production \
--update production \
--release-status inProgress --user-fraction 0.10 \
;
10 changes: 7 additions & 3 deletions shared/app-android/promote_from_production_to_production_025.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ if [[ ${MT_PUSH_STORE_PRODUCTION_ENABLED} != true ]]; then
fi
echo "> Push to Store Production enabled...";

setGitProjectName $SCRIPT_DIR/../;
setGitProjectName "${SCRIPT_DIR}/../";
CONFIG_PATH="$SCRIPT_DIR/../config";
if [[ $GIT_PROJECT_NAME == *"-gradle"* ]]; then # OLD REPO
if [[ "$GIT_PROJECT_NAME" == *"-gradle"* ]]; then # OLD REPO
CONFIG_PATH="$SCRIPT_DIR/config";
fi

Expand All @@ -27,4 +27,8 @@ if [[ ! -f "$CONFIG_PATH/store/production" ]]; then
exit 1; # error
fi

./promote.sh --from-track production --promote-track production --update production --user-fraction 0.25 --release-status inProgress;
./promote.sh \
--from-track production --promote-track production \
--update production \
--release-status inProgress --user-fraction 0.25 \
;
10 changes: 7 additions & 3 deletions shared/app-android/promote_from_production_to_production_033.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ if [[ ${MT_PUSH_STORE_PRODUCTION_ENABLED} != true ]]; then
fi
echo "> Push to Store Production enabled...";

setGitProjectName $SCRIPT_DIR/../;
setGitProjectName "${SCRIPT_DIR}/../";
CONFIG_PATH="$SCRIPT_DIR/../config";
if [[ $GIT_PROJECT_NAME == *"-gradle"* ]]; then # OLD REPO
if [[ "$GIT_PROJECT_NAME" == *"-gradle"* ]]; then # OLD REPO
CONFIG_PATH="$SCRIPT_DIR/config";
fi

Expand All @@ -27,4 +27,8 @@ if [[ ! -f "$CONFIG_PATH/store/production" ]]; then
exit 1; # error
fi

./promote.sh --from-track production --promote-track production --update production --user-fraction 0.33 --release-status inProgress;
./promote.sh \
--from-track production --promote-track production \
--update production \
--release-status inProgress --user-fraction 0.33 \
;
34 changes: 34 additions & 0 deletions shared/app-android/promote_from_production_to_production_050.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/bin/bash
SCRIPT_DIR="$(dirname "$0")";
source "${SCRIPT_DIR}"/../commons/commons.sh;

setPushToStoreEnabled;
if [[ ${MT_PUSH_STORE_ENABLED} != true ]]; then
echo "> Push to Store NOT enabled... SKIP ($MT_PUSH_STORE_ENABLED)";
exit 1; # error
Comment thread
mmathieum marked this conversation as resolved.
fi
echo "> Push to Store enabled...";

setPushToStoreProductionEnabled;
if [[ ${MT_PUSH_STORE_PRODUCTION_ENABLED} != true ]]; then
echo "> Push to Store Production NOT enabled... SKIP ($MT_PUSH_STORE_PRODUCTION_ENABLED)";
exit 1; # error
Comment thread
mmathieum marked this conversation as resolved.
fi
echo "> Push to Store Production enabled...";

setGitProjectName "${SCRIPT_DIR}/../";
CONFIG_PATH="$SCRIPT_DIR/../config";
if [[ "$GIT_PROJECT_NAME" == *"-gradle"* ]]; then # OLD REPO
CONFIG_PATH="$SCRIPT_DIR/config";
fi

if [[ ! -f "$CONFIG_PATH/store/production" ]]; then
echo "> Publish production NOT authorized!";
exit 1; # error
fi

./promote.sh \
--from-track production --promote-track production \
--update production \
--release-status inProgress --user-fraction 0.50 \
;
10 changes: 7 additions & 3 deletions shared/app-android/promote_from_production_to_production_100.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ if [[ ${MT_PUSH_STORE_PRODUCTION_ENABLED} != true ]]; then
fi
echo "> Push to Store Production enabled...";

setGitProjectName $SCRIPT_DIR/../;
setGitProjectName "${SCRIPT_DIR}/../";
CONFIG_PATH="$SCRIPT_DIR/../config";
if [[ $GIT_PROJECT_NAME == *"-gradle"* ]]; then # OLD REPO
if [[ "$GIT_PROJECT_NAME" == *"-gradle"* ]]; then # OLD REPO
CONFIG_PATH="$SCRIPT_DIR/config";
fi

Expand All @@ -27,4 +27,8 @@ if [[ ! -f "$CONFIG_PATH/store/production" ]]; then
exit 1; # error
fi

./promote.sh --from-track production --promote-track production --update production --user-fraction 1.00 --release-status completed;
./promote.sh \
--from-track production --promote-track production \
--update production \
--release-status completed --user-fraction 1.00 \
;
9 changes: 6 additions & 3 deletions shared/app-android/publish_to_alpha.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ if [[ ${MT_PUSH_STORE_ALPHA_ENABLED} != true ]]; then
fi
echo "> Push to Store Alpha enabled...";

setGitProjectName $SCRIPT_DIR/../;
setGitProjectName "${SCRIPT_DIR}/../";
CONFIG_PATH="$SCRIPT_DIR/../config";
if [[ $GIT_PROJECT_NAME == *"-gradle"* ]]; then # OLD REPO
if [[ "$GIT_PROJECT_NAME" == *"-gradle"* ]]; then # OLD REPO
CONFIG_PATH="$SCRIPT_DIR/config";
fi

Expand All @@ -27,4 +27,7 @@ if [[ ! -f "$CONFIG_PATH/store/alpha" ]]; then
exit 1; # error
fi

./publish.sh --track alpha --user-fraction 1.0 --release-status completed
./publish.sh \
--track alpha \
--release-status completed --user-fraction 1.00 \
;
4 changes: 2 additions & 2 deletions shared/app-android/publish_to_current_users.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ if [[ ${MT_PUSH_STORE_ENABLED} != true ]]; then
fi
echo "> Push to Store enabled...";

setGitProjectName $SCRIPT_DIR/../;
setGitProjectName "${SCRIPT_DIR}/../";
CONFIG_PATH="$SCRIPT_DIR/../config";
if [[ $GIT_PROJECT_NAME == *"-gradle"* ]]; then # OLD REPO
if [[ "$GIT_PROJECT_NAME" == *"-gradle"* ]]; then # OLD REPO
CONFIG_PATH="$SCRIPT_DIR/config";
fi

Expand Down
9 changes: 6 additions & 3 deletions shared/app-android/publish_to_internal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ if [[ ${MT_PUSH_STORE_ENABLED} != true ]]; then
fi
echo "> Push to Store enabled...";

setGitProjectName $SCRIPT_DIR/../;
setGitProjectName "${SCRIPT_DIR}/../";
CONFIG_PATH="$SCRIPT_DIR/../config";
if [[ $GIT_PROJECT_NAME == *"-gradle"* ]]; then # OLD REPO
if [[ "$GIT_PROJECT_NAME" == *"-gradle"* ]]; then # OLD REPO
CONFIG_PATH="$SCRIPT_DIR/config";
fi

Expand All @@ -20,4 +20,7 @@ if [[ ! -f "$CONFIG_PATH/store/internal" ]]; then
exit 1; # error
fi

./publish.sh --track internal --user-fraction 1.0 --release-status completed
./publish.sh \
--track internal \
--release-status completed --user-fraction 1.00 \
;
8 changes: 5 additions & 3 deletions shared/app-android/publish_to_private_beta.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ if [[ ${MT_PUSH_STORE_BETA_PRIVATE_ENABLED} != true ]]; then
fi
echo "> Push to Store Beta Private enabled...";

setGitProjectName $SCRIPT_DIR/../;
setGitProjectName "${SCRIPT_DIR}/../";
CONFIG_PATH="$SCRIPT_DIR/../config";
if [[ $GIT_PROJECT_NAME == *"-gradle"* ]]; then # OLD REPO
if [[ "$GIT_PROJECT_NAME" == *"-gradle"* ]]; then # OLD REPO
CONFIG_PATH="$SCRIPT_DIR/config";
fi

Expand All @@ -28,4 +28,6 @@ if [[ ! -f "$CONFIG_PATH/store/beta-private" ]]; then
exit 1; # error
fi

./publish.sh --user-fraction 1.0 --release-status completed
./publish.sh \
--release-status completed --user-fraction 1.00 \
; # --track "Beta (Private)" # default from build.gradle
9 changes: 6 additions & 3 deletions shared/app-android/publish_to_production_001.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ if [[ ${MT_PUSH_STORE_PRODUCTION_ENABLED} != true ]]; then
fi
echo "> Push to Store Production enabled...";

setGitProjectName $SCRIPT_DIR/../;
setGitProjectName "${SCRIPT_DIR}/../";
CONFIG_PATH="$SCRIPT_DIR/../config";
if [[ $GIT_PROJECT_NAME == *"-gradle"* ]]; then # OLD REPO
if [[ "$GIT_PROJECT_NAME" == *"-gradle"* ]]; then # OLD REPO
CONFIG_PATH="$SCRIPT_DIR/config";
fi

Expand All @@ -27,4 +27,7 @@ if [[ ! -f "$CONFIG_PATH/store/production" ]]; then
exit 1; # error
fi

./publish.sh --track production --user-fraction 0.01 --release-status inProgress
./publish.sh \
--track production \
--release-status inProgress --user-fraction 0.01 \
;
Loading