Skip to content

Commit

Permalink
fix: updated hypersdk plugin version to 2.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Subhash703 authored and harshgarg18 committed Jul 16, 2024
1 parent d582427 commit 7b15487
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ buildscript {
....
}
```

Optionally, you can also provide an override for base SDK version present in plugin (the newer version among both would be considered).

- You can also provide an override for base SDK version present in plugin (the newer version among both would be considered). - Optional
- Exclude microSDKs provided with HyperSDK for given clientId by adding excludedMicroSDKs - Optional

### iOS

Expand Down
10 changes: 9 additions & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {

dependencies {
classpath 'com.android.tools.build:gradle:4.0.1'
classpath 'in.juspay:hypersdk.plugin:2.0.6'
classpath 'in.juspay:hypersdk.plugin:2.0.8'
}
}

Expand Down Expand Up @@ -95,6 +95,13 @@ static def getHyperSDKVersion(rootProject) {
return hyperSdkVersion
}

static def getExcludedMicroSdks(rootProject) {
if (!rootProject.hasProperty('excludedMicroSDKs')) {
return []
}
return rootProject.excludedMicroSDKs
}

static def getClientId(rootProject) {
if (!rootProject.hasProperty('clientId')) {
throw new GradleException("clientId parameter is required in ext block of root build.gradle")
Expand All @@ -114,4 +121,5 @@ dependencies {
hyperSdkPlugin {
clientId = getClientId(rootProject)
sdkVersion = getHyperSDKVersion(rootProject)
excludedMicroSDKs = getExcludedMicroSdks(rootProject)
}
3 changes: 2 additions & 1 deletion example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ buildscript {

// Hyper SDK
clientId = 'geddit'
hyperSDKVersion = "2.1.15"
hyperSDKVersion = "2.1.25"
excludedMicroSDKs = []
}
repositories {
google()
Expand Down

0 comments on commit 7b15487

Please sign in to comment.