當前位置: 首頁>>代碼示例>>Java>>正文


Java BuildConfig類代碼示例

本文整理匯總了Java中com.playuav.android.BuildConfig的典型用法代碼示例。如果您正苦於以下問題:Java BuildConfig類的具體用法?Java BuildConfig怎麽用?Java BuildConfig使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


BuildConfig類屬於com.playuav.android包,在下文中一共展示了BuildConfig類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: initGATracker

import com.playuav.android.BuildConfig; //導入依賴的package包/類
public static void initGATracker(DroidPlannerApp app) {
	if (sAppTracker == null) {
		final Context context = app.getApplicationContext();

		final GoogleAnalytics analytics = GoogleAnalytics.getInstance(context);

		// Call is needed for now to allow dispatching of auto activity
		// reports
		// (http://stackoverflow.com/a/23256722/1088814)
		analytics.enableAutoActivityReports(app);

		analytics.setAppOptOut(!new DroidPlannerPrefs(context).isUsageStatisticsEnabled());

		// If we're in debug mode, set log level to verbose.
		if (BuildConfig.DEBUG) {
			analytics.getLogger().setLogLevel(Logger.LogLevel.VERBOSE);
		}

		sAppTracker = analytics.newTracker(R.xml.google_analytics_tracker);
	}
}
 
開發者ID:jiaminghan,項目名稱:droidplanner-master,代碼行數:22,代碼來源:GAUtils.java

示例2: initGATracker

import com.playuav.android.BuildConfig; //導入依賴的package包/類
public static void initGATracker(DroidPlannerApp app) {
    if (sAppTracker == null) {
        final Context context = app.getApplicationContext();

        final GoogleAnalytics analytics = GoogleAnalytics.getInstance(context);

        // Call is needed for now to allow dispatching of auto activity reports
        // (http://stackoverflow.com/a/23256722/1088814)
        analytics.enableAutoActivityReports(app);

        analytics.setAppOptOut(!new DroidPlannerPrefs(context).isUsageStatisticsEnabled());

        // If we're in debug mode, set log level to verbose.
        if (BuildConfig.DEBUG) {
            analytics.getLogger().setLogLevel(Logger.LogLevel.VERBOSE);
        }

        sAppTracker = analytics.newTracker(R.xml.google_analytics_tracker);
    }
}
 
開發者ID:jiaminghan,項目名稱:droidplanner-master,代碼行數:21,代碼來源:GAUtils.java

示例3: onServiceConnected

import com.playuav.android.BuildConfig; //導入依賴的package包/類
@Override
public void onServiceConnected(ComponentName name, IBinder service) {
    o3drServices = IDroidPlannerServices.Stub.asInterface(service);
    try {
        final int libVersionCode = o3drServices.getApiVersionCode();
        if(libVersionCode < BuildConfig.VERSION_CODE){
            //Prompt the user to update the 3DR Services app.
            o3drServices = null;
            promptFor3DRServicesUpdate();
            context.unbindService(o3drServicesConnection);
        }
        else {
            notifyServiceConnected();
        }
    } catch (RemoteException e) {
        notifyServiceInterrupted();
    }
}
 
開發者ID:jiaminghan,項目名稱:droidplanner-master,代碼行數:19,代碼來源:ServiceManager.java

示例4: getApiVersionCode

import com.playuav.android.BuildConfig; //導入依賴的package包/類
@Override
public int getApiVersionCode() throws RemoteException {
    return BuildConfig.VERSION_CODE;
}
 
開發者ID:jiaminghan,項目名稱:droidplanner-master,代碼行數:5,代碼來源:DPServices.java

示例5: getClientVersionCode

import com.playuav.android.BuildConfig; //導入依賴的package包/類
@Override
public int getClientVersionCode() throws RemoteException {
    return BuildConfig.VERSION_CODE;
}
 
開發者ID:jiaminghan,項目名稱:droidplanner-master,代碼行數:5,代碼來源:DroneApiListener.java


注:本文中的com.playuav.android.BuildConfig類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。