mirror of
https://github.com/Termix-SSH/Mobile.git
synced 2026-07-28 05:51:43 +02:00
0b6d9e8ea4
* feat: Add landscape laayout, file manager, and server stats (squash) * fix: Improve UI issues * feat: Greatly improve UI consistency, improve UI for all components (local squash) * feat: Improved file manager editor/styling * fix: Run npm linter and improve styling/UI bugs * feat: Fix tab bar height issues, and bein fixing terminal kb dismissal * fix: Fix the snippets bar visibility and general issues with landscape styling * chore: Format and clean up files * Update app.json * fix: Updated types * feat: Clean up files, add new termainl customization/tunnel system/new server stats (local squash commit) * feat: Add terminal customization, totp/auth dialog support, and overall UI improvements (local squash commit) * feat: Add auto mosh support * fix: HTTP issues on iOS * fix: increment ver * chore: Update readme * fix: iOS not loading HTTP hosts * feat: allow scrolling, backgrounddsiconnect fixes, http fixes, etc. * fix: Remove all bg conneciton bloat * fix: improve reocnnection logic * feat: improve copying and run cleanup * fix: http on ios * fix: http on ios * fix: build error with axios fetch * feat: improe scrolling and htpp on ios * fix: ios http * fix: ui issues + cleanup for release cantidate
46 lines
1.1 KiB
JavaScript
46 lines
1.1 KiB
JavaScript
const { withInfoPlist, withDangerousMod, IOSConfig } = require("@expo/config-plugins");
|
|
const fs = require("fs");
|
|
|
|
const withIOSNetworkSecurity = (config) => {
|
|
config = withInfoPlist(config, (config) => {
|
|
delete config.modResults.NSAppTransportSecurity;
|
|
|
|
config.modResults.NSAppTransportSecurity = {
|
|
NSAllowsArbitraryLoads: true,
|
|
};
|
|
|
|
config.modResults.NSLocalNetworkUsageDescription =
|
|
"Termix needs to connect to servers to load hosts and initiate SSH connections";
|
|
|
|
config.modResults.NSBonjourServices = ["_ssh._tcp", "_sftp-ssh._tcp"];
|
|
|
|
return config;
|
|
});
|
|
|
|
config = withDangerousMod(config, [
|
|
"ios",
|
|
async (config) => {
|
|
const { platformProjectRoot } = config.modRequest;
|
|
|
|
try {
|
|
let infoPlist = IOSConfig.InfoPlist.read(platformProjectRoot);
|
|
|
|
delete infoPlist.NSAppTransportSecurity;
|
|
|
|
infoPlist.NSAppTransportSecurity = {
|
|
NSAllowsArbitraryLoads: true,
|
|
};
|
|
|
|
IOSConfig.InfoPlist.write(platformProjectRoot, infoPlist);
|
|
} catch (e) {
|
|
}
|
|
|
|
return config;
|
|
},
|
|
]);
|
|
|
|
return config;
|
|
};
|
|
|
|
module.exports = withIOSNetworkSecurity;
|