Skip to content
New issue

Have a question about this project?Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of serviceand privacy statement.We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[expo-go][ios][3/n] Convert BuildConstants and Versions to swift #32091

Draft
wants to merge 1 commit into
base: @wschurman/10-15-_expo-go_ios_2/n_remove_unused_excachedresourcemanager
Choose a base branch
from

Conversation

wschurman
Copy link
Member

Why

How

Test Plan

Checklist

Copy link
Member Author

wschurman commented Oct 16, 2024

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stackon Graphite.
Learn more

This stack of pull requests is managed by Graphite.Learn more about stacking.

Join@wschurmanand the rest of your teammates onGraphiteGraphite

@expo-bot
Copy link
Collaborator

Hi there! 👋 I'm a bot whose goal is to ensure your contributions meet our guidelines.

I've found some issues in your pull request that should be addressed (click on them for more details) 👇

⚠️Suggestion:SwiftLint Violations


Found 6 violations, 0 serious. See the review comments below for more insights.


Generated by ExpoBot 🤖 against589d09e

private(set) var isDevKernel: Bool = false
private(set) var defaultApiKeys: [String: Any] = [:]
private(set) var kernelDevManifestSource: KernelDevManifestSource =.none
private(set) var kernelManifestAndAssetRequestHeadersJsonString: String = ""
Copy link
Collaborator

Choose a reason for hiding this comment

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

🟠 SwiftLint:Identifier Name Violation

Variable name 'kernelManifestAndAssetRequestHeadersJsonString' should be between 1 and 35 characters long


let plistPath = Bundle.main.path(forResource: "EXBuildConstants", ofType: "plist" )
let config = plistPath.let { it in
NSDictionary(contentsOfFile: it)
Copy link
Collaborator

Choose a reason for hiding this comment

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

🟠 SwiftLint:Legacy Objective-C Reference Type Violation

Prefer Swift value types to bridged Objective-C reference types

let plistPath = Bundle.main.path(forResource: "EXBuildConstants", ofType: "plist" )
let config = plistPath.let { it in
NSDictionary(contentsOfFile: it)
}?? NSDictionary()
Copy link
Collaborator

Choose a reason for hiding this comment

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

🟠 SwiftLint:Legacy Objective-C Reference Type Violation

Prefer Swift value types to bridged Objective-C reference types

// local kernel. use manifest and assetRequestHeaders from local server.
kernelManifestAndAssetRequestHeadersJsonString =
config[ "BUILD_MACHINE_KERNEL_MANIFEST" ] as? String?? ""
break
Copy link
Collaborator

Choose a reason for hiding this comment

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

🟠 SwiftLint:Unneeded Break in Switch Violation

Avoid using unneeded break statements

// dev published kernel. use published manifest and assetRequestHeaders.
kernelManifestAndAssetRequestHeadersJsonString =
config[ "DEV_PUBLISHED_KERNEL_MANIFEST" ] as? String?? ""
break
Copy link
Collaborator

Choose a reason for hiding this comment

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

🟠 SwiftLint:Unneeded Break in Switch Violation

Avoid using unneeded break statements


private static func kernelManifestSource(from sourceString: String?)
-> KernelDevManifestSource
{
Copy link
Collaborator

Choose a reason for hiding this comment

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

🟠 SwiftLint:Opening Brace Spacing Violation

Opening braces should be preceded by a single space and on the same line as the declaration

@expo-bot expo-bot added the bot: suggestions ExpoBot has some suggestions label Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: suggestions ExpoBot has some suggestions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants