Skip to content

Commit

Permalink
Update Setup
Browse files Browse the repository at this point in the history
  • Loading branch information
PSchmiedmayer committed Sep 28, 2023
1 parent 8a1205a commit f605bed
Show file tree
Hide file tree
Showing 9 changed files with 59 additions and 52 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/StanfordBDHG/ResearchKit",
"state" : {
"revision" : "d66e17369cfa238179db8ab65285fe6e7fa3e3c8",
"version" : "2.2.12"
"revision" : "9530fadc9d09c0b783388c752b0dbe841974b6af",
"version" : "2.2.18"
}
},
{
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"images" : [
{
"filename" : "AppIcon.png",
"idiom" : "universal",
"platform" : "watchos",
"size" : "1024x1024"
Expand Down
2 changes: 1 addition & 1 deletion fastlane/Appfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This source file is part of the CS342 2023 Balance Team Application project
# This source file is part of the StanfordBDHG Template Application project
#
# SPDX-FileCopyrightText: 2023 Stanford University
#
Expand Down
19 changes: 19 additions & 0 deletions fastlane/ExportOptions.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>method</key>
<string>app-store</string>
<key>provisioningProfiles</key>
<dict>
<key>edu.stanford.cs342.2023.balance</key>
<string>CS342 2023 Balance Team Application</string>
<key>edu.stanford.cs342.2023.balance.watchApp</key>
<string>CS342 2023 Balance Team Watch Application</string>
</dict>
<key>signingCertificate</key>
<string>Apple Distribution: Paul Schmiedmayer (637867499T)</string>
<key>signingStyle</key>
<string>manual</string>
</dict>
</plist>
6 changes: 6 additions & 0 deletions fastlane/ExportOptions.plist.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

This source file is part of the CS342 2023 Balance Team Application project

SPDX-FileCopyrightText: 2023 Stanford University

SPDX-License-Identifier: MIT
36 changes: 30 additions & 6 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,15 @@ platform :ios do
desc "Build and test"
lane :test do
run_tests(
code_coverage: true,
skip_build: true,
derived_data_path: ".derivedData",
code_coverage: true,
devices: ["iPhone 15 Pro", "Apple Watch Series 9 (45mm)"],
force_quit_simulator: true,
reset_simulator: true,
prelaunch_simulator: false,
concurrent_workers: 1,
max_concurrent_simulators: 1,
result_bundle: true,
output_directory: "."
)
Expand All @@ -27,8 +34,23 @@ platform :ios do
desc "Build app"
lane :build do
build_app(
derived_data_path: ".derivedData"
derived_data_path: ".derivedData",
destination: "generic/platform=iOS",
output_directory: ".build",
archive_path: ".build/Balance.xcarchive",
)
# This is an unfortunate workaround for a bug in fastlane: https://github.com/fastlane/fastlane/pull/21319
Dir.chdir("..") do
sh(
"
xcodebuild \
-exportArchive \
-exportOptionsPlist ./fastlane/ExportOptions.plist \
-archivePath ./.build/Balance.xcarchive \
-exportPath ./.build
"
)
end
end

desc "Sign in to the App Store Connect API"
Expand All @@ -44,13 +66,15 @@ platform :ios do
desc "Publish a beta release to internal TestFlight testers"
lane :beta do
signin
increment_build_number({
build_number: latest_testflight_build_number + 1,
xcodeproj: "Balance.xcodeproj"
})
increment_build_number(
{
build_number: latest_testflight_build_number + 1
}
)
build
commit = last_git_commit
upload_to_testflight(
ipa: "./.build/Balance.ipa",
distribute_external: true,
groups: [
"CS342 2023"
Expand Down
25 changes: 0 additions & 25 deletions fastlane/Gymfile

This file was deleted.

18 changes: 0 additions & 18 deletions fastlane/Scanfile

This file was deleted.

0 comments on commit f605bed

Please sign in to comment.