Skip to content

Commit b84db08

Browse files
committed
first commit
0 parents  commit b84db08

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+2404
-0
lines changed

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea
5+
/.kotlin
6+
.DS_Store
7+
/build
8+
/captures
9+
.externalNativeBuild
10+
.cxx
11+
local.properties
12+
/app/release

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Silent Pass VPN for Android
2+
3+
Silent Pass combines decentralization, fragmentation, and a zero-trust architecture to deliver unparalleled internet privacy.
4+
5+
Technology powered by CoNET's [Layer Minus Decentralized Physical Infrastructure Networks](https://conet.network)
6+
7+
[White Paper](https://docs.silentpass.io/)
8+
9+
[Home Page](https://silentpass.io/)
10+
11+
## License
12+
13+
Silent Pass VPN is licensed under the MIT License (`MIT`), see [MIT_LICENSE](./MIT_LICENSE)

app/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

app/SilentPassVPN.jks

2.72 KB
Binary file not shown.

app/build.gradle.kts

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
plugins {
2+
alias(libs.plugins.android.application)
3+
alias(libs.plugins.kotlin.android)
4+
alias(libs.plugins.kotlin.compose)
5+
alias(libs.plugins.google.services) // ✅ 添加 Firebase 插件(引用 toml 别名)
6+
7+
}
8+
9+
configurations.all {
10+
11+
resolutionStrategy.eachDependency {
12+
if (requested.group == "org.bouncycastle") {
13+
if (requested.name.endsWith("jdk15on")) {
14+
useTarget("org.bouncycastle:${requested.name.replace("jdk15on", "jdk18on")}:1.77")
15+
because("Force all jdk15on modules to jdk18on for compatibility")
16+
}
17+
}
18+
}
19+
}
20+
21+
// keytool -genkey -v -keystore SilentPassVPN.jks -keyalg RSA -keysize 2048 -validity 10000 -alias SilentPassVPN
22+
android {
23+
signingConfigs {
24+
create("release") {
25+
storeFile = file("keys/my-release-key.jks")
26+
storePassword = "Aa123456"
27+
keyAlias = "myalias"
28+
keyPassword = "Aa123456"
29+
}
30+
}
31+
buildTypes {
32+
getByName("release") {
33+
signingConfig = signingConfigs.getByName("release")
34+
isMinifyEnabled = false
35+
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
36+
}
37+
}
38+
namespace = "com.silentPass.vpn"
39+
compileSdk = 35
40+
41+
defaultConfig {
42+
applicationId = "com.silentPass.vpn"
43+
minSdk = 26
44+
targetSdk = 35
45+
versionCode = 1
46+
versionName = "1.0.5"
47+
48+
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
49+
multiDexEnabled = true
50+
}
51+
52+
buildTypes {
53+
release {
54+
55+
isMinifyEnabled = false
56+
proguardFiles(
57+
getDefaultProguardFile("proguard-android-optimize.txt"),
58+
"proguard-rules.pro"
59+
)
60+
}
61+
}
62+
63+
compileOptions {
64+
sourceCompatibility = JavaVersion.VERSION_11
65+
targetCompatibility = JavaVersion.VERSION_11
66+
}
67+
kotlinOptions {
68+
jvmTarget = "11"
69+
}
70+
buildFeatures {
71+
compose = true
72+
}
73+
// 添加对最新 Android 插件的配置
74+
packaging {
75+
resources {
76+
excludes += "/META-INF/{AL2.0,LGPL2.1}"
77+
}
78+
}
79+
}
80+
81+
dependencies {
82+
implementation(files("libs/tun2socks.aar"))
83+
implementation("org.web3j:core:4.10.0") {
84+
exclude(group = "org.bouncycastle", module = "bcprov-jdk15on")
85+
}
86+
87+
implementation("org.pgpainless:pgpainless-core:1.6.4") {
88+
exclude(group = "org.bouncycastle", module = "bcprov-jdk15on")
89+
exclude(group = "org.bouncycastle", module = "bcpg-jdk15on")
90+
exclude(group = "org.bouncycastle", module = "bcpkix-jdk15on")
91+
}
92+
implementation("org.nanohttpd:nanohttpd:2.3.1")
93+
94+
95+
implementation("androidx.core:core-splashscreen:1.0.1")
96+
97+
implementation ("com.google.firebase:firebase-analytics:17.4.1")
98+
implementation ("androidx.fragment:fragment:1.3.6") // 或者更新为最新稳定版
99+
// ✅ Add only the modern 18-on version
100+
implementation("org.bouncycastle:bcprov-jdk18on:1.77")
101+
implementation("com.google.code.gson:gson:2.10.1")
102+
// The rest...
103+
implementation("androidx.multidex:multidex:2.0.1")
104+
105+
implementation("com.google.android.material:material:1.11.0")
106+
107+
108+
implementation(libs.androidx.core.ktx)
109+
implementation(libs.androidx.lifecycle.runtime.ktx)
110+
implementation(libs.androidx.activity.compose)
111+
implementation(platform(libs.androidx.compose.bom))
112+
implementation(libs.androidx.ui)
113+
implementation(libs.androidx.ui.graphics)
114+
implementation(libs.androidx.ui.tooling.preview)
115+
implementation(libs.androidx.material3)
116+
testImplementation(libs.junit)
117+
androidTestImplementation(libs.androidx.junit)
118+
androidTestImplementation(libs.androidx.espresso.core)
119+
androidTestImplementation(platform(libs.androidx.compose.bom))
120+
androidTestImplementation(libs.androidx.ui.test.junit4)
121+
debugImplementation(libs.androidx.ui.tooling)
122+
debugImplementation(libs.androidx.ui.test.manifest)
123+
}

app/google-services.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"project_info": {
3+
"project_number": "454018765142",
4+
"project_id": "silentpassio",
5+
"storage_bucket": "silentpassio.firebasestorage.app"
6+
},
7+
"client": [
8+
{
9+
"client_info": {
10+
"mobilesdk_app_id": "1:454018765142:android:ed9f8c1c79de4793c9c6f7",
11+
"android_client_info": {
12+
"package_name": "com.silentPass.vpn"
13+
}
14+
},
15+
"oauth_client": [],
16+
"api_key": [
17+
{
18+
"current_key": "AIzaSyDS0NGnFWI4atnabq1-8AChsEZp42Njq0o"
19+
}
20+
],
21+
"services": {
22+
"appinvite_service": {
23+
"other_platform_oauth_client": []
24+
}
25+
}
26+
}
27+
],
28+
"configuration_version": "1"
29+
}

app/keys/my-release-key.jks

2.67 KB
Binary file not shown.

app/libs/tun2socks-sources.jar

6.76 KB
Binary file not shown.

app/libs/tun2socks.aar

29.8 MB
Binary file not shown.

app/proguard-rules.pro

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
21+
#-renamesourcefileattribute SourceFile

0 commit comments

Comments
 (0)