Skip to content

Commit

Permalink
Merge pull request #1 from TransmitSecurity/feature/MOB-628
Browse files Browse the repository at this point in the history
Feature/mob 628
  • Loading branch information
shachartransmit authored Oct 5, 2023
2 parents ba030c8 + b219ad5 commit 9c3592f
Show file tree
Hide file tree
Showing 46 changed files with 30,872 additions and 144 deletions.
1 change: 1 addition & 0 deletions example/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CAMERA" />

<application
android:name=".MainApplication"
Expand Down
29 changes: 23 additions & 6 deletions example/ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
# Resolve react_native_pods.rb with node to allow for hoisting
require Pod::Executable.execute_command('node', ['-p',
'require.resolve(
"react-native/scripts/react_native_pods.rb",
{paths: [process.argv[1]]},
)', __dir__]).strip
def node_require(script)
# Resolve script with node to allow for hoisting
require Pod::Executable.execute_command('node', ['-p',
"require.resolve(
'#{script}',
{paths: [process.argv[1]]},
)", __dir__]).strip
end

platform :ios, min_ios_version_supported
node_require('react-native/scripts/react_native_pods.rb')
node_require('react-native-permissions/scripts/setup.rb')

platform :ios, 13.0
prepare_react_native_project!

setup_permissions([
#see here https://github.com/zoontek/react-native-permissions
'Camera'
])

# If you are using a `react-native-flipper` your iOS build will fail when `NO_FLIPPER=1` is set.
# because `react-native-flipper` depends on (FlipperKit,...) that will be excluded
#
Expand Down Expand Up @@ -58,5 +69,11 @@ target 'TsIdvExample' do
:mac_catalyst_enabled => false
)
__apply_Xcode_12_5_M1_post_install_workaround(installer)

installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', '_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION']
end
end
end
end
Loading

0 comments on commit 9c3592f

Please sign in to comment.