Skip to content

Commit

Permalink
Merge pull request #81 from visenze/feature/PS-2853
Browse files Browse the repository at this point in the history
[PS-2853] update visearch tracking library version
  • Loading branch information
thehung111 authored Sep 7, 2021
2 parents f351e93 + f2ba29d commit d678b04
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 16 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ allprojects {
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
}
configurations.all {
resolutionStrategy.force "com.android.support:support-v4:23.1.1"
Expand Down
8 changes: 4 additions & 4 deletions cameraDemo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ buildscript {
apply plugin: 'com.android.application'

android {
compileSdkVersion 28
buildToolsVersion '28.0.3'
compileSdkVersion 29
buildToolsVersion "29.0.2"

defaultConfig {
applicationId "com.visenze.visearch.android.example"
minSdkVersion 21
targetSdkVersion 28
targetSdkVersion 29
versionCode 1
versionName "1.0.0"
javaCompileOptions {
Expand Down Expand Up @@ -63,7 +63,7 @@ android {

dependencies {
implementation project(":visearch-android")
// implementation ('com.visenze:visearch-android:1.5.3')
// implementation 'com.github.visenze:visearch-sdk-android:2.1.1'

implementation('androidx.appcompat:appcompat:1.0.0')
implementation 'me.littlecheesecake:waterfalllayoutview:1.0.0'
Expand Down
12 changes: 6 additions & 6 deletions doc/ProductSearch.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ allprojects {

include the dependency in your project using gradle:
```gradle
implementation 'com.github.visenze:visearch-sdk-android:2.0.1'
implementation 'com.github.visenze:visearch-sdk-android:2.1.1'
```

### 1.3 Add User Permissions
Expand Down Expand Up @@ -91,7 +91,7 @@ Our SDK additionally needs these user permissions to work. Add the following dec
```java
public class MyActivity extends Activity {
private static final String appKey = "YOUR_APP_KEY";
private static final Integer placementId = 1;
private static final Integer placementId = 1;
...

@Override
Expand Down Expand Up @@ -429,15 +429,15 @@ Here are a set of complex search examples that makes use of the other search par
List<String> attributes = new ArrayList<String>();
attributes.add("merchant_category");
params.setAttrsToGet(attributes);

// The productSearch variable is a class member variable assigned via
// SearchAPI.getProductSearchInstance() in a previous function (constructor etc)
productSearch.searchByImage(params, new ProductSearch.ResultListener() {
@Override
public void onSearchResult(ProductResponse response, ErrorData error) {
Map<String, String> mappings = response.getCatalogFieldsMapping();

// By setting attrsToGet, we can now find the `merchant_category` field in `data`.
// By setting attrsToGet, we can now find the `merchant_category` field in `data`.
for (Product p: response.getProducts()) {
Map<String, Object> data = p.getData();
}
Expand All @@ -463,15 +463,15 @@ Here are a set of complex search examples that makes use of the other search par
Map<String, String> filters = new HashMap<String,String>();
filters.put("merchant_category", "Clothing/Tops/Blouse");
params.setFilters(filters);

// The productSearch variable is a class member variable assigned via
// SearchAPI.getProductSearchInstance() in a previous function (constructor etc)
productSearch.searchByImage(params, new ProductSearch.ResultListener() {
@Override
public void onSearchResult(ProductResponse response, ErrorData error) {
Map<String, String> mappings = response.getCatalogFieldsMapping();

// By setting `attrsToGet`, we can now find the `merchant_category` field in `data`.
// By setting `attrsToGet`, we can now find the `merchant_category` field in `data`.
// By setting `filters`, we can now see that all products belongs to the "Clothing/Tops/Blouse" category from `data["merchant_category"]`.
for (Product p: response.getProducts()) {
Map<String, Object> data = p.getData();
Expand Down
12 changes: 6 additions & 6 deletions visearch-android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ plugins {

def versionMajor = 2
def versionMinor = 1
def versionPatch = 0
version = '2.1.0'
def versionPatch = 1
version = '2.1.1'

android {
compileSdkVersion 28
buildToolsVersion '28.0.3'
compileSdkVersion 29
buildToolsVersion "29.0.2"

defaultConfig {
minSdkVersion 19
targetSdkVersion 28
targetSdkVersion 29
versionCode versionMajor * 10000 + versionMinor * 100 + versionPatch
versionName "${versionMajor}.${versionMinor}.${versionPatch}"
}
Expand All @@ -33,7 +33,7 @@ android {


dependencies {
implementation 'com.visenze.datatracking:tracking:0.1.9'
implementation 'com.github.visenze:visenze-tracking-android:0.2.1'
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'

Expand Down

0 comments on commit d678b04

Please sign in to comment.