本文整理匯總了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;
}