Skip to content

Commit

Permalink
Merge pull request #87 from visenze/feature/PS-3189
Browse files Browse the repository at this point in the history
[PS-3189] update publish script
  • Loading branch information
swVisenze authored Feb 8, 2022
2 parents 6c4b17f + c541fb6 commit 55ecf8b
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 12 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.2'
classpath 'com.android.tools.build:gradle:4.2.2'
}
}

Expand Down
4 changes: 4 additions & 0 deletions cameraDemo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,13 @@ android {
}
}
buildTypes {
debug {
buildConfigField("String","VERSION_NAME","\"${defaultConfig.versionName}\"")
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
buildConfigField("String","VERSION_NAME","\"${defaultConfig.versionName}\"")
}
}

Expand Down
6 changes: 0 additions & 6 deletions cameraDemo/src/main/res/values-w820dp/dimens.xml

This file was deleted.

4 changes: 2 additions & 2 deletions doc/ProductSearch.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ With the release of ViSenze's Catalog system, ViSearch Android SDK will now incl
- Aggregate search results on a product level instead of image level
- Consistent data type in API response with Catalog’s schema

> Current stable version: 2.1.4
> Current stable version: 2.1.5
> Minimum Android SDK Version: API 9, Android 2.3
Expand Down Expand Up @@ -64,7 +64,7 @@ allprojects {
include the dependency in your project using gradle:
```gradle
implementation 'com.github.visenze:visenze-tracking-android:0.2.1'
implementation 'com.github.visenze:visearch-sdk-android:2.1.4'
implementation 'com.github.visenze:visearch-sdk-android:2.1.5'
```

### 1.3 Add User Permissions
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
22 changes: 20 additions & 2 deletions visearch-android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ plugins {

def versionMajor = 2
def versionMinor = 1
def versionPatch = 4
version = '2.1.4'
def versionPatch = 5
version = '2.1.5'

android {
compileSdkVersion 29
Expand All @@ -20,9 +20,13 @@ android {
}

buildTypes {
debug {
buildConfigField("String","VERSION_NAME","\"${defaultConfig.versionName}\"")
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
buildConfigField("String","VERSION_NAME","\"${defaultConfig.versionName}\"")
}
}

Expand All @@ -42,3 +46,17 @@ dependencies {
testImplementation 'org.mockito:mockito-core:2.8.9'
testImplementation 'org.robolectric:robolectric:3.1'
}

afterEvaluate {
publishing {
publications {
// Creates a Maven publication called "release".
release(MavenPublication) {
from components.release
groupId = 'com.github.visenze'
artifactId = 'visearch-sdk-android'
version = "${version}"
}
}
}
}

0 comments on commit 55ecf8b

Please sign in to comment.