diff --git a/Example/Pow Example.xcodeproj/project.pbxproj b/Example/Pow Example.xcodeproj/project.pbxproj index 88747fa..492ae16 100644 --- a/Example/Pow Example.xcodeproj/project.pbxproj +++ b/Example/Pow Example.xcodeproj/project.pbxproj @@ -704,7 +704,6 @@ INFOPLIST_FILE = "Pow-Example-Info.plist"; INFOPLIST_KEY_CFBundleDisplayName = Pow; INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.developer-tools"; - INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchScreen_Generation = YES; INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; @@ -715,7 +714,7 @@ "@executable_path/Frameworks", ); MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = "io.movingparts.Pow-Example"; + PRODUCT_BUNDLE_IDENTIFIER = "io.movingparts.Pow-Example.Debug"; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; @@ -737,7 +736,6 @@ INFOPLIST_FILE = "Pow-Example-Info.plist"; INFOPLIST_KEY_CFBundleDisplayName = Pow; INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.developer-tools"; - INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchScreen_Generation = YES; INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; diff --git a/Example/Pow-Example-Info.plist b/Example/Pow-Example-Info.plist index 24e3241..7c90109 100644 --- a/Example/Pow-Example-Info.plist +++ b/Example/Pow-Example-Info.plist @@ -2,10 +2,10 @@ - MVP_SRCROOT - $(SRCROOT) ITSAppUsesNonExemptEncryption + MVP_SRCROOT + $(SRCROOT) UIApplicationSceneManifest UIApplicationSupportsMultipleScenes diff --git a/Fastlane/Fastfile b/Fastlane/Fastfile index 9cf1ec8..1efa5bd 100644 --- a/Fastlane/Fastfile +++ b/Fastlane/Fastfile @@ -4,22 +4,27 @@ default_platform(:ios) g = Git.open('.') +def build_for_config(config): + build_app( + project: "./Example/Pow Example.xcodeproj", + export_method: "ad-hoc", + skip_codesigning: true, + destination: "generic/platform=iOS Simulator", + configuration: config, + skip_package_ipa: true) + if ENV["PR_NUMBER"] && ENV["PR_NUMBER"] != "" && ENV["PR_NUMBER"] != "false" + current_sha = g.log[0].parents[1].sha + baseBuildId = g.log[0].parent.sha + emerge(repo_name: "EmergeTools/Pow", pr_number: ENV["PR_NUMBER"], sha: current_sha, base_sha: baseBuildId) + else + current_sha = g.log[0].sha + emerge(repo_name: "EmergeTools/Pow", sha: current_sha) + end +end + platform :ios do lane :build do - build_app( - project: "./Example/Pow Example.xcodeproj", - export_method: "ad-hoc", - skip_codesigning: true, - destination: "generic/platform=iOS Simulator", - configuration: "Debug", - skip_package_ipa: true) - if ENV["PR_NUMBER"] && ENV["PR_NUMBER"] != "" && ENV["PR_NUMBER"] != "false" - current_sha = g.log[0].parents[1].sha - baseBuildId = g.log[0].parent.sha - emerge(repo_name: "EmergeTools/Pow", pr_number: ENV["PR_NUMBER"], sha: current_sha, base_sha: baseBuildId) - else - current_sha = g.log[0].sha - emerge(repo_name: "EmergeTools/Pow", sha: current_sha) - end + build_for_config("Debug") + build_for_config("Release") end -end \ No newline at end of file +end