urbanairship-core/src/main/java/com/urbanairship/AirshipConfigOptions.java
public Builder detectProvisioningMode(Context context) {
            try {
                Class<?> clazz = Class.forName(context.getPackageName() + ".BuildConfig");
                Field field = clazz.getField("DEBUG");
                inProduction = !(boolean) field.get(null);
            } catch (Exception e) {
                Logger.warn("AirshipConfigOptions - Unable to determine the build mode. Defaulting to debug.");
                inProduction = false;
            }
            return this;
        }
/**
         * Automatically determine the provisioning mode of the application.
         *
         * @param context The application context.
         * @return The config options builder.
         */
Automatically determine the provisioning mode of the application.
@param context The application context.
@return The config options builder.
Automatically determine the provisioning mode of the application . @param context The application context . @return The config options builder .
public Builder detectProvisioningMode(Context context) {
            try {
                Class<?> clazz = Class.forName(context.getPackageName() + ".BuildConfig");
                Field field = clazz.getField("DEBUG");
                inProduction = !(boolean) field.get(null);
            } catch (Exception e) {
                Logger.warn("AirshipConfigOptions - Unable to determine the build mode. Defaulting to debug.");
                inProduction = false;
            }
            return this;
        }
public Builder detectProvisioningMode ( Context context ) { try { Class < ? > clazz = Class . forName ( context . getPackageName ( ) + ".BuildConfig" ) ; Field field = clazz . getField ( "DEBUG" ) ; inProduction = ! ( boolean ) field . get ( null ) ; } catch ( Exception e ) { Logger . warn ( "AirshipConfigOptions - Unable to determine the build mode. Defaulting to debug." ) ; inProduction = false ; } return this ; }
Automatically determine the provisioning mode of the application.
Automatically determine the provisioning mode of the application .