diff --git a/README.md b/README.md index 7f5fa2d..b436bd9 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,9 @@ 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 { @@ -24,15 +27,14 @@ buildscript { ext { .... clientId = "" - 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 @@ -56,7 +58,7 @@ pod install "devDependencies": { .... }, - "hyperSdkIOSVersion": "2.1.37" + "hyperSdkIOSVersion": "2.1.41" .... } ``` diff --git a/android/build.gradle b/android/build.gradle index e649b0b..3c7722f 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -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' } } @@ -83,7 +83,7 @@ static def mostRecentVersion(List versions) { } static def getHyperSDKVersion(rootProject) { - def hyperSdkVersion = '2.1.25' + def hyperSdkVersion = '2.1.30' if (!rootProject.hasProperty('hyperSDKVersion')) { return hyperSdkVersion } @@ -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 @@ -114,4 +121,5 @@ dependencies { hyperSdkPlugin { clientId = getClientId(rootProject) sdkVersion = getHyperSDKVersion(rootProject) + excludedMicroSDKs = getExcludedMicroSdks(rootProject) } diff --git a/example/android/build.gradle b/example/android/build.gradle index db29cd1..454910f 100644 --- a/example/android/build.gradle +++ b/example/android/build.gradle @@ -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() diff --git a/hyper-sdk-react.podspec b/hyper-sdk-react.podspec index 89ac9c4..e0214a5 100644 --- a/hyper-sdk-react.podspec +++ b/hyper-sdk-react.podspec @@ -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"))