judokit-react-native 3.4.9 → 4.0.0
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.
- package/JudoPay.tsx +41 -26
- package/RNJudopay.podspec +1 -1
- package/android/build.gradle +113 -124
- package/android/src/main/java/com/reactlibrary/Extensions.kt +187 -5
- package/android/src/main/java/com/reactlibrary/Helpers.kt +177 -16
- package/android/src/main/java/com/reactlibrary/JudoReactNativeModule.kt +54 -1
- package/ios/.xcode.env +11 -0
- package/ios/Classes/RNJudo.m +22 -6
- package/ios/Classes/Wrappers/RNWrappers.m +448 -79
- package/ios/Podfile +28 -56
- package/ios/Podfile.lock +418 -208
- package/ios/RNJudo.xcodeproj/project.pbxproj +21 -16
- package/ios/RNJudo.xcodeproj/xcshareddata/xcschemes/RNJudo.xcscheme +1 -1
- package/package.json +31 -25
- package/types/JudoTypes.tsx +80 -23
package/ios/Podfile
CHANGED
|
@@ -1,72 +1,44 @@
|
|
|
1
|
+
require_relative '../node_modules/react-native/scripts/react_native_pods'
|
|
1
2
|
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
|
|
2
|
-
platform :ios, '11.0'
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
find = "_currentFrame.CGImage;"
|
|
7
|
-
replace = "_currentFrame.CGImage ;} else { [super displayLayer:layer];"
|
|
8
|
-
op = `sed -ie "s/#{find}/#{replace}/" ../node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m`
|
|
9
|
-
puts("Image fix for ios14 done")
|
|
4
|
+
platform :ios, '12.4'
|
|
5
|
+
install! 'cocoapods', :deterministic_uuids => false
|
|
10
6
|
|
|
11
|
-
|
|
12
|
-
find_and_replace("../node_modules/react-native/React/CxxBridge/RCTCxxBridge.mm",
|
|
13
|
-
"_initializeModules:(NSArray<id<RCTBridgeModule>> *)modules", "_initializeModules:(NSArray<Class> *)modules")
|
|
14
|
-
find_and_replace("../node_modules/react-native/ReactCommon/turbomodule/core/platform/ios/RCTTurboModuleManager.mm",
|
|
15
|
-
"RCTBridgeModuleNameForClass(module))", "RCTBridgeModuleNameForClass(Class(module)))")
|
|
16
|
-
end
|
|
7
|
+
production = ENV["PRODUCTION"] == "1"
|
|
17
8
|
|
|
18
9
|
target 'RNJudo' do
|
|
19
|
-
|
|
10
|
+
config = use_native_modules!
|
|
11
|
+
|
|
12
|
+
# Flags change depending on the env values.
|
|
13
|
+
flags = get_default_flags()
|
|
14
|
+
|
|
15
|
+
use_react_native!(
|
|
16
|
+
:path => config[:reactNativePath],
|
|
17
|
+
# to enable hermes on iOS, change `false` to `true` and then install pods
|
|
18
|
+
:production => production,
|
|
19
|
+
:hermes_enabled => flags[:hermes_enabled],
|
|
20
|
+
:fabric_enabled => flags[:fabric_enabled],
|
|
21
|
+
:flipper_configuration => FlipperConfiguration.enabled,
|
|
22
|
+
# An absolute path to your application root.
|
|
23
|
+
:app_path => "#{Pod::Config.instance.installation_root}/.."
|
|
24
|
+
)
|
|
20
25
|
|
|
21
26
|
# Pods for RNJudo
|
|
22
|
-
pod "JudoKit-iOS", "3.1.
|
|
23
|
-
pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector"
|
|
24
|
-
pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec"
|
|
25
|
-
pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired"
|
|
26
|
-
pod 'RCTTypeSafety', :path => "../node_modules/react-native/Libraries/TypeSafety"
|
|
27
|
-
pod 'React', :path => '../node_modules/react-native/'
|
|
28
|
-
pod 'React-Core', :path => '../node_modules/react-native/'
|
|
29
|
-
pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules'
|
|
30
|
-
pod 'React-Core/DevSupport', :path => '../node_modules/react-native/'
|
|
31
|
-
pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
|
|
32
|
-
pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
|
|
33
|
-
pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
|
|
34
|
-
pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
|
|
35
|
-
pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
|
|
36
|
-
pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
|
|
37
|
-
pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
|
|
38
|
-
pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
|
|
39
|
-
pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
|
|
40
|
-
pod 'React-Core/RCTWebSocket', :path => '../node_modules/react-native/'
|
|
41
|
-
|
|
42
|
-
pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
|
|
43
|
-
pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
|
|
44
|
-
pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
|
|
45
|
-
pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
|
|
46
|
-
pod 'ReactCommon/jscallinvoker', :path => "../node_modules/react-native/ReactCommon"
|
|
47
|
-
pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon"
|
|
48
|
-
pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
|
|
49
|
-
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
|
|
50
|
-
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
|
|
51
|
-
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
|
|
27
|
+
pod "JudoKit-iOS", "3.1.11"
|
|
52
28
|
|
|
53
29
|
target 'RNJudoTests' do
|
|
30
|
+
inherit! :complete
|
|
31
|
+
requires_app_host = true
|
|
54
32
|
# Pods for testing
|
|
55
33
|
end
|
|
56
34
|
|
|
57
|
-
|
|
58
|
-
|
|
35
|
+
post_install do |installer|
|
|
36
|
+
react_native_post_install(installer)
|
|
37
|
+
__apply_Xcode_12_5_M1_post_install_workaround(installer)
|
|
59
38
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
text = File.read(name)
|
|
64
|
-
replace = text.gsub(findstr,replacestr)
|
|
65
|
-
if text != replace
|
|
66
|
-
puts "Fix: " + name
|
|
67
|
-
File.open(name, "w") { |file| file.puts replace }
|
|
68
|
-
STDOUT.flush
|
|
39
|
+
installer.pods_project.build_configurations.each do |config|
|
|
40
|
+
# https://khushwanttanwar.medium.com/xcode-12-compilation-errors-while-running-with-ios-14-simulators-5731c91326e9
|
|
41
|
+
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
|
|
69
42
|
end
|
|
70
43
|
end
|
|
71
|
-
Dir[dir + '*/'].each(&method(:find_and_replace))
|
|
72
44
|
end
|