Skip to content

Commit

Permalink
fix: updated android and ios sdk versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Subhash703 committed May 29, 2024
1 parent db4976b commit aabd44d
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 9 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,24 @@ maven { url "https://maven.juspay.in/jp-build-packages/hyper-sdk/" }
```

Add the clientId ext property in root(top) `build.gradle`:
- You can also provide an override for base SDK version present in plugin (the newer version among both would be considered) by adding hyperSDKVersion - `Optional`
- Exclude microSDKs provided with HyperSDK for given clientId by adding excludedMicroSDKs - `Optional`


```groovy
buildscript {
....
ext {
....
clientId = "<clientId shared by Juspay team>"
hyperSDKVersion = "2.1.25"
hyperSDKVersion = "2.1.30"
excludedMicroSDKs = []
....
}
....
}
```

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


### iOS

Expand All @@ -56,7 +58,7 @@ pod install
"devDependencies": {
....
},
"hyperSdkIOSVersion": "2.1.37"
"hyperSdkIOSVersion": "2.1.41"
....
}
```
Expand Down
12 changes: 10 additions & 2 deletions 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-rc.01'
}
}

Expand Down Expand Up @@ -83,7 +83,7 @@ static def mostRecentVersion(List<String> versions) {
}

static def getHyperSDKVersion(rootProject) {
def hyperSdkVersion = '2.1.25'
def hyperSdkVersion = '2.1.30'
if (!rootProject.hasProperty('hyperSDKVersion')) {
return hyperSdkVersion
}
Expand All @@ -102,6 +102,13 @@ static def getClientId(rootProject) {
return rootProject.clientId
}

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

dependencies {
// For < 0.71, this will be from the local maven repo
// For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
Expand All @@ -114,4 +121,5 @@ dependencies {
hyperSdkPlugin {
clientId = getClientId(rootProject)
sdkVersion = getHyperSDKVersion(rootProject)
excludedMicroSDKs = getExcludedMicroSdks(rootProject)
}
4 changes: 2 additions & 2 deletions example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ buildscript {
ndkVersion = "23.1.7779620"

// Hyper SDK
clientId = 'geddit'
hyperSDKVersion = "2.1.15"
clientId = 'hypernative'
hyperSDKVersion = "2.1.30"
}
repositories {
google()
Expand Down
2 changes: 1 addition & 1 deletion hyper-sdk-react.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require "json"
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'

hyper_sdk_version = "2.1.37"
hyper_sdk_version = "2.1.41"

begin
package_json_path = File.expand_path(File.join(__dir__, "../../package.json"))
Expand Down

0 comments on commit aabd44d

Please sign in to comment.