Skip to content

Conversation

vinnie4k
Copy link
Contributor

@vinnie4k vinnie4k commented Mar 14, 2024

Overview

Updated Swiftlint package and removed CocoaPods.

Changes Made

Swiftlint

  • Swiftlint should now be installed via Homebrew: brew install swiftlint
    • Since Uplift uses mostly SPM, it doesn't make sense to use CocoaPods for just Swiftlint. Installing Swiftlint via SPM is possible, but there is currently a bug with SPM and Swiftlint involving OS incompatibility issues. You can read more about it here.
    • As an alternative (actually the preferred way), we will be using Homebrew to install Swiftlint to avoid the SPM issue. To enforce Swiftlint, I rewrote the Swiftlint Build Script to echo an error message and exit with status code 1, which will cause the code to not build if Swiftlint is not installed on the device. See screenshot below.

Other Changes

  • Updated README.md with the new changes.
  • Updated ci_post_clone.sh to remove CocoaPod installation and add Swiftlint installation.
  • Fixed a small typo in UpliftEnvironment.swift.
  • Updated environment variables with better naming to prepare for AppDev Ecosystem.
  • Increased version to 2.5.2 and Build 9.

Test Coverage

  • Ran on both DEBUG and RELEASE schemes.
  • Ensured that Swiftlint warning were still showing up. See screenshot below.
  • Validated the bundled archive to ensure that it would upload properly to App Store Connect. Note that we may still experience Xcode Cloud issues.

Next Steps

  • Test the Xcode Cloud CI/CD configuration to make sure that changes to ci_post_clone.sh are correct. Note that there is also currently another issue regarding this that should be resolved.

Screenshots

Swiftlint not installed

Screenshot 2024-03-14 at 1 38 59 AM

Swiftlint installed

Screenshot 2024-03-14 at 1 37 44 AM

Copy link
Contributor

@caitlynjin caitlynjin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good! What's the other issue you mentioned at the bottom?

@vinnie4k
Copy link
Contributor Author

Sounds good! What's the other issue you mentioned at the bottom?

There is an issue with Xcode Cloud that prevented the build from archiving successfully, but I believe I already resolved it. Not sure though.

@belle-hu
Copy link
Contributor

I saw the earlier comment Caitlyn made and also the original PR mentioned a bug. How can I help test for this on my end?

@vinnie4k
Copy link
Contributor Author

I saw the earlier comment Caitlyn made and also the original PR mentioned a bug. How can I help test for this on my end?

No need to test. Once this PR gets merged, you will just need to make changes to your Xcode project.

@vinnie4k vinnie4k merged commit 9c23090 into main Mar 17, 2024
@vinnie4k vinnie4k deleted the vin/swiftlint branch March 17, 2024 03:14
This was referenced Mar 20, 2024
caitlynjin added a commit that referenced this pull request Mar 24, 2024
* Update README.md

* Create pull_request_template.md

* Removed building hours and replaced status

* Replaced GYMS with RECREATION CENTERS in home view

* Replaced capacities with FITNESS CENTER CAPACITIES

* Replaced buildings hours in gym cells

- Created functions for open/close time logic based on fitness centers
- Changed open/close status and time

* Addressed Vin's comments

- Renamed home page labels
- Removed `GymDetailViewModel`
- Added `fitnessCenterIsOpen()` and `determineStatus()` to `Gym` model
- Created test cases for the above functions
- Created dummy data for Teagle
- Simplified status logic in `HomeGymCell`

* Fixed dummy data and removed unused code

* Fixed status colors and removed unused code

* Addressed Vin's comments

- Fixed grammatical errors

* Implemented stretchy header (#37)

* Made fitness center images stretchy headers

* Modified gym images as stretchy headers

* Update Package.resolved

* Addressed Vin's comments

- Renamed geometry proxy

* Addressed Vin's comments

- Fixed naming error

* Create Package.resolved

* Tab bar styling adjustment (#38)

* Made fitness center images stretchy headers

* Modified gym images as stretchy headers

* Adjusted font/color on tab bar and added divider

* Update Package.resolved

* Addressed Vin's comments

- Renamed variable name

* Update project.pbxproj

* Update Package.resolved

* Update Swiftlint and remove CocoaPods (#40)

* Update Swiftlint

* Fix typo

* Update ci_post_clone.sh

* Update ENV

* Update project.pbxproj

* Update Package.resolved

---------

Co-authored-by: Vin Bui <[email protected]>
Co-authored-by: Vin Bui <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants