TP-57222 | Move Entire Project from / to /android (#10197)
This commit is contained in:
3
.github/workflows/android_checkstyle.yml
vendored
3
.github/workflows/android_checkstyle.yml
vendored
@@ -12,6 +12,9 @@ concurrency:
|
||||
jobs:
|
||||
spotless:
|
||||
runs-on: [ default ]
|
||||
defaults:
|
||||
run:
|
||||
working-directory: android
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
3
.github/workflows/branch_cut.yml
vendored
3
.github/workflows/branch_cut.yml
vendored
@@ -24,6 +24,9 @@ jobs:
|
||||
echo "| Version Name | ${{ inputs.version_name }} |" >> $GITHUB_STEP_SUMMARY
|
||||
branch-cut:
|
||||
runs-on: [ default ]
|
||||
defaults:
|
||||
run:
|
||||
working-directory: android
|
||||
needs: [ print-inputs ]
|
||||
environment: RELEASE_BRANCH_CUT
|
||||
steps:
|
||||
|
||||
9
.github/workflows/generate_apk_diff.yml
vendored
9
.github/workflows/generate_apk_diff.yml
vendored
@@ -13,6 +13,9 @@ on:
|
||||
jobs:
|
||||
generate-apk-diff:
|
||||
runs-on: [ default ]
|
||||
defaults:
|
||||
run:
|
||||
working-directory: android
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
@@ -32,13 +35,13 @@ jobs:
|
||||
with:
|
||||
python-version: '3.9.7'
|
||||
- name: Install dependencies
|
||||
run: pip install -r .github/actions/s3_file_transfer/dependencies.txt
|
||||
run: pip install -r ../.github/actions/s3_file_transfer/dependencies.txt
|
||||
- name: Download File
|
||||
run: python .github/actions/s3_file_transfer/script.py download ${{ secrets.AWS_ACCESS_KEY_GITHUB_CACHE }} ${{ secrets.AWS_SECRET_KEY_GITHUB_CACHE }} app/build/outputs/apk/dev/debug/latest_build.apk
|
||||
run: python ../.github/actions/s3_file_transfer/script.py download ${{ secrets.AWS_ACCESS_KEY_GITHUB_CACHE }} ${{ secrets.AWS_SECRET_KEY_GITHUB_CACHE }} android/app/build/outputs/apk/dev/debug/latest_build.apk
|
||||
- name: Compare APK Size Difference
|
||||
id: apk-diff
|
||||
run: |
|
||||
previous_apk_path="app/build/outputs/apk/dev/debug/latest_build.apk"
|
||||
previous_apk_path="android/app/build/outputs/apk/dev/debug/latest_build.apk"
|
||||
current_apk_path="${{steps.download.outputs.download-path}}/apk_from_bundle/qaDebug/app-qa-debug-universal.apk"
|
||||
previous_apk_size=$(stat -c %s $previous_apk_path)
|
||||
current_apk_size=$(stat -c %s $current_apk_path)
|
||||
|
||||
9
.github/workflows/generate_build.yml
vendored
9
.github/workflows/generate_build.yml
vendored
@@ -67,6 +67,9 @@ jobs:
|
||||
echo "| Version Name | ${{ inputs.version_name || '🚫' }} |" >> $GITHUB_STEP_SUMMARY
|
||||
generate:
|
||||
runs-on: [ android ]
|
||||
defaults:
|
||||
run:
|
||||
working-directory: android
|
||||
needs: [ print-inputs ]
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
@@ -106,14 +109,14 @@ jobs:
|
||||
with:
|
||||
name: app-${{ inputs.environment }}-${{ inputs.type }}
|
||||
path: |
|
||||
app/build/outputs/apk_from_bundle/
|
||||
app/build/outputs/bundle/
|
||||
android/app/build/outputs/apk_from_bundle/
|
||||
android/app/build/outputs/bundle/
|
||||
retention-days: 5
|
||||
- name: Log APK Size
|
||||
if: inputs.environment == 'qa' && inputs.type == 'release' && inputs.output == 'APK' && github.event_name == 'push' && startsWith(github.ref_name, 'release-')
|
||||
run: |
|
||||
current_version=$(awk '/VERSION_CODE/ {print $4}' app/build.gradle)
|
||||
current_apk_size=$(stat -c %s app/build/outputs/apk_from_bundle/qaRelease/app-qa-release-universal.apk || true)
|
||||
current_apk_size=$(stat -c %s android/app/build/outputs/apk_from_bundle/qaRelease/app-qa-release-universal.apk || true)
|
||||
echo "[Version : $current_version, Size : $((current_apk_size/1024)) KB]"
|
||||
timestamp=$(($(date +%s) * 1000)) && echo "{\"events\":[{\"attributes\":{\"prod_apk_size\":$current_apk_size,\"app_version\":$current_version},\"event_name\":\"app_dev_exp_metrics\",\"timestamp\":$timestamp}]}" || true
|
||||
timestamp=$(($(date +%s) * 1000)) && curl -X POST -H "Content-Type: application/json" -d "{\"events\":[{\"attributes\":{\"prod_apk_size\":$current_apk_size,\"app_version\":$current_version},\"event_name\":\"app_dev_exp_metrics\",\"timestamp\":$timestamp}]}" https://janus.prod.navi-tech.in/events/json || true
|
||||
|
||||
7
.github/workflows/metrics_logger.yml
vendored
7
.github/workflows/metrics_logger.yml
vendored
@@ -19,6 +19,9 @@ jobs:
|
||||
- freshDebug
|
||||
- cachedRelease
|
||||
runs-on: [ macOS ]
|
||||
defaults:
|
||||
run:
|
||||
working-directory: android
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
@@ -51,9 +54,9 @@ jobs:
|
||||
id: apk_size
|
||||
run: |
|
||||
if [[ "${{ matrix.build_type }}" == "cachedRelease" ]]; then
|
||||
apk_size=$(stat -f%z app/build/outputs/apk_from_bundle/qaRelease/app-qa-release-universal.apk)
|
||||
apk_size=$(stat -f%z android/app/build/outputs/apk_from_bundle/qaRelease/app-qa-release-universal.apk)
|
||||
else
|
||||
apk_size=$(stat -f%z app/build/outputs/apk_from_bundle/qaDebug/app-qa-debug-universal.apk)
|
||||
apk_size=$(stat -f%z android/app/build/outputs/apk_from_bundle/qaDebug/app-qa-debug-universal.apk)
|
||||
fi
|
||||
|
||||
echo "APK_SIZE=$apk_size" >> "$GITHUB_OUTPUT"
|
||||
|
||||
3
.github/workflows/pr_review.yml
vendored
3
.github/workflows/pr_review.yml
vendored
@@ -12,6 +12,9 @@ concurrency:
|
||||
jobs:
|
||||
label_triggered_job:
|
||||
runs-on: [ default ]
|
||||
defaults:
|
||||
run:
|
||||
working-directory: android
|
||||
steps:
|
||||
- name: Check label and send Slack message
|
||||
id: check_label_and_send_slack
|
||||
|
||||
7
.github/workflows/upload_file.yml
vendored
7
.github/workflows/upload_file.yml
vendored
@@ -13,6 +13,9 @@ on:
|
||||
jobs:
|
||||
build:
|
||||
runs-on: [ default ]
|
||||
defaults:
|
||||
run:
|
||||
working-directory: android
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
@@ -32,8 +35,8 @@ jobs:
|
||||
with:
|
||||
python-version: '3.9.7'
|
||||
- name: Install dependencies
|
||||
run: pip install -r .github/actions/s3_file_transfer/dependencies.txt
|
||||
run: pip install -r ../.github/actions/s3_file_transfer/dependencies.txt
|
||||
- name: Upload File
|
||||
run: python ./.github/actions/s3_file_transfer/script.py upload ${{secrets.AWS_ACCESS_KEY_GITHUB_CACHE}} ${{secrets.AWS_SECRET_KEY_GITHUB_CACHE}} ${{steps.download.outputs.download-path}}/apk_from_bundle/qaDebug/app-qa-debug-universal.apk
|
||||
run: python ../.github/actions/s3_file_transfer/script.py upload ${{secrets.AWS_ACCESS_KEY_GITHUB_CACHE}} ${{secrets.AWS_SECRET_KEY_GITHUB_CACHE}} ${{steps.download.outputs.download-path}}/apk_from_bundle/qaDebug/app-qa-debug-universal.apk
|
||||
- name: Cleanup
|
||||
run: rm -rf *.tmp
|
||||
3
.github/workflows/validate_release_pr.yml
vendored
3
.github/workflows/validate_release_pr.yml
vendored
@@ -12,6 +12,9 @@ concurrency:
|
||||
jobs:
|
||||
validate-release-pr:
|
||||
runs-on: [ default ]
|
||||
defaults:
|
||||
run:
|
||||
working-directory: android
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
Reference in New Issue
Block a user