From f2ba29d7953d7658a9d4f2af9f7ff106ef0019ca Mon Sep 17 00:00:00 2001 From: shiwei Date: Tue, 7 Sep 2021 09:48:45 +0800 Subject: [PATCH] update product search sdk version --- build.gradle | 1 + cameraDemo/build.gradle | 8 ++++---- doc/ProductSearch.md | 12 ++++++------ visearch-android/build.gradle | 12 ++++++------ 4 files changed, 17 insertions(+), 16 deletions(-) diff --git a/build.gradle b/build.gradle index 0f9c461..8adc4cf 100644 --- a/build.gradle +++ b/build.gradle @@ -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" diff --git a/cameraDemo/build.gradle b/cameraDemo/build.gradle index 52fbdbf..4ee2211 100644 --- a/cameraDemo/build.gradle +++ b/cameraDemo/build.gradle @@ -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 { @@ -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' diff --git a/doc/ProductSearch.md b/doc/ProductSearch.md index 82251a9..245412b 100644 --- a/doc/ProductSearch.md +++ b/doc/ProductSearch.md @@ -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 @@ -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 @@ -429,7 +429,7 @@ Here are a set of complex search examples that makes use of the other search par List attributes = new ArrayList(); 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() { @@ -437,7 +437,7 @@ Here are a set of complex search examples that makes use of the other search par public void onSearchResult(ProductResponse response, ErrorData error) { Map 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 data = p.getData(); } @@ -463,7 +463,7 @@ Here are a set of complex search examples that makes use of the other search par Map filters = new HashMap(); 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() { @@ -471,7 +471,7 @@ Here are a set of complex search examples that makes use of the other search par public void onSearchResult(ProductResponse response, ErrorData error) { Map 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 data = p.getData(); diff --git a/visearch-android/build.gradle b/visearch-android/build.gradle index bf40873..f3ff7ea 100644 --- a/visearch-android/build.gradle +++ b/visearch-android/build.gradle @@ -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}" } @@ -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'