Skip to content

Commit 827a777

Browse files
committed
fix: update ProGuard rules and AndroidManifest for VPN classes
1 parent 405a2f4 commit 827a777

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

android/app/proguard-rules.pro

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,10 @@
1111
-keep class com.swmansion.reanimated.** { *; }
1212
-keep class com.facebook.react.turbomodule.** { *; }
1313

14+
# Keep VPN classes - prevent ProGuard from removing them
15+
-keep class com.cbv.vpn.VPNIntentReceiver { *; }
16+
-keep class com.cbv.vpn.VPNConnectionService { *; }
17+
-keep class com.cbv.vpn.VPNPermissionActivity { *; }
18+
-keep class com.cbv.vpn.** { *; }
19+
1420
# Add any project specific keep options here:

android/app/src/main/AndroidManifest.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@
4848
<activity android:name=".VPNPermissionActivity"
4949
android:exported="false" android:theme="@style/AppTheme"
5050
android:launchMode="singleTop" />
51-
<receiver android:name=".VPNIntentReceiver" android:exported="true"
51+
<receiver android:name=".VPNIntentReceiver"
52+
android:enabled="true"
53+
android:exported="true"
5254
android:directBootAware="true">
5355
<intent-filter>
5456
<action android:name="com.cbv.vpn.ADD_PROFILE" />
@@ -63,4 +65,4 @@
6365
</intent-filter>
6466
</receiver>
6567
</application>
66-
</manifest>
68+
</manifest>

0 commit comments

Comments
 (0)