Skip to content
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

chore: added aab support and improved script #428

Merged
merged 1 commit into from
Jul 5, 2019

Conversation

adityastic
Copy link
Collaborator

Fixes #427

Changes:

  • Updated Upload Script

@@ -4,7 +4,7 @@ set -e
export DEPLOY_BRANCH=${DEPLOY_BRANCH:-development}
export PUBLISH_BRANCH=${PUBLISH_BRANCH:-master}

if [ "$TRAVIS_PULL_REQUEST" != "false" -o "$TRAVIS_REPO_SLUG" != "fossasia/badge-magic-android" ] || ! [ "$TRAVIS_BRANCH" == "$DEPLOY_BRANCH" -o "$TRAVIS_BRANCH" == "$PUBLISH_BRANCH" ]; then
if [ "$TRAVIS_REPO_SLUG" != "fossasia/badge-magic-android" ] || ! [ "$TRAVIS_BRANCH" == "$DEPLOY_BRANCH" -o "$TRAVIS_BRANCH" == "$PUBLISH_BRANCH" ]; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert so there is a common way of handling things, may remove the condition from .travis.yml

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, it will be consistent


#removing unused apps
for file in app*; do
if [[ ${file} =~ "unsigned" || ${file} =~ "unaligned" ]]; then
rm ${file}
elif [[ ${file} =~ ".aab" ]]; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Master and dev aab should be separate

Copy link
Collaborator Author

@adityastic adityastic Jul 5, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Areeb, aab is a publishing format, hence it is of no use to the normal users. Why do you want to keep in the apk branch?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that is the reason I just used it to push the app to playstore and keep the release and debug apk's in the apk branch.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is of use to me. Because I want to debug what was sent to play store if something goes wrong.

Normal users use fdroid or play store to download the APK. I and fellow developers and maintainers use the APK branch

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nvm, ill do it right away

fastlane supply --apk app.aab --track alpha --json_key fastlane.json --package_name $PACKAGE_NAME
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

master aab

@@ -46,6 +45,7 @@ git checkout --orphan temporary

# Add generated APK
git add --all .
git rm --cached app.aab
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

redundant

@adityastic adityastic force-pushed the apk-improvement branch 2 times, most recently from 70a0c3c to f0e4b2a Compare July 5, 2019 10:23
@iamareebjamal iamareebjamal merged commit 4b37592 into fossasia:development Jul 5, 2019
@adityastic adityastic deleted the apk-improvement branch July 10, 2019 02:49
@adityastic adityastic self-assigned this Aug 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

support aab uploads
3 participants