You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Jan Becicka (JIRA)" <ji...@apache.org> on 2012/07/26 11:20:34 UTC

[jira] [Created] (CB-1139) Android "create" command line tool does not support "target" argument

Jan Becicka created CB-1139:
-------------------------------

             Summary: Android "create" command line tool does not support "target" argument
                 Key: CB-1139
                 URL: https://issues.apache.org/jira/browse/CB-1139
             Project: Apache Cordova
          Issue Type: Bug
          Components: Android
    Affects Versions: 2.0.0
            Reporter: Jan Becicka
            Assignee: Joe Bowser


Android command line tool does not support "target" argument and it usage is very limited, because it takes latest available target, which is in my case Android 4.1. But there is almost no real devices with target Android 4.1. I think, that most developers want to develop for 2.3. I think, that create command for android must support "--target" option to be usable out of the box. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-1139) Android "create" command line tool does not support "target" argument

Posted by "Brian LeRoux (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13423389#comment-13423389 ] 

Brian LeRoux commented on CB-1139:
----------------------------------

You should always target highest. Cordova will still run on older phones with a high target. 
                
> Android "create" command line tool does not support "target" argument
> ---------------------------------------------------------------------
>
>                 Key: CB-1139
>                 URL: https://issues.apache.org/jira/browse/CB-1139
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.0.0
>            Reporter: Jan Becicka
>            Assignee: Anis Kadri
>
> Android command line tool does not support "target" argument and it usage is very limited, because it takes latest available target, which is in my case Android 4.1. But there is almost no real devices with target Android 4.1. I think, that most developers want to develop for 2.3. I think, that create command for android must support "--target" option to be usable out of the box. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-1139) Android "create" command line tool does not support "target" argument

Posted by "Jan Becicka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13422984#comment-13422984 ] 

Jan Becicka commented on CB-1139:
---------------------------------

I'm not good at sh scripting, but fix should be rather simple:

22c22
< #   ./create [path package activity]
---
> #   ./create [path package activity --target target]
87a88,91
> if [ "$4" == "--target" ]
> then 
> TARGET=$5
> else
88a93
> fi

                
> Android "create" command line tool does not support "target" argument
> ---------------------------------------------------------------------
>
>                 Key: CB-1139
>                 URL: https://issues.apache.org/jira/browse/CB-1139
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.0.0
>            Reporter: Jan Becicka
>            Assignee: Joe Bowser
>
> Android command line tool does not support "target" argument and it usage is very limited, because it takes latest available target, which is in my case Android 4.1. But there is almost no real devices with target Android 4.1. I think, that most developers want to develop for 2.3. I think, that create command for android must support "--target" option to be usable out of the box. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CB-1139) Android "create" command line tool does not support "target" argument

Posted by "Jan Becicka (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1139?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan Becicka resolved CB-1139.
-----------------------------

    Resolution: Not A Problem

You are right, guys. I'm sorry for false report. I thought, that it will not run on older devices.
                
> Android "create" command line tool does not support "target" argument
> ---------------------------------------------------------------------
>
>                 Key: CB-1139
>                 URL: https://issues.apache.org/jira/browse/CB-1139
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.0.0
>            Reporter: Jan Becicka
>            Assignee: Anis Kadri
>
> Android command line tool does not support "target" argument and it usage is very limited, because it takes latest available target, which is in my case Android 4.1. But there is almost no real devices with target Android 4.1. I think, that most developers want to develop for 2.3. I think, that create command for android must support "--target" option to be usable out of the box. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (CB-1139) Android "create" command line tool does not support "target" argument

Posted by "Anis Kadri (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1139?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anis Kadri reassigned CB-1139:
------------------------------

    Assignee: Anis Kadri  (was: Joe Bowser)
    
> Android "create" command line tool does not support "target" argument
> ---------------------------------------------------------------------
>
>                 Key: CB-1139
>                 URL: https://issues.apache.org/jira/browse/CB-1139
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.0.0
>            Reporter: Jan Becicka
>            Assignee: Anis Kadri
>
> Android command line tool does not support "target" argument and it usage is very limited, because it takes latest available target, which is in my case Android 4.1. But there is almost no real devices with target Android 4.1. I think, that most developers want to develop for 2.3. I think, that create command for android must support "--target" option to be usable out of the box. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-1139) Android "create" command line tool does not support "target" argument

Posted by "Anis Kadri (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13423409#comment-13423409 ] 

Anis Kadri commented on CB-1139:
--------------------------------

I believe the target is only for build purposes

The app will run on Android 2.1 and above (defined in the template AndroidManifest.xml)

See [here|http://developer.android.com/guide/topics/manifest/uses-sdk-element.html] for more info.

I don't see the motivation to build for an older target ?
                
> Android "create" command line tool does not support "target" argument
> ---------------------------------------------------------------------
>
>                 Key: CB-1139
>                 URL: https://issues.apache.org/jira/browse/CB-1139
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.0.0
>            Reporter: Jan Becicka
>            Assignee: Anis Kadri
>
> Android command line tool does not support "target" argument and it usage is very limited, because it takes latest available target, which is in my case Android 4.1. But there is almost no real devices with target Android 4.1. I think, that most developers want to develop for 2.3. I think, that create command for android must support "--target" option to be usable out of the box. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira