Java Code Examples for com.facebook.android.BuildConfig#DEBUG

The following examples show how to use com.facebook.android.BuildConfig#DEBUG . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Settings.java    From FacebookImageShareIntent with MIT License 5 votes vote down vote up
/**
 * Sets the base Facebook domain to use when making Web requests. This defaults to "facebook.com", but may
 * be overridden to, e.g., "beta.facebook.com" to direct requests at a different domain. This method should
 * never be called from production code.
 *
 * @param facebookDomain the base domain to use instead of "facebook.com"
 */
public static void setFacebookDomain(String facebookDomain) {
    if (!BuildConfig.DEBUG) {
        Log.w(TAG, "WARNING: Calling setFacebookDomain from non-DEBUG code.");
    }

    Settings.facebookDomain = facebookDomain;
}
 
Example 2
Source File: Settings.java    From facebook-api-android-maven with Apache License 2.0 5 votes vote down vote up
/**
 * Sets the base Facebook domain to use when making Web requests. This defaults to "facebook.com", but may
 * be overridden to, e.g., "beta.facebook.com" to direct requests at a different domain. This method should
 * never be called from production code.
 *
 * @param facebookDomain the base domain to use instead of "facebook.com"
 */
public static void setFacebookDomain(String facebookDomain) {
    if (!BuildConfig.DEBUG) {
        Log.w(TAG, "WARNING: Calling setFacebookDomain from non-DEBUG code.");
    }

    Settings.facebookDomain = facebookDomain;
}
 
Example 3
Source File: Settings.java    From android-skeleton-project with MIT License 5 votes vote down vote up
/**
 * Sets the base Facebook domain to use when making Web requests. This defaults to "facebook.com", but may
 * be overridden to, e.g., "beta.facebook.com" to direct requests at a different domain. This method should
 * never be called from production code.
 *
 * @param facebookDomain the base domain to use instead of "facebook.com"
 */
public static void setFacebookDomain(String facebookDomain) {
    if (!BuildConfig.DEBUG) {
        Log.w(TAG, "WARNING: Calling setFacebookDomain from non-DEBUG code.");
    }

    Settings.facebookDomain = facebookDomain;
}
 
Example 4
Source File: Settings.java    From barterli_android with Apache License 2.0 5 votes vote down vote up
/**
 * Sets the base Facebook domain to use when making Web requests. This defaults to "facebook.com", but may
 * be overridden to, e.g., "beta.facebook.com" to direct requests at a different domain. This method should
 * never be called from production code.
 *
 * @param facebookDomain the base domain to use instead of "facebook.com"
 */
public static void setFacebookDomain(String facebookDomain) {
    if (!BuildConfig.DEBUG) {
        Log.w(TAG, "WARNING: Calling setFacebookDomain from non-DEBUG code.");
    }

    Settings.facebookDomain = facebookDomain;
}
 
Example 5
Source File: Utility.java    From KlyphMessenger with MIT License 4 votes vote down vote up
public static void logd(String tag, String msg) {
    if (BuildConfig.DEBUG && tag != null && msg != null) {
        Log.d(tag, msg);
    }
}
 
Example 6
Source File: Utility.java    From FacebookImageShareIntent with MIT License 4 votes vote down vote up
public static void logd(String tag, String msg) {
    if (BuildConfig.DEBUG && tag != null && msg != null) {
        Log.d(tag, msg);
    }
}
 
Example 7
Source File: Utility.java    From FacebookImageShareIntent with MIT License 4 votes vote down vote up
public static void logd(String tag, Exception e) {
    if (BuildConfig.DEBUG && tag != null && e != null) {
        Log.d(tag, e.getClass().getSimpleName() + ": " + e.getMessage());
    }
}
 
Example 8
Source File: Utility.java    From android-skeleton-project with MIT License 4 votes vote down vote up
public static void logd(String tag, String msg) {
    if (BuildConfig.DEBUG && tag != null && msg != null) {
        Log.d(tag, msg);
    }
}
 
Example 9
Source File: Utility.java    From android-skeleton-project with MIT License 4 votes vote down vote up
public static void logd(String tag, Exception e) {
    if (BuildConfig.DEBUG && tag != null && e != null) {
        Log.d(tag, e.getClass().getSimpleName() + ": " + e.getMessage());
    }
}
 
