From 832f30e5ee2c3eab4edd4938175c7d7cc3a95efe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl-Gerhard=20Lindesva=CC=88rd?= Date: Mon, 12 Feb 2024 11:54:05 +0100 Subject: [PATCH] sdk native: remove getting ip from client --- packages/sdk-native/index.ts | 2 -- packages/sdk-native/package.json | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/sdk-native/index.ts b/packages/sdk-native/index.ts index 905e76e1..72e7c8a0 100644 --- a/packages/sdk-native/index.ts +++ b/packages/sdk-native/index.ts @@ -1,7 +1,6 @@ import { AppState, Platform } from 'react-native'; import * as Application from 'expo-application'; import Constants from 'expo-constants'; -import * as Network from 'expo-network'; import type { MixanOptions } from '@mixan/sdk'; import { Mixan } from '@mixan/sdk'; @@ -14,7 +13,6 @@ export class MixanNative extends Mixan { constructor(options: MixanNativeOptions) { super(options); - this.api.headers['X-Forwarded-For'] = Network.getIpAddressAsync(); this.api.headers['User-Agent'] = Constants.getWebViewUserAgentAsync(); AppState.addEventListener('change', (state) => { diff --git a/packages/sdk-native/package.json b/packages/sdk-native/package.json index 770a1012..767cfd48 100644 --- a/packages/sdk-native/package.json +++ b/packages/sdk-native/package.json @@ -24,8 +24,7 @@ "peerDependencies": { "react-native": "^0.72.5", "expo-application": "~5.3.0", - "expo-constants": "~14.4.2", - "expo-network": "~5.8.0" + "expo-constants": "~14.4.2" }, "eslintConfig": { "root": true,