/** * 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; }
private static List<NativeAppInfo> buildFacebookAppList() { List<NativeAppInfo> list = new ArrayList<NativeAppInfo>(); // Katana needs to be the first thing in the list since it will get selected as the default FACEBOOK_APP_INFO list.add(FACEBOOK_APP_INFO); if(BuildConfig.DEBUG) { list.add(new WakizashiAppInfo()); } return list; }
public static void logd(String tag, Exception e) { if (BuildConfig.DEBUG && tag != null && e != null) { Log.d(tag, e.getClass().getSimpleName() + ": " + e.getMessage()); } }
public static void logd(String tag, String msg) { if (BuildConfig.DEBUG && tag != null && msg != null) { Log.d(tag, msg); } }