Skip to content

Commit

Permalink
Location Spoofer Bugfix (#23)
Browse files Browse the repository at this point in the history
* Location Spoofer

* Fix build

* Change appraoch

* Try

* no message

* no message

* Tidy up swizzling

* no message

* Stash

* no message

* no message

* no message

* no message

* no message

* no message

* no message

* no message

* no message

* no message

* no message

* Revert "no message"

This reverts commit bc9e08e.

* no message

* no message

* no message

* no message

* no message

* no message

* no message

* no message

* no message

* no message

* Rely on super when not spoofed

* no message

* no message

* no message

* Add additional swizzle call

* no message

* no message

* no message

* no message

* no message

* no message

* no message

* no message

* no message

* no message

* no message

* Revert

* no message

* no message

* no message

* no message

* no message

* no message

* no message

* no message

* no message

* no message

* no message

* Try this

* no message

* no message

* no message

* no message

* Force on

* no message

* Try this

* no message

* no message

* Working location spoofer

* La casa de papel

* no message

* Update lat/long's

* First stab at routes

* Add lisbon

* no message

* no message

* no message

* no message

* no message

* no message

* no message

* no message

* no message

* no message

* no message

* no message

* Stash

* no message

* no message

* no message

* no message

* no message

* no message

* no message

* Attempt to fix issue with location delegate

* no message
  • Loading branch information
bstillitano authored Sep 30, 2021
1 parent 790d03d commit 8d72cec
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/bstillitano/scyther";
requirement = {
branch = "feature/location-spoofer";
branch = main;
kind = branch;
};
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"package": "Scyther",
"repositoryURL": "https://github.com/bstillitano/scyther",
"state": {
"branch": "feature/location-spoofer",
"revision": "d4817830c368cfbdd5179938fd088b80abca6769",
"branch": "main",
"revision": "790d03db89973b4ced00ab71a10c67cde479a9c7",
"version": null
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ internal class LocationSpoofer: CLLocationManager {

// MARK: - Lifecycle
override func startUpdatingLocation() {
guard delegate != nil else {
return
}
guard spoofingEnabled else {
super.startUpdatingLocation()
return
Expand Down Expand Up @@ -163,6 +166,9 @@ internal extension LocationSpoofer {
func spoofingEnabledChanged() {
swizzle()
guard spoofingEnabled else {
guard delegate != nil else {
return
}
requestLocation()
return
}
Expand Down

0 comments on commit 8d72cec

Please sign in to comment.