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
impr(android): allow gradle to automatically download missing dependencies #11432
Conversation
Tests:
|
5e65d80
to
c09c32c
Compare
I think an app build will still fail if you set the
Our The rest of your changes look good! |
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.
CR: Pass
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.
@garymathews When following the instructions mentioned in the description and building using appc run -p android --no-prompt --build-only
I get the following error for Step 3 and Step 4 [ERROR] Missing required option: --device-id <name>
Test Steps:
- Created a new Titanium application
- Removed
Android SDK Platform 29
- Built application
- Able to build to build using the instructions mentioned in step one.
Note: It will not download system images needed for emulators just theAndroid SDK Platform 29
which is needed for building. If you try to build to an emulator the below is error is shown.
[ERROR] �� �Emulator exited with error: 1
[ERROR] �� �PANIC: Broken AVD system path. Check your ANDROID_SDK_ROOT value [/Users/Samir/Library/Android/sdk]!
Build failed. Process exited with code 1.
- Removed Android SDK Build-Tools
- Attempted to build Titanium application
- Application built without any issues and SDK Builds-Tools were installed
- Removed Android SDK Platform-tools
- Attempted to build Titanium application
- Following error is shown
[ERROR] Missing required option: --device-id <name>
- Removed Android SDK Tools
- Attempted to build Titanium application
- Following error is shown
[ERROR] Missing required option: --device-id <name>
Test Environment
MacOS Catalina: 10.15.1 beta
Xcode: 11.3
Java Version: 1.8.0_131
Android NDK: 18.1.5063045
Node.js: 10.16.3
"NPM":"4.2.15-1","CLI":"7.1.2-7"
Pixel xl (7.1.1) Emulator
@ssjsamir Thanks for finding that, I've updated the PR. |
@garymathews For the first three test cases everything seems fine but for number 4 when I try to build without the tools folder, the application builds without downloading/installing anything to the
|
@ssjsamir I'm having trouble reproducing that issue, what are the steps your doing for 4? The app builds fine when I remove
|
@garymathews The app is building fine but Tools is not actually being downloaded/installed in the SDK location for me unlike the others. |
It will only download the dependencies it needs to build the app, so if the apps building fine then it won't download additional dependencies. I think this behaviour is fine then? |
@garymathews That seems fine with me. To get the above error I ran to an emulator after removing the |
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.
FR Passed able to build with the following missing dependencies Android SDK Platform 29
, Android SDK Build-Tools
, Android SDK Platform-Tools
and Android SDK Tools.
Test Environment
MacOS Catalina: 10.15.1 beta
Xcode: 11.3
Java Version: 1.8.0_131
Android NDK: 18.1.5063045
Node.js: 10.16.3
"NPM":"4.2.15-1","CLI":"7.1.2-7"
Pixel xl (7.1.1) Emulator
TEST CASE #1
Android SDK Platform 29
Android SDK Platform 29
and build successfullyTEST CASE #2
Android SDK Build-Tools
Android SDK Build-Tools
and build successfullyTEST CASE #3
Android SDK Platform-Tools
Android SDK Platform-Tools
and build successfullyTEST CASE #4
Android SDK Tools
Android SDK Tools
and build successfullyRepeat test cases for Titanium native module
JIRA Ticket