Skip to content

Commit

Permalink
Update Freshchat SDK to version 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Prasannan N committed Nov 16, 2017
1 parent 758fa45 commit 869338a
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
26 changes: 24 additions & 2 deletions freshchat_sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,38 @@ apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
group='com.github.freshdesk'

def static getEscapedString(value) {
return "\"$value\"";
}

def getScmRevision = {
String rev = 'git rev-parse --short HEAD'.execute().text.trim()
return getEscapedString(rev)
}

def getScmBranch = {
String branch = "git rev-parse --abbrev-ref HEAD".execute().text.trim()
return getEscapedString(branch)
}

android {
compileSdkVersion 23
buildToolsVersion "26.0.2"

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}

defaultConfig {
minSdkVersion 16
targetSdkVersion 23
versionCode 11
versionName "1.1.1"
versionCode 20
versionName "1.2.0"
consumerProguardFiles 'consumer-proguard-rules.pro'
buildConfigField "long", 'BUILT_AT', System.currentTimeMillis() + 'L'
buildConfigField "String", "SCM_REV", getScmRevision()
buildConfigField "String", "SCM_BRANCH", getScmBranch()
}
buildTypes {
release {
Expand Down
Binary file modified freshchat_sdk/libs/freshchat.jar
Binary file not shown.
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-3.5-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-bin.zip

0 comments on commit 869338a

Please sign in to comment.