Skip to content

Commit

Permalink
set NSAllowsArbitraryLoads to false
Browse files Browse the repository at this point in the history
  • Loading branch information
aprilmintacpineda committed Apr 4, 2021
1 parent 266e9c8 commit 3444f25
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ios/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ workspace = "proj_pronetplat_aa.xcworkspace"
# If you build for multiple environments, you might wanna set this specifically on build_app
configuration = 'Release'
scheme = "Production"

info_plist_path = "proj_pronetplat_aa/Info.plist"
key_id = ENV["APPSTORE_KEY_ID"] # The key id of the p8 file
issuer_id = ENV["APPSTORE_ISSUER_ID"] # issuer id on appstore connect
key_filepath = "FastlaneDeploymentCI.p8" # The path to p8 file generated on appstore connect
Expand All @@ -30,6 +30,14 @@ platform :ios do

match(api_key: api_key)

set_info_plist_value(
path: info_plist_path,
output_file_name: info_plist_path,
key: "NSAppTransportSecurity",
subkey: "NSAllowsArbitraryLoads",
value: false
)

build_app(
workspace: workspace,
scheme: scheme,
Expand Down

0 comments on commit 3444f25

Please sign in to comment.