本文整理汇总了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);
}
}
示例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);
}
}
示例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();
}
}
示例4: getApiVersionCode
import com.playuav.android.BuildConfig; //导入依赖的package包/类
@Override
public int getApiVersionCode() throws RemoteException {
return BuildConfig.VERSION_CODE;
}
示例5: getClientVersionCode
import com.playuav.android.BuildConfig; //导入依赖的package包/类
@Override
public int getClientVersionCode() throws RemoteException {
return BuildConfig.VERSION_CODE;
}