Skip to content

Commit beac530

Browse files
author
isayan
committed
support Android 12
1 parent 6764f5a commit beac530

File tree

6 files changed

+14
-16
lines changed

6 files changed

+14
-16
lines changed

Readme-ja.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,4 +125,4 @@ SSLを復号化するには、ローカルプロキシツールのRoot証明書
125125
## 開発環境
126126

127127
* JRE(JDK) 1.8以上(Open JDK)
128-
* AndroidStudio 3.6.1 (https://developer.android.com/studio/index.html)
128+
* AndroidStudio 2021.1.1 (https://developer.android.com/studio/index.html)

Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,4 @@ Most of the code was created based on the following applications for creating ap
121121
## Development environment
122122

123123
* JRE(JDK) 1.8 or later(Open JDK)
124-
* AndroidStudio 3.6.1 (https://developer.android.com/studio/index.html)
124+
* AndroidStudio 2021.1.1 (https://developer.android.com/studio/index.html)

android_app/app/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 30
5-
buildToolsVersion "30.0.3"
4+
compileSdkVersion 31
5+
buildToolsVersion "31.0.0"
66

77
sourceCompatibility = '1.8' // -source
88
targetCompatibility = '1.8' // -target
99

1010
defaultConfig {
1111
applicationId "tun.proxy"
1212
minSdkVersion 21
13-
targetSdkVersion 30
14-
versionCode 100260
13+
targetSdkVersion 31
14+
versionCode 100270
1515
versionName VERSION_NAME
1616
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
1717
externalNativeBuild {

android_app/app/src/main/AndroidManifest.xml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
<activity
1919
android:name=".MainActivity"
2020
android:label="@string/app_name"
21-
android:theme="@style/AppTheme.NoActionBar">
21+
android:theme="@style/AppTheme.NoActionBar"
22+
android:exported="true">
2223
<intent-filter>
2324
<action android:name="android.intent.action.MAIN" />
24-
2525
<category android:name="android.intent.category.LAUNCHER" />
2626
</intent-filter>
2727
</activity>
@@ -36,15 +36,17 @@
3636

3737
<service
3838
android:name=".service.Tun2HttpVpnService"
39-
android:permission="android.permission.BIND_VPN_SERVICE">
39+
android:permission="android.permission.BIND_VPN_SERVICE"
40+
android:exported="true">
4041
<intent-filter>
4142
<action android:name="android.net.VpnService" />
4243
</intent-filter>
4344
</service>
4445

4546
<receiver
4647
android:name=".receiver.BootReceiver"
47-
android:label="@string/app_name">
48+
android:label="@string/app_name"
49+
android:exported="true">
4850
<intent-filter android:priority="999">
4951
<action android:name="android.intent.action.BOOT_COMPLETED" />
5052
</intent-filter>

android_app/build.gradle

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,8 @@ buildscript {
88

99
}
1010

11-
1211
dependencies {
13-
classpath 'com.android.tools.build:gradle:4.2.2'
14-
15-
// NOTE: Do not place your application dependencies here; they belong
16-
// in the individual module build.gradle files
12+
classpath 'com.android.tools.build:gradle:7.0.2'
1713
}
1814
}
1915

android_app/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ android.useAndroidX=true
1919
android.enableJetifier=true
2020

2121
APP_NAME=TunProxy
22-
VERSION_NAME=1.2.6
22+
VERSION_NAME=1.2.7
2323

2424
productKeyStore=../changeit.jks
2525
productKeyAlias=key0

0 commit comments

Comments
 (0)