You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by cjpearson <gi...@git.apache.org> on 2015/02/22 22:10:51 UTC

[GitHub] cordova-android pull request: CB-7827: Allow user to specify andro...

GitHub user cjpearson opened a pull request:

    https://github.com/apache/cordova-android/pull/160

    CB-7827: Allow user to specify android activity name

    This change adds a parameter to create to allow the user to specify an activity name. If none is specified it will still default to MainActivity. See http://markmail.org/message/pj5ig4b54nk4l7dr for a discussion of this issue.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/cjpearson/cordova-android master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-android/pull/160.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #160
    
----
commit 3aa381f86ec3e36b0663f2fa75c60c8e250d8310
Author: Connor Pearson <cj...@gmail.com>
Date:   2015-02-22T20:44:54Z

    CB-7827: Allow user to specify android activity name

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] cordova-android pull request: CB-7827: Allow user to specify andro...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/cordova-android/pull/160


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] cordova-android pull request: CB-7827: Allow user to specify andro...

Posted by cjpearson <gi...@git.apache.org>.
Github user cjpearson commented on a diff in the pull request:

    https://github.com/apache/cordova-android/pull/160#discussion_r25187348
  
    --- Diff: bin/create ---
    @@ -23,14 +23,15 @@ var create = require('./lib/create');
     var args  = require('./lib/simpleargs').getArgs(process.argv);
     
     if (args['--help'] || args._.length === 0) {
    -    console.log('Usage: ' + path.relative(process.cwd(), path.join(__dirname, 'create')) + ' <path_to_new_project> <package_name> <project_name> [<template_path>] [--link]');
    +    console.log('Usage: ' + path.relative(process.cwd(), path.join(__dirname, 'create')) + ' <path_to_new_project> <package_name> <project_name> <activity_name> [<template_path>] [--link]');
    --- End diff --
    
    I wasn't sure of the best way to make both template_path and activity_name optional. I explored using --activity-name <activity_name> using nopt, which cordova-ios uses for arguments.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] cordova-android pull request: CB-7827: Allow user to specify andro...

Posted by agrieve <gi...@git.apache.org>.
Github user agrieve commented on the pull request:

    https://github.com/apache/cordova-android/pull/160#issuecomment-76036058
  
    Merged. dcff8794adb5a8e772a


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] cordova-android pull request: CB-7827: Allow user to specify andro...

Posted by cjpearson <gi...@git.apache.org>.
Github user cjpearson commented on the pull request:

    https://github.com/apache/cordova-android/pull/160#issuecomment-75749293
  
    @agrieve I've modified it to use --activity-name with nopt. I tried to follow the style of the iOS create script.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] cordova-android pull request: CB-7827: Allow user to specify andro...

Posted by agrieve <gi...@git.apache.org>.
Github user agrieve commented on a diff in the pull request:

    https://github.com/apache/cordova-android/pull/160#discussion_r25186024
  
    --- Diff: bin/create ---
    @@ -23,14 +23,15 @@ var create = require('./lib/create');
     var args  = require('./lib/simpleargs').getArgs(process.argv);
     
     if (args['--help'] || args._.length === 0) {
    -    console.log('Usage: ' + path.relative(process.cwd(), path.join(__dirname, 'create')) + ' <path_to_new_project> <package_name> <project_name> [<template_path>] [--link]');
    +    console.log('Usage: ' + path.relative(process.cwd(), path.join(__dirname, 'create')) + ' <path_to_new_project> <package_name> <project_name> <activity_name> [<template_path>] [--link]');
    --- End diff --
    
    Shifting the `<template_path>` arg will break scripts that currently use it. Maybe use `--activity-name=` instead?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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