diff --git a/README.md b/README.md index 19cb4d3..78e5d1b 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/android/build.gradle b/android/build.gradle index e649b0b..6b88382 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' } } @@ -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") @@ -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..d73e97c 100644 --- a/example/android/build.gradle +++ b/example/android/build.gradle @@ -12,7 +12,8 @@ buildscript { // Hyper SDK clientId = 'geddit' - hyperSDKVersion = "2.1.15" + hyperSDKVersion = "2.1.25" + excludedMicroSDKs = [] } repositories { google()