Skip to content

Commit

Permalink
Remove vpn config from the app
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedHanafy725 committed Nov 23, 2023
1 parent 0fd285e commit 885f79a
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 56 deletions.
7 changes: 1 addition & 6 deletions app/android/app/src/main/AndroidManifest_local
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<manifest xmlns:tools="http://schemas.android.com/tools" xmlns:android="http://schemas.android.com/apk/res/android" package="org.jimber.threebotlogin.local">
<application tools:replace="android:label" android:label="3Bot Local" android:icon="@mipmap/ic_launcher" android:usesCleartextTraffic="true">
<service android:name="org.threefold.yggdrasil_plugin.PacketTunnelProvider" android:enabled="true" android:exported="true" android:permission="android.permission.BIND_VPN_SERVICE">
<intent-filter>
<action android:name="android.net.VpnService" />
</intent-filter>
</service>
<activity android:name=".MainActivity" android:exported="true" android:launchMode="singleTop" android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize">
<meta-data android:name="io.flutter.embedding.android.NormalTheme" android:resource="@style/NormalTheme" />
Expand Down Expand Up @@ -49,4 +44,4 @@

<uses-feature android:name="android.hardware.camera.autofocus" />
<uses-feature android:name="android.hardware.camera" />
</manifest>
</manifest>
5 changes: 0 additions & 5 deletions app/android/app/src/main/AndroidManifest_production
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<manifest xmlns:tools="http://schemas.android.com/tools" xmlns:android="http://schemas.android.com/apk/res/android" package="org.jimber.threebotlogin">
<application tools:replace="android:label" android:label="Threefold Connect" android:icon="@mipmap/ic_launcher" android:usesCleartextTraffic="true">
<service android:name="org.threefold.yggdrasil_plugin.PacketTunnelProvider" android:enabled="true" android:exported="true" android:permission="android.permission.BIND_VPN_SERVICE">
<intent-filter>
<action android:name="android.net.VpnService" />
</intent-filter>
</service>
<activity android:name=".MainActivity" android:exported="true" android:launchMode="singleTop" android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize">
<meta-data android:name="io.flutter.embedding.android.NormalTheme" android:resource="@style/NormalTheme" />
Expand Down
5 changes: 0 additions & 5 deletions app/android/app/src/main/AndroidManifest_staging
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<manifest xmlns:tools="http://schemas.android.com/tools" xmlns:android="http://schemas.android.com/apk/res/android" package="org.jimber.threebotlogin.staging">
<application tools:replace="android:label" android:label="3Bot Staging" android:icon="@mipmap/ic_launcher" android:usesCleartextTraffic="true">
<service android:name="org.threefold.yggdrasil_plugin.PacketTunnelProvider" android:enabled="true" android:exported="true" android:permission="android.permission.BIND_VPN_SERVICE">
<intent-filter>
<action android:name="android.net.VpnService" />
</intent-filter>
</service>
<activity android:name=".MainActivity" android:exported="true" android:launchMode="singleTop" android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize">
<meta-data android:name="io.flutter.embedding.android.NormalTheme" android:resource="@style/NormalTheme" />
Expand Down
5 changes: 0 additions & 5 deletions app/android/app/src/main/AndroidManifest_testing
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<manifest xmlns:tools="http://schemas.android.com/tools" xmlns:android="http://schemas.android.com/apk/res/android" package="org.jimber.threebotlogin.testing">
<application tools:replace="android:label" android:label="3Bot Testing" android:icon="@mipmap/ic_launcher" android:usesCleartextTraffic="true">
<service android:name="org.threefold.yggdrasil_plugin.PacketTunnelProvider" android:enabled="true" android:exported="true" android:permission="android.permission.BIND_VPN_SERVICE">
<intent-filter>
<action android:name="android.net.VpnService" />
</intent-filter>
</service>
<activity android:name=".MainActivity" android:exported="true" android:launchMode="singleTop" android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize">
<meta-data android:name="io.flutter.embedding.android.NormalTheme" android:resource="@style/NormalTheme" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.developer.networking.networkextension</key>
<array>
<string>packet-tunnel-provider</string>
</array>
<key>com.apple.developer.networking.vpn.api</key>
<array>
<string>allow-vpn</string>
</array>
<key>com.apple.security.application-groups</key>
<array>
<string>group.org.jimber.threebot</string>
Expand Down
9 changes: 0 additions & 9 deletions app/ios/Runner/Runner.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,5 @@
<dict>
<key>aps-environment</key>
<string>development</string>
<key>com.apple.developer.networking.networkextension</key>
<array>
<string>app-proxy-provider</string>
<string>packet-tunnel-provider</string>
</array>
<key>com.apple.developer.networking.vpn.api</key>
<array>
<string>allow-vpn</string>
</array>
</dict>
</plist>
3 changes: 0 additions & 3 deletions app/lib/events/close_vpn_event.dart

This file was deleted.

3 changes: 0 additions & 3 deletions app/lib/helpers/globals.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'package:flutter/material.dart';
import 'package:threebotlogin/helpers/hex_color.dart';
import 'package:threebotlogin/helpers/vpn_state.dart';
import 'package:threebotlogin/jrouter.dart';
import 'package:threebotlogin/models/paymentRequest.dart';

Expand Down Expand Up @@ -60,8 +59,6 @@ class Globals {
bool isCacheClearedWallet = false;
bool isCacheClearedFarmer = false;

VpnState vpnState = new VpnState();

int smsSentOn = 0;
int smsMinutesCoolDown = 5;

Expand Down
12 changes: 0 additions & 12 deletions app/lib/helpers/vpn_state.dart

This file was deleted.

0 comments on commit 885f79a

Please sign in to comment.