StikDebug/StikJIT/idevice/location_simulation.h
Stephen f3d2dec2e5
Semi-Rewrite – Major Refactor & Codebase Cleanup (#328)
* Change default UPLOAD_IPA value to 'false'

* Part 1 of the great debloat

* Remove Mini Tools, adopt native alerts in StikJITApp, and update HomeView UI

* Refactor views to use native SwiftUI alerts instead of CustomErrorView

* Update ProfileView to use minimal List UI style with native alerts

* Fix up homeview

* Squash: Redesign HomeView, remove Feature Flags, enable all tabs, refactor alerts, and updates

- Redesign HomeView to a simpler style with 'Enable JIT' action.
- Remove 'Help & Info' and 'Quick Launch' from Home.
- Fix DDI false positive by starting heartbeat on HomeView appear.
- Restore robust DDI checks and update app name to 'StikDebug'.
- Remove FeatureFlags and Beta tags; enable 'profiles', 'processes', 'location' tabs by default.
- Remove 'Devices' tab; add 'Target Device IP' field in Settings.
- Hardcode 'Settings' tab to 4th position.
- Refactor 'SettingsView' tab customization to be reorder-only.
- Remove 'Appearance' theme section from Settings.
- Refactor custom error cards to use native SwiftUI/UIKit alerts across the app (HomeView, ConsoleLogsView, ProfileView, etc).
- Restore JS callback support and script execution logic in HomeView.
- Add necessary Color extensions.
- Update project version to 3.0.0.

* Clean up: Remove In-App Purchases, update checker, and unused IPA installer code

* delete more bloat

* fix build issue

* Remove widget to save on App IDs

* Attempt heartbeat restart when Enable JIT button is pressed

* Get rid of PIP

* Update Tab Naming

* remove more bloat

* final changes for today

* Remove unused packages

* UX Improvements

* revert bundle id

* Update README.md

* remove old idevice

* add updated idevice

* Fix ddi false positive errors and add templates for GitHub stuff

* Remove more unused stuff.

* Fix links and update README content

* Update compatibility table in README.md

* Improve performance of console logs

* Remove old code

* Change default UPLOAD_IPA value to 'true'

* remove the welcome sheet

* import support for .mobiledevicepair

* Add back LC JIT stuff

* Fix heartbeat issues with LC JIT

* update the build yml for nightly stuff

* Update README.md

* Update README.md

* Update GitHub Actions workflow for IPA build

* Update GitHub Actions workflow for nightly builds

* Add URL scheme to kill tasks stikjit://kill-process?pid=1234

* fix build issues

* Added App Intents

* Unify the error handling style across the app
2026-02-25 13:44:00 -05:00

55 lines
1.4 KiB
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// location_simulation.h
// StikDebug
//
// Created by Stephen on 8/3/25.
//
#ifndef LOCATION_SIMULATION_H
#define LOCATION_SIMULATION_H
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
// Success / error codes
#define IPA_OK 0
#define IPA_ERR_INVALID_IP 1
#define IPA_ERR_PAIRING_READ 2
#define IPA_ERR_PROVIDER_CREATE 3
#define IPA_ERR_CORE_DEVICE 4
#define IPA_ERR_RSD_PORT 5
#define IPA_ERR_ADAPTER_CREATE 6
#define IPA_ERR_STREAM 7
#define IPA_ERR_HANDSHAKE 8
#define IPA_ERR_REMOTE_SERVER 9
#define IPA_ERR_LOCATION_SIM 10
#define IPA_ERR_LOCATION_SET 11
#define IPA_ERR_LOCATION_CLEAR 12
/**
* Simulate the device’s location.
* @param device_ip IP address of the device.
* @param latitude Latitude to simulate.
* @param longitude Longitude to simulate.
* @param pairing_file Path to the pairing file.
* @return IPA_OK (0) on success, or one of the IPA_ERR_* codes.
*/
int simulate_location(const char *device_ip,
double latitude,
double longitude,
const char *pairing_file);
/**
* Clear any simulated location.
* @return IPA_OK (0) on success, or IPA_ERR_LOCATION_CLEAR.
*/
int clear_simulated_location(void);
#ifdef __cplusplus
}
#endif
#endif /* LOCATION_SIMULATION_H */