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

Unify Android build logic #9762

Merged
merged 3 commits into from
Sep 21, 2021
Merged

Conversation

austinh0
Copy link
Contributor

Problem

  • scripts/build/builders/android.py is used in the CI to build the Android CHIPTool, but scripts/examples/android_app.sh does the same thing and is used by devs locally

Change overview

  • android_app.sh is renamedandroid_app_ide.sh and only supports the IDE build path now.
  • Modify android_app.py
    • Add x86
    • ./gradlew build -> ./gradlew assembleDebug. build compiles debug and release APKs, which seems unnecessary and is slow.
  • Update documentation

Testing

  • Manually built and installed APK with both scripts.
  • android.py used by Android CI

@austinh0
Copy link
Contributor Author

Oops, didn't mean to re-request from Saurabh.

@austinh0
Copy link
Contributor Author

@andy31415
Copy link
Contributor

@austinh0 - the build_examples.py build script has unit tests. You will need to add/modify the file scripts/build/expected_all_platform_commands.txt (remeber to use the placeholders {out} and {root} and such.

@austinh0
Copy link
Contributor Author

austinh0 commented Sep 20, 2021

Updated the expected commands and the tests pass.

@boring-cyborg boring-cyborg bot added the github label Sep 21, 2021
@austinh0 austinh0 merged commit 1c540b9 into project-chip:master Sep 21, 2021
@austinh0 austinh0 mentioned this pull request Sep 23, 2021
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.

5 participants