-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 29d3fb7
Showing
197 changed files
with
15,299 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
V2rayNG/app/src/main/res/layout/activity_inapp_buy.xml | ||
V2rayNG/app/src/main/assets/geoip.dat | ||
V2rayNG/app/src/main/assets/geosite.dat | ||
V2rayNG/app/src/main/java/com/v2ray/ang/InappBuyActivity.java | ||
V2rayNG/gradle/wrapper/gradle-wrapper.properties | ||
V2rayNG/gradle/wrapper/gradle-wrapper.properties | ||
*.aar | ||
*.dat | ||
*.jks | ||
V2rayNG/gradle/wrapper/gradle-wrapper.properties | ||
V2rayNG/gradle/wrapper/gradle-wrapper.properties | ||
V2rayNG/app/release/output.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
v2rayNG 隐私条款 | ||
|
||
最后更新 2017-11-22 | ||
|
||
v2rayNG 尊重并保护所有用户的个人隐私权,为此我们向大众公开这份隐私条款。**您使用 v2rayNG 即代表您以阅读并同意了这份条款,如果您不同意这份条款请立即停止使用并卸载 v2rayNG。** | ||
|
||
1. 信息收集 | ||
|
||
v2rayNG 软件自身不会发送任何信息到开发者,但是您下载软件的应用市场(如 Google Play)可能会收集关于应用运行状态的相关信息并提供给 v2rayNG 开发者。有关这些信息,请阅读您使用的应用市场所提供的隐私条款。 | ||
|
||
v2rayNG 软件中可能包含需要通过 IAP 支付解锁的功能,您的支付信息将由相关的 IAP 渠道进行处理,而我们对支付信息没有访问权。 | ||
|
||
当您向 v2rayNG 开发者反馈软件运行中的错误时,开发者可能会要求您提供软件以及系统的日志以帮助确认问题的原因。因日志中可能包括敏感信息,此类信息只能由您自己操作发送。**我们不对任何传输服务的安全性和隐私性做任何明示或暗示的担保,请您在传送相关信息时选择可以您自身可以接受的方式。** | ||
|
||
2. 信息共享 | ||
|
||
我们不会向任何第三方出售收集到的用户数据。我们可能向外部开发者提供信息以协助软件的开发,但是在提供信息之前我们会传达相关保密义务并确定其可以遵守。 | ||
|
||
3. 信息存留 | ||
|
||
除非有相关法律规定,我们会在 30 天内清除不需要继续使用的用户数据,或将统计数据整合为无法识别单个用户的综合报告。 | ||
|
||
4. 信息泄露 | ||
|
||
我们会使用合理的技术和安全手段尽力保护用户的数据,但是无法保证数据的绝对安全。如果我们确认数据发生了泄露,我们会在 7 天内通过可用的渠道通知用户。**您同意不向我们追责任何因不可抗力而造成的损失。** | ||
|
||
5. 条款修改 | ||
|
||
我们保留修改这份隐私条款的权利,但是会确保在更新条款前至少 30 天通过我们的可用渠道和应用内提示来通知用户。**在新条款生效后继续使用软件即表示您同意修改后的隐私条款。** |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# v2rayNG | ||
|
||
<a href="https://play.google.com/store/apps/details?id=com.v2ray.ang"> | ||
<img alt="Get it on Google Play" src="https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png" width="165" height="64" /> | ||
</a> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
*.iml | ||
.gradle | ||
/local.properties | ||
/.idea | ||
.DS_Store | ||
/build | ||
/captures | ||
*.apk | ||
signing.properties |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/build | ||
/google-services.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
apply plugin: 'com.android.application' | ||
apply plugin: 'kotlin-android' | ||
apply plugin: 'kotlin-android-extensions' | ||
|
||
android { | ||
compileSdkVersion 27 | ||
buildToolsVersion '27.0.3' | ||
|
||
compileOptions { | ||
targetCompatibility = "8" | ||
sourceCompatibility = "8" | ||
} | ||
|
||
defaultConfig { | ||
applicationId "com.v2ray.ang" | ||
minSdkVersion 17 | ||
targetSdkVersion Integer.parseInt("$targetSdkVer") | ||
multiDexEnabled true | ||
versionCode 206 | ||
versionName "0.6.21" | ||
} | ||
|
||
signingConfigs { | ||
release { | ||
storeFile file("../key.jks") | ||
keyAlias 'ang' | ||
keyPassword '123456' | ||
storePassword '123456' | ||
} | ||
debug { | ||
storeFile file("../key.jks") | ||
keyAlias 'ang' | ||
keyPassword '123456' | ||
storePassword '123456' | ||
} | ||
} | ||
|
||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
zipAlignEnabled false | ||
shrinkResources false | ||
signingConfig signingConfigs.release | ||
// proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | ||
} | ||
debug { | ||
minifyEnabled false | ||
zipAlignEnabled false | ||
shrinkResources false | ||
signingConfig signingConfigs.release | ||
} | ||
} | ||
|
||
sourceSets { | ||
main.java.srcDirs += 'src/main/kotlin' | ||
} | ||
|
||
splits { | ||
abi { | ||
enable true | ||
reset() | ||
include 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a' //select ABIs to build APKs for | ||
universalApk true //generate an additional APK that contains all the ABIs | ||
} | ||
} | ||
|
||
// map for the version code | ||
project.ext.versionCodes = ['armeabi-v7a': 1, 'arm64-v8a': 2, 'x86': 3, 'x86_64': 4] | ||
|
||
android.applicationVariants.all { variant -> | ||
// assign different version code for each output | ||
variant.outputs.each { output -> | ||
output.versionCodeOverride = | ||
project.ext.versionCodes.get(output.getFilter(com.android.build.OutputFile.ABI), 0) * | ||
1000000 + android.defaultConfig.versionCode | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation fileTree(include: ['*.jar'], dir: 'libs') | ||
implementation 'com.android.support.constraint:constraint-layout:1.1.3' | ||
testImplementation 'junit:junit:4.12' | ||
implementation project(':dpreference') | ||
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion" | ||
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion" | ||
// Android support library | ||
implementation "com.android.support:support-v4:$supportLibVersion" | ||
implementation "com.android.support:appcompat-v7:$supportLibVersion" | ||
implementation "com.android.support:design:$supportLibVersion" | ||
implementation "com.android.support:cardview-v7:$supportLibVersion" | ||
implementation "com.android.support:preference-v7:$supportLibVersion" | ||
implementation "com.android.support:recyclerview-v7:$supportLibVersion" | ||
// DSL | ||
implementation "org.jetbrains.anko:anko-sdk15:$ankoVersion" | ||
implementation "org.jetbrains.anko:anko-support-v4:$ankoVersion" | ||
implementation "org.jetbrains.anko:anko-appcompat-v7:$ankoVersion" | ||
implementation "org.jetbrains.anko:anko-design:$ankoVersion" | ||
implementation 'com.google.code.gson:gson:2.8.2' | ||
implementation 'io.reactivex:rxjava:1.3.4' | ||
implementation 'io.reactivex:rxandroid:1.2.1' | ||
implementation 'com.tbruyelle.rxpermissions:rxpermissions:0.9.4@aar' | ||
implementation 'com.dinuscxj:recycleritemdecoration:1.0.0' | ||
implementation 'io.reactivex:rxkotlin:0.60.0' | ||
implementation 'me.dm7.barcodescanner:core:1.9.8' | ||
implementation 'me.dm7.barcodescanner:zxing:1.9.8' | ||
implementation 'com.github.jorgecastilloprz:fabprogresscircle:1.01@aar' | ||
implementation 'com.beust:klaxon:3.0.1' | ||
implementation 'com.android.support:multidex:1.0.3' | ||
|
||
implementation(name: 'libv2ray', ext: 'aar') | ||
//implementation(name: 'tun2socks', ext: 'aar') | ||
} | ||
|
||
buildscript { | ||
repositories { | ||
google() | ||
jcenter() | ||
maven { url 'https://maven.google.com' } | ||
} | ||
dependencies { | ||
classpath "org.jetbrains.kotlin:kotlin-android-extensions:$kotlinVersion" | ||
} | ||
} | ||
repositories { | ||
flatDir { | ||
dirs 'libs' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Add project specific ProGuard rules here. | ||
# By default, the flags in this file are appended to flags specified | ||
# in G:\android-sdk/tools/proguard/proguard-android.txt | ||
# You can edit the include path and order by changing the proguardFiles | ||
# directive in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# Add any project specific keep options here: | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} | ||
|
||
# Gson uses generic type information stored in a class file when working with fields. Proguard | ||
# removes such information by default, so configure it to keep all of it. | ||
-keepattributes Signature | ||
|
||
# For using GSON @Expose annotation | ||
-keepattributes *Annotation* | ||
|
||
# Gson specific classes | ||
-keep class sun.misc.Unsafe { *; } | ||
|
||
-dontwarn org.apache.commons.** | ||
-keep class org.apache.commons.** { *;} | ||
|
||
# Disable debug info output | ||
-assumenosideeffects class android.util.Log { | ||
public static boolean isLoggable(java.lang.String,int); | ||
public static int v(...); | ||
public static int i(...); | ||
public static int w(...); | ||
public static int d(...); | ||
public static int e(...); | ||
} | ||
-assumenosideeffects class kotlin.jvm.internal.Intrinsics { | ||
static void checkParameterIsNotNull(java.lang.Object, java.lang.String); | ||
static void checkExpressionValueIsNotNull(java.lang.Object, java.lang.String); | ||
static void throwUninitializedPropertyAccessException(java.lang.String); | ||
} | ||
|
||
-dontwarn org.jetbrains.anko.internals.** | ||
-keep class org.jetbrains.anko.internals.** { *;} | ||
|
||
-dontwarn rx.internal.util.unsafe.** | ||
-keep class rx.internal.util.unsafe.** { *;} | ||
|
||
-dontwarn app.dinus.** | ||
-keep class app.dinus.** { *;} | ||
|
||
-keepclassmembers class ** { | ||
@com.hwangjr.rxbus.annotation.Subscribe public *; | ||
@com.hwangjr.rxbus.annotation.Produce public *; | ||
} | ||
|
||
-keep class libv2ray.** { *;} |
13 changes: 13 additions & 0 deletions
13
V2rayNG/app/src/androidTest/java/com/v2ray/ang/ApplicationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.v2ray.ang; | ||
|
||
import android.app.Application; | ||
import android.test.ApplicationTestCase; | ||
|
||
/** | ||
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a> | ||
*/ | ||
public class ApplicationTest extends ApplicationTestCase<Application> { | ||
public ApplicationTest() { | ||
super(Application.class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.v2ray.ang"> | ||
|
||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> | ||
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/> | ||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> | ||
<!-- <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> --> | ||
<uses-permission android:name="android.permission.CAMERA" /> | ||
<uses-permission android:name="com.android.vending.BILLING" /> | ||
|
||
<!-- <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> --> | ||
<application | ||
android:name=".AngApplication" | ||
android:allowBackup="true" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="@string/app_name" | ||
android:supportsRtl="true" | ||
android:theme="@style/AppTheme"> | ||
<activity | ||
android:name=".ui.MainActivity" | ||
android:theme="@style/AppTheme.NoActionBar" | ||
android:launchMode="singleTask"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
|
||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
<intent-filter> | ||
<action android:name="android.intent.action.SEND" /> | ||
|
||
<category android:name="android.intent.category.DEFAULT" /> | ||
|
||
<data android:mimeType="text/plain" /> | ||
</intent-filter> | ||
<intent-filter> | ||
<action android:name="android.service.quicksettings.action.QS_TILE_PREFERENCES" /> | ||
</intent-filter> | ||
|
||
<meta-data | ||
android:name="android.app.shortcuts" | ||
android:resource="@xml/shortcuts" /> | ||
</activity> | ||
<activity | ||
android:name=".ui.ServerActivity" | ||
android:windowSoftInputMode="stateUnchanged" /> | ||
<activity | ||
android:name=".ui.Server2Activity" | ||
android:windowSoftInputMode="stateUnchanged" /> | ||
<activity | ||
android:name=".ui.Server3Activity" | ||
android:windowSoftInputMode="stateUnchanged" /> | ||
<activity | ||
android:name=".ui.Server4Activity" | ||
android:windowSoftInputMode="stateUnchanged" /> | ||
<activity android:name=".ui.SettingsActivity" /> | ||
<activity android:name=".ui.PerAppProxyActivity" /> | ||
<activity android:name=".ui.ScannerActivity" /> | ||
<activity android:name=".InappBuyActivity" /> | ||
<activity android:name=".ui.LogcatActivity" /> | ||
<activity | ||
android:name=".ui.RoutingSettingsActivity" | ||
android:windowSoftInputMode="stateUnchanged" /> | ||
<activity android:name=".ui.SubSettingActivity" /> | ||
|
||
<activity android:name=".ui.SubEditActivity" /> | ||
<activity android:name=".ui.ScScannerActivity" /> | ||
<activity android:name=".ui.ScSwitchActivity" /> | ||
|
||
<service | ||
android:name=".service.V2RayVpnService" | ||
android:enabled="true" | ||
android:exported="false" | ||
android:label="@string/app_name" | ||
android:permission="android.permission.BIND_VPN_SERVICE" | ||
android:process=":RunSoLibV2RayDaemon"> | ||
<intent-filter> | ||
<action android:name="android.net.VpnService" /> | ||
</intent-filter> | ||
<meta-data | ||
android:name="android.net.VpnService.SUPPORTS_ALWAYS_ON" | ||
android:value="true" /> | ||
</service> | ||
|
||
<!--<receiver android:name=".receiver.WidgetProvider">--> | ||
<!--<meta-data--> | ||
<!--android:name="android.appwidget.provider"--> | ||
<!--android:resource="@xml/app_widget_provider" />--> | ||
|
||
<!--<intent-filter>--> | ||
<!--<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />--> | ||
<!--<action android:name="com.v2ray.ang.action.widget.click" />--> | ||
<!--</intent-filter>--> | ||
<!--</receiver>--> | ||
|
||
<service | ||
android:name=".service.QSTileService" | ||
android:icon="@drawable/ic_v" | ||
android:label="@string/app_tile_name" | ||
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE"> | ||
<intent-filter> | ||
<action android:name="android.service.quicksettings.action.QS_TILE" /> | ||
</intent-filter> | ||
</service> | ||
<!-- =====================Tasker===================== --> | ||
<activity | ||
android:name=".ui.TaskerActivity" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="@string/app_name"> | ||
<intent-filter> | ||
<action android:name="com.twofortyfouram.locale.intent.action.EDIT_SETTING" /> | ||
</intent-filter> | ||
</activity> | ||
|
||
<receiver android:name=".receiver.TaskerReceiver"> | ||
<intent-filter> | ||
<action android:name="com.twofortyfouram.locale.intent.action.FIRE_SETTING" /> | ||
</intent-filter> | ||
</receiver> | ||
<!-- =====================Tasker===================== --> | ||
|
||
</application> | ||
|
||
</manifest> |
Oops, something went wrong.