[
https://issues.apache.org/jira/browse/CB-8392?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sarangan Rajamanickam resolved CB-8392.
---------------------------------------
Resolution: Fixed
> Valid Java package names are marked as invalid when trying to add android
> platform
> ----------------------------------------------------------------------------------
>
> Key: CB-8392
> URL: https://issues.apache.org/jira/browse/CB-8392
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Environment: cordova-android 3.6.4
> Reporter: Steve Lam
> Priority: Minor
>
> cordova-android 3.6.4 is reporting "com._123abc.MyApp" as invalid Java
> package while allowing "com.123abc.MyApp" which is an actual invalid Java
> package name
> (http://docs.oracle.com/javase/tutorial/java/package/namingpkgs.html).
> In bin/lib/create.js, line 150:
> {noformat}
> if (!/^[a-zA-Z]+(\.[a-zA-Z0-9][a-zA-Z0-9_]*)+$/.test(package_name)) {
> return Q.reject('Package name must look like: com.company.Name');
> }
> {noformat}
> Should be changed to:
> {noformat}
> if (!/^[a-zA-Z]+(\.[a-zA-Z_][a-zA-Z0-9_]*)+$/.test(package_name) ) {
> {noformat}
> Thus allowing for valid Java package names such as:
> com._123abc.MyApp
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]