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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea/
ecoCodeTestApp.xcodeproj/project.xcworkspace/xcuserdata
ecoCodeTestApp.xcodeproj/xcuserdata
.scannerwork/
18 changes: 18 additions & 0 deletions ecoCodeTestApp/LocationTracker.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import CoreLocation

class LocationTracker: NSObject, CLLocationManagerDelegate {
var locationManager: CLLocationManager?

override init() {
super.init()
locationManager = CLLocationManager()
locationManager?.delegate = self
locationManager?.requestAlwaysAuthorization() // Request appropriate authorization
locationManager?.startUpdatingLocation() // Start location updates
}

// LocationManager Delegate Methods
func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
// Process new locations
}
}
2 changes: 1 addition & 1 deletion sonar-project.properties
Copy link
Contributor

Choose a reason for hiding this comment

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

Please don't commit credentials / tokens

Copy link

Choose a reason for hiding this comment

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

Hi,

I might be mistaken, but these tokens are generated locally, right ? So as far as security is concerned, it should be mostly fine.

I do agree however that it is a poor practice anyway... Maybe a sonar.properties.example with placeholder and adding the sonar.properties to the gitignore would be suitable ?

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sonar.projectKey=ecoCodeTestiOS
sonar.projectName=ecoCodeTestiOS

sonar.login=sqp_9838d0377a57495cf4aab40194858bf0b419a66c
sonar.login=sqa_21b442284df9a352df1ad84d410b7c118179660f