lib/produce/service.rb in produce-1.2.1 vs lib/produce/service.rb in produce-1.3.0
- old
+ new
@@ -31,12 +31,12 @@
disabled = update(false, app, options)
UI.success("Done! Disabled #{disabled} services.")
end
def valid_services_for(options)
- allowed_keys = [:app_group, :associated_domains, :data_protection, :healthkit, :homekit,
- :wireless_conf, :icloud, :inter_app_audio, :passbook, :push_notification, :vpn_conf]
+ allowed_keys = [:app_group, :apple_pay, :associated_domains, :data_protection, :game_center, :healthkit, :homekit,
+ :wireless_conf, :icloud, :in_app_purchase, :inter_app_audio, :passbook, :push_notification, :sirikit, :vpn_conf]
options.__hash__.select { |key, value| allowed_keys.include? key }
end
# rubocop:disable Metrics/PerceivedComplexity
def update(on, app, options)
@@ -50,10 +50,20 @@
else
app.update_service(Spaceship.app_service.app_group.off)
end
end
+ if options.apple_pay
+ UI.message("\tApple Pay")
+
+ if on
+ app.update_service(Spaceship.app_service.apple_pay.on)
+ else
+ app.update_service(Spaceship.app_service.apple_pay.off)
+ end
+ end
+
if options.associated_domains
UI.message("\tAssociated Domains")
if on
app.update_service(Spaceship.app_service.associated_domains.on)
@@ -79,10 +89,20 @@
else
app.update_service(Spaceship.app_service.data_protection.off)
end
end
+ if options.game_center
+ UI.message("\tGame Center")
+
+ if on
+ app.update_service(Spaceship.app_service.game_center.on)
+ else
+ app.update_service(Spaceship.app_service.game_center.off)
+ end
+ end
+
if options.healthkit
UI.message("\tHealthKit")
if on
app.update_service(Spaceship.app_service.health_kit.on)
@@ -128,10 +148,20 @@
else
app.update_service(Spaceship.app_service.icloud.off)
end
end
+ if options.in_app_purchase
+ UI.message("\tIn-App Purchase")
+
+ if on
+ app.update_service(Spaceship.app_service.in_app_purchase.on)
+ else
+ app.update_service(Spaceship.app_service.in_app_purchase.off)
+ end
+ end
+
if options.inter_app_audio
UI.message("\tInter-App Audio")
if on
app.update_service(Spaceship.app_service.inter_app_audio.on)
@@ -155,9 +185,19 @@
if on
app.update_service(Spaceship.app_service.push_notification.on)
else
app.update_service(Spaceship.app_service.push_notification.off)
+ end
+ end
+
+ if options.sirikit
+ UI.message("\tSiriKit")
+
+ if on
+ app.update_service(Spaceship.app_service.siri_kit.on)
+ else
+ app.update_service(Spaceship.app_service.siri_kit.off)
end
end
if options.vpn_conf
UI.message("\tVPN Configuration")