Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?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>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1500"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "5E426B022D126AB900DA5036"
BuildableName = "BusBudiOSChallenge.app"
BlueprintName = "BusBudiOSChallenge"
ReferencedContainer = "container:BusBudiOSChallenge.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
<Testables>
<TestableReference
skipped = "NO"
parallelizable = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "5E426B2C2D12F4EE00DA5036"
BuildableName = "BusBudiOSChallengeTests.xctest"
BlueprintName = "BusBudiOSChallengeTests"
ReferencedContainer = "container:BusBudiOSChallenge.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "5E426B022D126AB900DA5036"
BuildableName = "BusBudiOSChallenge.app"
BlueprintName = "BusBudiOSChallenge"
ReferencedContainer = "container:BusBudiOSChallenge.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "5E426B022D126AB900DA5036"
BuildableName = "BusBudiOSChallenge.app"
BlueprintName = "BusBudiOSChallenge"
ReferencedContainer = "container:BusBudiOSChallenge.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
uuid = "B3D1C908-90BB-46FF-9EBE-D3AD375234B7"
type = "1"
version = "2.0">
<Breakpoints>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "A4952E84-7267-4772-AF27-2F2DD6BCC029"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "../coding-challenge-native-b/BusBudiOSChallenge/ViewModel/CityViewModel.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "58"
endingLineNumber = "58"
landmarkName = "fetchCities()"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
</Breakpoints>
</Bucket>
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?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>SchemeUserState</key>
<dict>
<key>BusBudiOSChallenge.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>5E426B022D126AB900DA5036</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"colors" : [
{
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"images" : [
{
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//
// BusBudiOSChallengeApp.swift
// BusBudiOSChallenge
//
// Created by Amanda Karolina Santos da Fonseca Paiva on 17/12/24.
//

import SwiftUI

@main
struct BusBudiOSChallengeApp: App {
var body: some Scene {
WindowGroup {
NearbyCitiesView()
}
}
}
24 changes: 24 additions & 0 deletions coding-challenge-native-b /BusBudiOSChallenge/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?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>CFBundleURLTypes</key>
<array>
<dict/>
</array>

<key>NSLocationWhenInUseUsageDescription</key>
<string>We need your location to show nearby cities.</string>
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>This app uses your location to improve your experience.</string>

<key>CFBundleLocalizations</key>
<array>
<string>en</string>
<string>pt</string>
</array>

<key>UIUserInterfaceStyle</key>
<string>Automatic</string>
</dict>
</plist>
147 changes: 147 additions & 0 deletions coding-challenge-native-b /BusBudiOSChallenge/Localizable.xcstrings
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
{
"sourceLanguage" : "en",
"strings" : {
"%@, %@, %@" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "new",
"value" : "%1$@, %2$@, %3$@"
}
}
}
},
"cityDetailTitle" : {
"comment" : "Title for City Details screen",
"extractionState" : "stale",
"localizations" : {
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "Detalhes da Cidade"
}
}
}
},
"distanceFormat" : {
"comment" : "Format for distance display",
"localizations" : {
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "%.2f km de distância"
}
}
}
},
"distanceLabel" : {
"comment" : "distance",
"localizations" : {
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "Distância: %.2f km"
}
}
}
},
"fetchCitiesFailed" : {
"comment" : "Error when city fetch fails",
"localizations" : {
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "Falha ao carregar cidades. Verifique sua conexão com a internet."
}
}
}
},
"locationNotAvailable" : {
"comment" : "Error when user location is not available",
"localizations" : {
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "Localização não disponível."
}
}
}
},
"locationPermissionDeniedMessage" : {
"comment" : "Alert message when location is denied"
},
"locationPermissionDeniedTitle" : {
"comment" : "Alert title when location is denied"
},
"nearbyCitiesTitle" : {
"comment" : "Title for Nearby Cities screen",
"localizations" : {
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "Cidades Próximas"
}
}
}
},
"noCitiesFound" : {
"comment" : "Error when no cities are found nearby",
"localizations" : {
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "Nenhuma cidade encontrada nas proximidades."
}
}
}
},
"obtainingLocation" : {
"comment" : "Message displayed while obtaining location",
"localizations" : {
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "Obtendo localização..."
}
}
}
},
"openInBusbud" : {
"comment" : "Button to open city in Busbud",
"localizations" : {
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "Abrir no Busbud"
}
}
}
},
"openSettingsButton" : {
"comment" : "Button title to open settings"
},
"permissionDeniedMessage" : {
"comment" : "Message displayed when location access is denied\n Message when location access is denied",
"localizations" : {
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "Permissão negada. Ative o acesso à localização."
}
}
}
},
"tryAgainButton" : {
"comment" : "Text for the try again button",
"localizations" : {
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "Tentar novamente"
}
}
}
}
},
"version" : "1.0"
}
Loading