Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Package names for domains which end in .do

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...?

like image 592
Arkaaito Avatar asked Aug 18 '15 15:08

Arkaaito


People also ask

What is the .do domain?

. 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.

Does .do have domain?

This extension is the official top level domain of Dominican Republic.

How do I get a .do domain?

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).


1 Answers

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

like image 103
Wander Nauta Avatar answered Sep 18 '22 15:09

Wander Nauta