Skip to content

Commit

Permalink
Build for release
Browse files Browse the repository at this point in the history
  • Loading branch information
noahsmartin committed Dec 10, 2023
1 parent bff3dcf commit 41cc51c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 21 deletions.
4 changes: 1 addition & 3 deletions Example/Pow Example.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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;
Expand All @@ -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";
Expand Down
4 changes: 2 additions & 2 deletions Example/Pow-Example-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>MVP_SRCROOT</key>
<string>$(SRCROOT)</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>MVP_SRCROOT</key>
<string>$(SRCROOT)</string>
<key>UIApplicationSceneManifest</key>
<dict>
<key>UIApplicationSupportsMultipleScenes</key>
Expand Down
37 changes: 21 additions & 16 deletions Fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
end

0 comments on commit 41cc51c

Please sign in to comment.