Skip to content

Commit aa2a41b

Browse files
committed
cache
1 parent 9fdf2c4 commit aa2a41b

File tree

22 files changed

+57
-336
lines changed

22 files changed

+57
-336
lines changed

android/app/proguard-rules.pro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11

2-
-keep class com.follow.clash.models.**{ *; }
2+
-keep class com.follow.clash.models.**{ *; }
3+
4+
-keep class com.follow.clash.service.models.**{ *; }

android/app/src/main/kotlin/com/follow/clash/common/Ext.kt renamed to android/app/src/main/kotlin/com/follow/clash/Ext.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.follow.clash.common
1+
package com.follow.clash
22

33
import android.graphics.Bitmap
44
import android.graphics.drawable.Drawable

android/app/src/main/kotlin/com/follow/clash/State.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package com.follow.clash
33
import android.content.Intent
44
import com.follow.clash.common.GlobalState
55
import com.follow.clash.common.intent
6-
import com.follow.clash.common.plugin
76
import com.follow.clash.common.startForegroundServiceCompat
87
import com.follow.clash.plugins.AppPlugin
98
import com.follow.clash.plugins.ServicePlugin

android/app/src/main/kotlin/com/follow/clash/plugins/AppPlugin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import com.follow.clash.R
2121
import com.follow.clash.common.Components
2222
import com.follow.clash.common.GlobalState
2323
import com.follow.clash.common.QuickAction
24-
import com.follow.clash.common.getBase64
2524
import com.follow.clash.common.quickIntent
25+
import com.follow.clash.getBase64
2626
import com.follow.clash.models.Package
2727
import com.google.gson.Gson
2828
import io.flutter.embedding.android.FlutterActivity

android/app/src/main/kotlin/com/follow/clash/plugins/ServicePlugin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ package com.follow.clash.plugins
22

33
import com.follow.clash.Service
44
import com.follow.clash.State
5+
import com.follow.clash.awaitResult
56
import com.follow.clash.common.Components
67
import com.follow.clash.common.GlobalState
7-
import com.follow.clash.common.awaitResult
88
import com.follow.clash.service.models.VpnOptions
99
import com.google.gson.Gson
1010
import io.flutter.embedding.engine.plugins.FlutterPlugin

android/common/build.gradle.kts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@ android {
1515
buildTypes {
1616
release {
1717
isMinifyEnabled = false
18-
proguardFiles(
19-
getDefaultProguardFile("proguard-android-optimize.txt"),
20-
"proguard-rules.pro"
21-
)
22-
}
23-
create("profile") {
2418
}
2519
}
2620
compileOptions {

android/common/consumer-rules.pro

Whitespace-only changes.

android/common/proguard-rules.pro

Lines changed: 0 additions & 21 deletions
This file was deleted.

android/core/proguard-rules.pro

Lines changed: 0 additions & 21 deletions
This file was deleted.

android/core/src/main/cpp/core.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ static void call_tun_interface_protect_impl(void *tun_interface, const int fd) {
6060
fd);
6161
}
6262

63-
static const char *
64-
call_tun_interface_resolve_process_impl(void *tun_interface, int protocol,
63+
static char *
64+
call_tun_interface_resolve_process_impl(void *tun_interface, const int protocol,
6565
const char *source,
6666
const char *target,
6767
const int uid) {
@@ -72,17 +72,17 @@ call_tun_interface_resolve_process_impl(void *tun_interface, int protocol,
7272
new_string(source),
7373
new_string(target),
7474
uid));
75-
scoped_const_string sp = get_string(packageName);
75+
scoped_string sp = get_string(packageName);
7676
return sp;
7777
}
7878

79-
static const char *
79+
static char *
8080
call_invoke_interface_result_impl(void *invoke_interface, const char *data) {
8181
ATTACH_JNI();
8282
const auto res = reinterpret_cast<jstring>(env->CallObjectMethod(static_cast<jobject>(invoke_interface),
8383
m_invoke_interface_result,
8484
new_string(data)));
85-
scoped_const_string sr = get_string(res);
85+
scoped_string sr = get_string(res);
8686
return sr;
8787
}
8888

0 commit comments

Comments
 (0)