当前位置: 首页>>代码示例>>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;未经允许,请勿转载。