Example 10
Source File: Utility.java    From platform-friends-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public static void logd(String tag, Exception e) {
    if (BuildConfig.DEBUG && tag != null && e != null) {
        Log.d(tag, e.getClass().getSimpleName() + ": " + e.getMessage());
    }
}
 
Example 11
Source File: Utility.java    From barterli_android with Apache License 2.0 4 votes vote down vote up
public static void logd(String tag, String msg) {
    if (BuildConfig.DEBUG && tag != null && msg != null) {
        Log.d(tag, msg);
    }
}
 
Example 12
Source File: Utility.java    From barterli_android with Apache License 2.0 4 votes vote down vote up
public static void logd(String tag, Exception e) {
    if (BuildConfig.DEBUG && tag != null && e != null) {
        Log.d(tag, e.getClass().getSimpleName() + ": " + e.getMessage());
    }
}
 
Example 13
Source File: Utility.java    From FacebookNewsfeedSample-Android with Apache License 2.0 4 votes vote down vote up
public static void logd(String tag, Exception e) {
    if (BuildConfig.DEBUG && tag != null && e != null) {
        Log.d(tag, e.getClass().getSimpleName() + ": " + e.getMessage());
    }
}
 
Example 14
Source File: Utility.java    From Klyph with MIT License 4 votes vote down vote up
public static void logd(String tag, Exception e) {
    if (BuildConfig.DEBUG && tag != null && e != null) {
        Log.d(tag, e.getClass().getSimpleName() + ": " + e.getMessage());
    }
}
 
Example 15
Source File: Utility.java    From aws-mobile-self-paced-labs-samples with Apache License 2.0 4 votes vote down vote up
public static void logd(String tag, Exception e) {
    if (BuildConfig.DEBUG && tag != null && e != null) {
        Log.d(tag, e.getClass().getSimpleName() + ": " + e.getMessage());
    }
}
 
Example 16
Source File: Utility.java    From FacebookNewsfeedSample-Android with Apache License 2.0 4 votes vote down vote up
public static void logd(String tag, String msg) {
    if (BuildConfig.DEBUG && tag != null && msg != null) {
        Log.d(tag, msg);
    }
}
 
Example 17
Source File: Settings.java    From Klyph with MIT License 2 votes vote down vote up
/**
 * Certain logging behaviors are available for debugging beyond those that should be
 * enabled in production.
 *
 * Checks if a particular extended logging behavior is enabled.
 *
 * @param behavior
 *          The LoggingBehavior to check
 * @return whether behavior is enabled
 */
public static final boolean isLoggingBehaviorEnabled(LoggingBehavior behavior) {
    synchronized (loggingBehaviors) {
        return BuildConfig.DEBUG && loggingBehaviors.contains(behavior);
    }
}
 
Example 18
Source File: Settings.java    From android-skeleton-project with MIT License 2 votes vote down vote up
/**
 * Certain logging behaviors are available for debugging beyond those that should be
 * enabled in production.
 *
 * Checks if a particular extended logging behavior is enabled.
 *
 * @param behavior
 *          The LoggingBehavior to check
 * @return whether behavior is enabled
 */
public static final boolean isLoggingBehaviorEnabled(LoggingBehavior behavior) {
    synchronized (loggingBehaviors) {
        return BuildConfig.DEBUG && loggingBehaviors.contains(behavior);
    }
}
 
Example 19
Source File: Settings.java    From KlyphMessenger with MIT License 2 votes vote down vote up
/**
 * Certain logging behaviors are available for debugging beyond those that should be
 * enabled in production.
 *
 * Checks if a particular extended logging behavior is enabled.
 *
 * @param behavior
 *          The LoggingBehavior to check
 * @return whether behavior is enabled
 */
public static final boolean isLoggingBehaviorEnabled(LoggingBehavior behavior) {
    synchronized (loggingBehaviors) {
        return BuildConfig.DEBUG && loggingBehaviors.contains(behavior);
    }
}
 
Example 20
Source File: Settings.java    From aws-mobile-self-paced-labs-samples with Apache License 2.0 2 votes vote down vote up
/**
 * Certain logging behaviors are available for debugging beyond those that should be
 * enabled in production.
 *
 * Checks if a particular extended logging behavior is enabled.
 *
 * @param behavior
 *          The LoggingBehavior to check
 * @return whether behavior is enabled
 */
public static final boolean isLoggingBehaviorEnabled(LoggingBehavior behavior) {
    synchronized (loggingBehaviors) {
        return BuildConfig.DEBUG && loggingBehaviors.contains(behavior);
    }
}