public boolean isApptentiveDebuggable() { return appRelease.isDebug(); }
ApptentiveLog.v("Application Info:\n\tApptentive Key: %s\n\tApptentive Key: %s\n\tDebuggable APK: %b\n\tDefault locale: %s", apptentiveKey, apptentiveSignature, appRelease.isDebug(), Locale.getDefault()); return bRet;
@Test public void criteriaApplicationDebug() throws JSONException { AppRelease appRelease = AppReleaseManager.generateCurrentAppRelease(targetContext, null); String json = loadTextAssetAsString(TEST_DATA_DIR + "criteria/testCriteriaApplicationDebug.json"); json = json.replace("APPLICATION_DEBUG", Boolean.toString(appRelease.isDebug())); InteractionCriteria criteria = new InteractionCriteria(json); FieldManager fieldManager = new FieldManager(targetContext, new VersionHistory(), new EventData(), new Person(), new Device(), appRelease); assertTrue(criteria.isMet(fieldManager)); }
public static AppReleasePayload getPayload(AppRelease appRelease) { AppReleasePayload ret = new AppReleasePayload(); if (appRelease == null) { return ret; } ret.setAppStore(appRelease.getAppStore()); ret.setDebug(appRelease.isDebug()); ret.setIdentifier(appRelease.getIdentifier()); ret.setInheritStyle(appRelease.isInheritStyle()); ret.setOverrideStyle(appRelease.isOverrideStyle()); ret.setTargetSdkVersion(appRelease.getTargetSdkVersion()); ret.setType(appRelease.getType()); ret.setVersionCode(appRelease.getVersionCode()); ret.setVersionName(appRelease.getVersionName()); return ret; }
return appRelease.isDebug();
public static com.apptentive.android.sdk.model.SdkAndAppReleasePayload getPayload(Sdk sdk, AppRelease appRelease) { com.apptentive.android.sdk.model.SdkAndAppReleasePayload ret = new com.apptentive.android.sdk.model.SdkAndAppReleasePayload(); if (appRelease == null) { return ret; } // sdk data ret.setAuthorEmail(sdk.getAuthorEmail()); ret.setAuthorName(sdk.getAuthorName()); ret.setDistribution(sdk.getDistribution()); ret.setDistributionVersion(sdk.getDistributionVersion()); ret.setPlatform(sdk.getPlatform()); ret.setProgrammingLanguage(sdk.getProgrammingLanguage()); ret.setVersion(sdk.getVersion()); // app release data ret.setAppStore(appRelease.getAppStore()); ret.setDebug(appRelease.isDebug()); ret.setIdentifier(appRelease.getIdentifier()); ret.setInheritStyle(appRelease.isInheritStyle()); ret.setOverrideStyle(appRelease.isOverrideStyle()); ret.setTargetSdkVersion(appRelease.getTargetSdkVersion()); ret.setType(appRelease.getType()); ret.setVersionCode(appRelease.getVersionCode()); ret.setVersionName(appRelease.getVersionName()); return ret; } }