-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
170-configure-app-distribution #176
base: dev
Are you sure you want to change the base?
Conversation
MajoritySky2496
commented
Jun 12, 2024
- made the creation of a unique version number
- added notification to testers about new builds
2) added notification to testers about new builds
@@ -29,7 +29,7 @@ jobs: | |||
run: | | |||
echo "$CREDENTIAL_FILE_CONTENT" > ./app/serviceCredentialsFile.json | |||
echo "App type: stageQa" >> ./app/src/releaseNotes.txt | |||
echo "buildNumber=${GITHUB_RUN_NUMBER}" >> ./app/src/releaseNotes.txt | |||
echo "buildNumber=${GITHUB_SHA::7}" >> ./app/src/releaseNotes.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GITHUB_RUN_NUMBER - это нормальное число для номера релиза
текущая проблема что versionCode = 1 никак не меняется
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Исправил, надеюсь правильно понял что требуется
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
неа, тебе надо чтобы в app/build.gradle.kts versionCode брался из переменной окружения (если её нет - то "1")
GITHUB_RUN_NUMBER - та самая переменная окружения, которая при сборке на CI будет иметь норм значение
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
тяжело до меня это доходит, поменял на GITHUB_RUN_NUMBER, в app/build.gradle.kts нужно что то дополнительно прописывать ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
смотри, тебе надо сделать так, чтобы в итоговом apk-файле в AndroidManifest был указан versionCode равный GITHUB_RUN_NUMBER
для этого в app/build.gradle.kts нужно прописать значение этого versionCode и взять его из переменной окружения
1) Did that buildNumber = GITHUB_RUN_NUMBER