From 0318e25f248914ee8c3ff0ff297036bf4d2ccb9e Mon Sep 17 00:00:00 2001 From: Shachar Udi Date: Fri, 6 Dec 2024 16:11:44 -0500 Subject: [PATCH] MOB-1417 #comment updated sdks and added warning required methods to android --- android/build.gradle | 4 ++-- .../TsIdentityOrchestrationModule.kt | 10 ++++++++++ example/android/build.gradle | 2 -- react-native-ts-identity-orchestration.podspec | 2 +- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 8f4ab83..e807f16 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -92,7 +92,7 @@ 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 //noinspection GradleDynamicVersion - implementation "com.ts.sdk:identityorchestration:1.0.+" + implementation "com.ts.sdk:identityorchestration:1.0.22" implementation "com.facebook.react:react-native:+" implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" -} \ No newline at end of file +} diff --git a/android/src/main/java/com/tsidentityorchestration/TsIdentityOrchestrationModule.kt b/android/src/main/java/com/tsidentityorchestration/TsIdentityOrchestrationModule.kt index a687634..022d8df 100644 --- a/android/src/main/java/com/tsidentityorchestration/TsIdentityOrchestrationModule.kt +++ b/android/src/main/java/com/tsidentityorchestration/TsIdentityOrchestrationModule.kt @@ -35,6 +35,16 @@ class TsIdentityOrchestrationModule(private val reactContext: ReactApplicationCo return NAME } + @ReactMethod + fun addListener(type: String?) { + // Keep: Required for RN built in Event Emitter Calls. + } + + @ReactMethod + fun removeListeners(type: Int?) { + // Keep: Required for RN built in Event Emitter Calls. + } + @ReactMethod fun initializeSDK(promise: Promise) { promise.reject( diff --git a/example/android/build.gradle b/example/android/build.gradle index 160ad67..f667762 100644 --- a/example/android/build.gradle +++ b/example/android/build.gradle @@ -4,8 +4,6 @@ buildscript { minSdkVersion = 23 compileSdkVersion = 33 targetSdkVersion = 33 -// ndkVersion = "26.1.10909125" -// kotlinVersion = "1.9.22" ndkVersion = "25.1.8937393" kotlinVersion = "1.8.0" } diff --git a/react-native-ts-identity-orchestration.podspec b/react-native-ts-identity-orchestration.podspec index eb8324f..061bee6 100644 --- a/react-native-ts-identity-orchestration.podspec +++ b/react-native-ts-identity-orchestration.podspec @@ -14,7 +14,7 @@ Pod::Spec.new do |s| s.platforms = { :ios => min_ios_version_supported } s.source = { :git => "https://github.com/TransmitSecurity/react-native-ts-identity-orchestration.git.git", :tag => "#{s.version}" } - s.dependency 'IdentityOrchestration', '~> 1.1.3' + s.dependency 'IdentityOrchestration', '~> 1.1.10' s.source_files = "ios/**/*.{h,m,mm,swift}" # Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.