Class: Xcadaptor::AdaptModule::IOS9Module::Ssl
- Inherits:
-
Object
- Object
- Xcadaptor::AdaptModule::IOS9Module::Ssl
- Defined in:
- lib/xcadaptor/Adapt/IOS/9.0/ssl.rb
Class Method Summary collapse
Class Method Details
.run ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/xcadaptor/Adapt/IOS/9.0/ssl.rb', line 10 def self.run project =Xcadaptor::Project.new info_plist = project.info_plist ssl_key = info_plist['NSAppTransportSecurity'] if !ssl_key info_plist['NSAppTransportSecurity'] = {NSAllowsArbitraryLoads: true} puts "add [NSAppTransportSecurity] in plist\n" project.save end end |