idwise-react-native-sdk 4.7.3-alpha.2 → 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,51 +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
- s.dependency "React-Codegen"
41
- s.dependency "RCT-Folly"
42
- s.dependency "RCTRequired"
43
- s.dependency "RCTTypeSafety"
44
- s.dependency "ReactCommon/turbomodule/core"
45
-
46
-
47
- # Don't install the dependencies when we run `pod install` in the old architecture.
48
- if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
49
- s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
50
- s.pod_target_xcconfig = {
51
- "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
52
- "OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
53
- "CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
54
- "EXCLUDED_ARCHS[sdk=iphonesimulator*]" => "arm64",
55
- "CODE_SIGNING_ALLOWED" => 'NO'
56
- }
57
- s.dependency "React-Codegen"
58
- s.dependency "RCT-Folly"
59
- s.dependency "RCTRequired"
60
- s.dependency "RCTTypeSafety"
61
- s.dependency "ReactCommon/turbomodule/core"
62
-
63
-
64
-
65
- end
66
- end
23
+ install_modules_dependencies(s)
24
+
67
25
  end
@@ -1,2 +1,9 @@
1
+ #ifdef RCT_NEW_ARCH_ENABLED
2
+ #import <React-Codegen/React-Codegen.h>
3
+ #else
1
4
  #import <React/RCTBridgeModule.h>
5
+ @interface IdwiseMobileSdk : NSObject <RCTBridgeModule>
6
+ @end
7
+ #endif
8
+
2
9
  #import <React/RCTViewManager.h>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "idwise-react-native-sdk",
3
- "version": "4.7.3-alpha.02",
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": [