本文整理匯總了Java中com.facebook.android.BuildConfig類的典型用法代碼示例。如果您正苦於以下問題:Java BuildConfig類的具體用法?Java BuildConfig怎麽用?Java BuildConfig使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
BuildConfig類屬於com.facebook.android包,在下文中一共展示了BuildConfig類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: setFacebookDomain
import com.facebook.android.BuildConfig; //導入依賴的package包/類
/**
* 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;
}
示例2: buildFacebookAppList
import com.facebook.android.BuildConfig; //導入依賴的package包/類
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;
}
示例3: logd
import com.facebook.android.BuildConfig; //導入依賴的package包/類
public static void logd(String tag, Exception e) {
if (BuildConfig.DEBUG && tag != null && e != null) {
Log.d(tag, e.getClass().getSimpleName() + ": " + e.getMessage());
}
}