Skip to content

Commit

Permalink
v3.1.0 release with iovation sdk support for conversations
Browse files Browse the repository at this point in the history
  • Loading branch information
Casey Kulm committed Mar 9, 2016
1 parent 8b1cccc commit 2b30c20
Show file tree
Hide file tree
Showing 92 changed files with 546 additions and 9,455 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

# 3.1.0

## Conversations
* Added iovation support to BazaarRequest#postSubmission(RequestType type, BazaarParams params, OnBazaarResponse listener)

# 3.0.1

## Product Recommendations
Expand Down
17 changes: 17 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
apply plugin: 'com.android.application'

buildscript {
repositories {
flatDir {
dirs 'libs'
}
}
}

repositories {
flatDir {
dirs 'libs'
}
}

android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
Expand Down Expand Up @@ -52,6 +66,9 @@ dependencies {
compile "com.android.support:support-v4:$rootProject.supportLibraryVersion"
compile "com.android.support:cardview-v7:$rootProject.supportLibraryVersion"

// iovation aar dependency
// compile(name:'deviceprint-release-2.3.0', ext:'aar')

releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.3.1'

debugCompile 'com.squareup.leakcanary:leakcanary-android:1.3.1'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import com.bazaarvoice.bvandroidsdk.OnBazaarResponse;
import com.bazaarvoice.bvandroidsdk.SubmissionMediaParams;
import com.bazaarvoice.bvandroidsdk.SubmissionParams;
import com.bazaarvoice.bvandroidsdk.types.Action;
import com.bazaarvoice.bvandroidsdk.types.Equality;
import com.bazaarvoice.bvandroidsdk.types.FeedbackContentType;
import com.bazaarvoice.bvandroidsdk.types.FeedbackType;
Expand Down Expand Up @@ -259,13 +260,20 @@ private void handleReviewSub() {
BazaarRequest request = new BazaarRequest();
SubmissionParams params = new SubmissionParams();
params.setProductId(String.valueOf(new Random().nextLong()));
params.setCategoryId(String.valueOf(new Random().nextLong()));
params.setUserId("123abcd");
params.setRating(5);
params.setTitle("Test Title" + (new Random()).nextLong());
params.setReviewText("Lorem ipsum dolor sit amet, vim at harum molestie, ne vim posse senserit. Quas animal utroque ei duo. Has ne animal omittam maluisset. Te est dicat scaevola invidunt, eum eu maiongorum scripserit. Eos ei nibh ignota, ex has oratio suscipiantur." + (new Random()).nextLong());
params.setUserNickname("testnickname");
params.setAction(Action.SUBMIT);
params.addPhotoUrl("http://apitestcustomer.ugc.bazaarvoice.com/bvstaging/5555/ps_amazon_s3_3rgg6s4xvev0zhzbnabyneo21/photo.jpg");
params.addVideoUrl("http://www.youtube.com");

// Add iovation fingerprint to Bazaarvoice Request
// String blackbox = getBlackbox(getContext().getApplicationContext());
// params.setFingerprint(blackbox);

request.postSubmission(RequestType.REVIEWS, params, listener);
}

Expand Down
3 changes: 1 addition & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ ext {
picassoVersion = '2.5.2'
okhttpVersion = '3.1.2'
mockWebServerVersion = '3.0.0'
jacksonVersion = '2.1.0'
gsonVersion = '2.5'
guavaVersion = '18.0'
junitVersion = '4.12'
Expand All @@ -51,7 +50,7 @@ ext {
espressoVersion = '2.2.1'
robolectricVersion = '2.2'

bvsdkVersion = '3.0.1-SNAPSHOT'
bvsdkVersion = '3.1.0-SNAPSHOT'

travisBuild = System.getenv("TRAVIS") == "true"
// allows for -Dpre-dex=false to be set
Expand Down
2 changes: 1 addition & 1 deletion bvandroidsdkadvertising/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.bazaarvoice.bvandroidsdk</groupId>
<artifactId>bvandroidsdk-parent</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>3.1.1-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
3 changes: 0 additions & 3 deletions bvandroidsdkcommon/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ android {
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])

compile "com.fasterxml.jackson.core:jackson-core:$rootProject.jacksonVersion"
compile "com.fasterxml.jackson.core:jackson-databind:$rootProject.jacksonVersion"
compile "com.fasterxml.jackson.core:jackson-annotations:$rootProject.jacksonVersion"
compile "com.google.code.gson:gson:$rootProject.gsonVersion"
compile "com.google.guava:guava:$rootProject.guavaVersion"
compile "com.squareup.okhttp3:okhttp:$rootProject.okhttpVersion"
Expand Down
17 changes: 1 addition & 16 deletions bvandroidsdkcommon/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.bazaarvoice.bvandroidsdk</groupId>
<artifactId>bvandroidsdk-parent</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>3.1.1-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand All @@ -19,21 +19,6 @@
<scope>provided</scope>
</dependency>

<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</dependency>

<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>

<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</dependency>

<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class BVSDK {
private static final String IMMEDIATE_BV_THREAD_NAME = "BV-ImmediateThread";
private static BVSDK instance;

static final String SDK_VERSION = "3.0.1";
static final String SDK_VERSION = "3.1.0";

final Application application;
final ExecutorService scheduledExecutorService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,12 @@

package com.bazaarvoice.bvandroidsdk;

class RecommendationUsedFeatureSchema extends BvAnalyticsSchema {

private static final String KEY_BV_PRODUCT = "bvProduct";
private static final String KEY_NAME = "name";
private static final String KEY_DETAIL1 = "detail1";
private static final String KEY_PRODUCT_ID = "productId";
private static final String eventClass = "Feature";
private static final String eventType = "Used";
private static final String source = "recommendation-mob";

private static final String bvProduct = "Recommendations";
/**
* Internal API: Custom schema for recommendation used feature events
*/
class RecommendationUsedFeatureSchema extends UsedFeatureCanonicalSchema {

private static final String source = "recommendation-mob";
private static final String name = "conversion";

public enum RecommendationFeature {
Expand All @@ -35,13 +29,11 @@ public String getValue() {
}

public RecommendationUsedFeatureSchema(String productId, RecommendationFeature feature, MagpieMobileAppPartialSchema magpieMobileAppPartialSchema, RecommendationAttributesPartialSchema recommendationAttributesPartialSchema) {
super(eventClass, eventType, source);
addKeyVal(KEY_BV_PRODUCT, bvProduct);
addKeyVal(KEY_NAME, name);
super(source, name);
if (feature != null) {
addKeyVal(KEY_DETAIL1, feature.getValue());
addDetail1(feature.getValue());
}
addKeyVal(KEY_PRODUCT_ID, productId);
addProductId(productId);
addPartialSchema(magpieMobileAppPartialSchema);
addPartialSchema(recommendationAttributesPartialSchema);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/**
* Copyright 2016 Bazaarvoice Inc. All rights reserved.
*/

package com.bazaarvoice.bvandroidsdk;

/**
* Internal API: Canonical schema for used feature events
*/
abstract class UsedFeatureCanonicalSchema extends BvAnalyticsSchema {

private static final String KEY_NAME = "name";
private static final String KEY_DETAIL1 = "detail1";
private static final String KEY_PRODUCT_ID = "productId";
private static final String KEY_CATEGORY_ID = "categoryId";
private static final String eventClass = "Feature";
private static final String eventType = "Used";

public UsedFeatureCanonicalSchema(String source, String name) {
super(eventClass, eventType, source);
addKeyVal(KEY_NAME, name);
}

protected void addDetail1(String detail1) {
addKeyVal(KEY_DETAIL1, detail1);
}

protected void addProductId(String productId) {
addKeyVal(KEY_PRODUCT_ID, productId);
}

protected void addCategoryId(String categoryId) {
addKeyVal(KEY_CATEGORY_ID, categoryId);
}
}

This file was deleted.

This file was deleted.

Loading

0 comments on commit 2b30c20

Please sign in to comment.