Convention when building an app holds that the package name should begin with one's reverse domain string, e.g., com.google.MySampleApp.
However, our company is registered at a .do domain, which cannot be used as a package name (!) because "do" is a reserved keyword in Java.
How do people usually handle this? Is there an "official" standard for the Google Play Store in particular? Surely we can't be the first company with a domain in the Dominican Republic that's created an Android app...?
. DO is Dominican Republic's country code top-level domain name. . DO is the ideal domain for businesses, organisations, and individuals catering to the Dominican Republic.
This extension is the official top level domain of Dominican Republic.
To purchase your . do domain name, you must first search for the availability of the unique phrase (without spaces or with hyphens). If the domain name is available, you may then add it to the cart to register for up to 10 year(s).
Oracle suggests you add an underscore:
In some cases, the internet domain name may not be a valid package name. This can occur if the domain name contains a hyphen or other special character, if the package name begins with a digit or other character that is illegal to use as the beginning of a Java name, or if the package name contains a reserved Java keyword, such as "int". In this event, the suggested convention is to add an underscore. For example:
hyphenated-name.example.org org.example.hyphenated_name example.int int_.example 123name.example.com com.example._123name
Source: https://docs.oracle.com/javase/tutorial/java/package/namingpkgs.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With