You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/09/10 21:31:12 UTC

[GitHub] [cordova-android] dtarnawsky opened a new issue #1344: PackageType flag ignored with cordova-android 10 with release builds

dtarnawsky opened a new issue #1344:
URL: https://github.com/apache/cordova-android/issues/1344


   # Bug Report
   
   ## Problem
   If you call `cordova build android --release --packageType=apk` the resulting file is of type .aab (when cordova-android is 10.x)
   
   ### What is expected to happen?
   The --packageType flag should control whether an apk or aab file is generated. If the packageType flag is omitted it should default to apk (according to documentation) but it generates .aab files for release builds.
   
   
   ### What does actually happen?
   An .aab file is generated (regardless of the --packageType flag)
   
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   `cordova build android --release --packageType=apk`
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   Only happens when cordova-android is version 10 or higher
   
   
   ### Version information
   <!--
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   Cordova CLI: 10.0.0
   Cordova Platforms: android 10.1.0, ios 6.2.0
   Android SDK Tools : 26.1.1 (/Users/damian/Library/Android/sdk)
   ios-deploy        : 1.11.4
   ios-sim           : 8.0.2
   NodeJS            : v14.17.0 (/usr/local/bin/node)
   npm               : 7.23.0
   OS                : macOS Big Sur
   Xcode             : Xcode 12.5.1 Build version 12E507
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [ ] I included all the necessary information above
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] jpike88 commented on issue #1344: PackageType flag ignored with cordova-android 10 with release builds

Posted by GitBox <gi...@apache.org>.
jpike88 commented on issue #1344:
URL: https://github.com/apache/cordova-android/issues/1344#issuecomment-988012013


   after many sacrifices to the android gods and hours of agony, my journey has come to an end.
   
   goddamit.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] breautek commented on issue #1344: PackageType flag ignored with cordova-android 10 with release builds

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #1344:
URL: https://github.com/apache/cordova-android/issues/1344#issuecomment-917229765


   This is a big gotcha... but You're missing a set of  of -- to signal passing to a sub process.
   
   E.g. `cordova build android --release -- --packageType=apk`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] breautek edited a comment on issue #1344: PackageType flag ignored with cordova-android 10 with release builds

Posted by GitBox <gi...@apache.org>.
breautek edited a comment on issue #1344:
URL: https://github.com/apache/cordova-android/issues/1344#issuecomment-917229765


   This is a big gotcha... but You're missing a set of  of -- to signal passing to a sub process.
   
   E.g. `cordova build android --release -- --packageType=apk`
   
   --release is part of the cordova command, but --packageType is a cordova-android argument, which is why the intermediate -- is necessary. Confusing... I know


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] dtarnawsky commented on issue #1344: PackageType flag ignored with cordova-android 10 with release builds

Posted by GitBox <gi...@apache.org>.
dtarnawsky commented on issue #1344:
URL: https://github.com/apache/cordova-android/issues/1344#issuecomment-917233301


   Ah. That is too easy to fix! and too easy to assume is broken :(
   
   I'll close the issue out.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] dtarnawsky closed issue #1344: PackageType flag ignored with cordova-android 10 with release builds

Posted by GitBox <gi...@apache.org>.
dtarnawsky closed issue #1344:
URL: https://github.com/apache/cordova-android/issues/1344


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org