Skip to content

Commit

Permalink
[TIMOB-26516] Always set analytics meta
Browse files Browse the repository at this point in the history
  • Loading branch information
Gary Mathews authored and sgtcoolguy committed Nov 6, 2018
1 parent ac1e14f commit e484872
Showing 1 changed file with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -409,23 +409,23 @@ public void postAppInfo()
{
deployData = new TiDeployData(this);

if (isAnalyticsEnabled()) {
String deployType = this.appProperties.getString("ti.deploytype", "unknown");
if ("unknown".equals(deployType)) {
deployType = this.appInfo.getDeployType();
}
String deployType = this.appProperties.getString("ti.deploytype", "unknown");
if ("unknown".equals(deployType)) {
deployType = this.appInfo.getDeployType();
}

String buildType = this.appInfo.getBuildType();
if (buildType != null && !buildType.equals("")) {
APSAnalyticsMeta.setBuildType(buildType);
}
String buildType = this.appInfo.getBuildType();
if (buildType != null && !buildType.equals("")) {
APSAnalyticsMeta.setBuildType(buildType);
}

APSAnalyticsMeta.setAppId(this.appInfo.getId());
APSAnalyticsMeta.setAppName(this.appInfo.getName());
APSAnalyticsMeta.setAppVersion(this.appInfo.getVersion());
APSAnalyticsMeta.setDeployType(deployType);
APSAnalyticsMeta.setSdkVersion("ti." + getTiBuildVersion());
APSAnalyticsMeta.setAppId(this.appInfo.getId());
APSAnalyticsMeta.setAppName(this.appInfo.getName());
APSAnalyticsMeta.setAppVersion(this.appInfo.getVersion());
APSAnalyticsMeta.setDeployType(deployType);
APSAnalyticsMeta.setSdkVersion("ti." + getTiBuildVersion());

if (isAnalyticsEnabled()) {
APSAnalytics.getInstance().initialize(getAppGUID(), this);
} else {
Log.i(TAG, "Analytics have been disabled");
Expand Down

0 comments on commit e484872

Please sign in to comment.