Rules for Naming Multi-Device Projects and Files
Go Up to Considerations for Multi-Device Applications
Project or file names that are accepted on the Windows platform can in some cases be unacceptable on the mobile platforms (iOS and Android). A project that has a name that is not acceptable on the target platform will fail in the deployment step.
For example, a project name that contains a hyphen (-) will fail to deploy to the Android platform because Java does not allow hyphens in project names. Specifically, an invalid package name in the Android app's manifest causes the "INSTALL_FAILED_INVALID_APK" error.
- To avoid conflicts, you should use the Java Package name conventions whenever you are creating a project that is to run on Android.
- Similarly, you should observe the Apple Objective C naming conventions for projects are to run on the iOS or Mac OSX platforms.
Java/Android Naming Rules
- http://docs.oracle.com/javase/tutorial/java/package/namingpkgs.html
- https://google.github.io/styleguide/objcguide.xml
iOS Naming Rules
- Code naming basics from Apple: https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/CodingGuidelines/CodingGuidelines.html
- https://developer.apple.com/library/ios/documentation/cocoa/conceptual/ProgrammingWithObjectiveC/Conventions/Conventions.html
- https://github.com/Alterplay/iOS-Code-Conventions/blob/master/Code%20Conventions.md