From 5ed53dcef5ed50b63ea12a73ead57cd55979289e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Thu, 2 May 2019 18:12:12 +0200 Subject: [PATCH] ios: update Fastlane for watchOS app --- ios/fastlane/Fastfile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/ios/fastlane/Fastfile b/ios/fastlane/Fastfile index 13d1456ab..8479a81b7 100644 --- a/ios/fastlane/Fastfile +++ b/ios/fastlane/Fastfile @@ -16,6 +16,36 @@ platform :ios do app_identifier: "com.atlassian.JitsiMeet.ios" ) + # Set the (watch) app identifier + update_app_identifier( + xcodeproj: "app/app.xcodeproj", + plist_path: "watchos/app/Info.plist", + app_identifier: "com.atlassian.JitsiMeet.ios.watchkit" + ) + + # Set the (watch) extension identifier + update_app_identifier( + xcodeproj: "app/app.xcodeproj", + plist_path: "watchos/extension/Info.plist", + app_identifier: "com.atlassian.JitsiMeet.ios.watchkit.extension" + ) + + update_info_plist( + xcodeproj: "app/app.xcodeproj", + plist_path: "watchos/app/Info.plist", + block: proc do |plist| + plist["WKCompanionAppBundleIdentifier"] = "com.atlassian.JitsiMeet.ios" + end + ) + + update_info_plist( + xcodeproj: "app/app.xcodeproj", + plist_path: "watchos/extension/Info.plist", + block: proc do |plist| + plist["NSExtension"]["NSExtensionAttributes"]["WKAppBundleIdentifier"] = "com.atlassian.JitsiMeet.ios.watchkit" + end + ) + # Inrement the build number by 1 increment_build_number( build_number: latest_testflight_build_number + 1,