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

Make changes for android.py file #691

Closed
wants to merge 1 commit into from

Conversation

gautam-kumar-22
Copy link

Fix the issue of copy apk file.

@@ -798,9 +798,22 @@ def build_package(self):
pass

# XXX found how the apk name is really built from the title
#gradle_files = ["build.gradle", "gradle", "gradlew"]
Copy link
Member

Choose a reason for hiding this comment

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

Thanks for the pull request.
Why commenting this rather than just deleting?

#is_gradle_build = any((
# exists(join(dist_dir, x)) for x in gradle_files))
#if is_gradle_build:
__sdk_dir = self.android_sdk_dir
Copy link
Member

Choose a reason for hiding this comment

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

Why creating a local __sdk_dir variable if it's used just once?
Also why is this double underscore syntax for a local variable?




# gradle_files = ["build.gradle", "gradle", "gradlew"]
Copy link
Member

Choose a reason for hiding this comment

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

Why commenting this? If we don't need it then let's just drop it

@AndreMiras
Copy link
Member

Hi @gautam-kumar-22 , thank you for taking a look and tackling this! I've started reviewing and left few comments.
Also can you make a nice commit message, because Make changes for android.py file is not very descriptive.
Try to keep the commit title descriptive but short. And for details use the commit body. Plus perhaps you want to make references to few tickets that look related, please do so in the commit message as well.
Some ticket that look related (please add/remove) are #312, #597, #599, #603, #606, #613, #632, #636, #647, #649, #662

@tito
Copy link
Member

tito commented Aug 21, 2018

This PR cannot be merged, and comment important part necessary for gradle. If you still hit the issue, please rewrite it in a way it doesn't impact others stuff :)

@tito tito closed this Aug 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants