idwise-react-native-sdk 4.7.3-alpha.3 → 4.7.3-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,6 @@
1
1
  require "json"
2
2
 
3
3
  package = JSON.parse(File.read(File.join(__dir__, "package.json")))
4
- folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
5
4
 
6
5
  Pod::Spec.new do |s|
7
6
  s.name = "idwise-react-native-sdk"
@@ -17,46 +16,10 @@ Pod::Spec.new do |s|
17
16
  s.source_files = "ios/**/*.{h,m,mm,swift}"
18
17
  s.static_framework = true
19
18
 
20
- s.pod_target_xcconfig = {
21
- "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
22
- "OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
23
- "CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
24
- "EXCLUDED_ARCHS[sdk=iphonesimulator*]" => "arm64",
25
- "CODE_SIGNING_ALLOWED" => 'NO'
26
- }
27
19
 
20
+ s.preserve_paths = 'ios/IDWiseSDK.xcframework/**/*'
21
+ s.vendored_frameworks = 'ios/IDWiseSDK.xcframework'
28
22
 
29
- s.preserve_paths = 'ios/IDWiseSDK.xcframework/**/*'
30
- s.xcconfig = { 'OTHER_LDFLAGS' => '-framework IDWiseSDK' }
31
- s.vendored_frameworks = 'ios/IDWiseSDK.xcframework'
32
- s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
33
-
34
- # Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
35
- # See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
36
- if respond_to?(:install_modules_dependencies, true)
37
- install_modules_dependencies(s)
38
- else
39
- s.dependency "React-Core"
40
-
41
-
42
- # Don't install the dependencies when we run `pod install` in the old architecture.
43
- if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
44
- s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
45
- s.pod_target_xcconfig = {
46
- "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
47
- "OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
48
- "CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
49
- "EXCLUDED_ARCHS[sdk=iphonesimulator*]" => "arm64",
50
- "CODE_SIGNING_ALLOWED" => 'NO'
51
- }
52
- s.dependency "React-Codegen"
53
- s.dependency "RCT-Folly"
54
- s.dependency "RCTRequired"
55
- s.dependency "RCTTypeSafety"
56
- s.dependency "ReactCommon/turbomodule/core"
57
-
58
-
59
-
60
- end
61
- end
23
+ install_modules_dependencies(s)
24
+
62
25
  end
@@ -2,5 +2,8 @@
2
2
  #import <React-Codegen/React-Codegen.h>
3
3
  #else
4
4
  #import <React/RCTBridgeModule.h>
5
+ @interface IdwiseMobileSdk : NSObject <RCTBridgeModule>
6
+ @end
5
7
  #endif
8
+
6
9
  #import <React/RCTViewManager.h>
@@ -1,8 +1,4 @@
1
- #ifdef RCT_NEW_ARCH_ENABLED
2
- #import <React-Codegen/React-Codegen.h>
3
- #else
4
1
  #import <React/RCTBridgeModule.h>
5
- #endif
6
2
  #import <Foundation/Foundation.h>
7
3
  #import <React/RCTEventEmitter.h>
8
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "idwise-react-native-sdk",
3
- "version": "4.7.3-alpha.03",
3
+ "version": "4.7.3-alpha.05",
4
4
  "description": "IDWise React Native Bridge",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -67,8 +67,8 @@
67
67
  "jest": "^28.1.1",
68
68
  "pod-install": "^0.1.0",
69
69
  "prettier": "^2.0.5",
70
- "react": "18.2.0",
71
- "react-native": "0.72.6",
70
+ "react": "17.0.2",
71
+ "react-native": "0.68.0",
72
72
  "react-native-builder-bob": "^0.20.0",
73
73
  "release-it": "^15.0.0",
74
74
  "turbo": "^1.10.7",
@@ -78,7 +78,7 @@
78
78
  "@types/react": "17.0.21"
79
79
  },
80
80
  "peerDependencies": {
81
- "react": "18.2.0",
81
+ "react": "17.0.2",
82
82
  "react-native": "0.68.0"
83
83
  },
84
84
  "workspaces": [