From 5d72bf20caef458c125b34146edd41358fc96873 Mon Sep 17 00:00:00 2001 From: NekoInverter <7741672-NekoInverter@users.noreply.gitlab.com> Date: Thu, 4 Feb 2021 19:53:53 +0800 Subject: [PATCH] Fix torrent download close #48 --- app/build.gradle | 4 ++-- app/src/main/AndroidManifest.xml | 1 + app/src/main/res/xml/network_security_config.xml | 6 ++++++ build.gradle | 2 +- gradle/wrapper/gradle-wrapper.properties | 2 +- 5 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 app/src/main/res/xml/network_security_config.xml diff --git a/app/build.gradle b/app/build.gradle index 2c2e6ce86..64785a024 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -25,8 +25,8 @@ android { applicationId "io.github.nekoinverter.ehviewer" minSdkVersion 21 targetSdkVersion 30 - versionCode 139 - versionName "1.7.21" + versionCode 140 + versionName "1.7.21.1" resConfigs "zh", "zh-rCN", "zh-rHK", "zh-rTW", "es", "ja", "ko", "fr", "de", "th" testOptions.unitTests.includeAndroidResources = true diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 9f40329f8..99eda94f7 100755 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -40,6 +40,7 @@ android:appCategory="image" android:hasFragileUserData="true" android:roundIcon="@mipmap/ic_launcher_round" + android:networkSecurityConfig="@xml/network_security_config" android:theme="@style/AppTheme" tools:ignore="UnusedAttribute"> diff --git a/app/src/main/res/xml/network_security_config.xml b/app/src/main/res/xml/network_security_config.xml new file mode 100644 index 000000000..50173be3e --- /dev/null +++ b/app/src/main/res/xml/network_security_config.xml @@ -0,0 +1,6 @@ + + + + ehtracker.org + + \ No newline at end of file diff --git a/build.gradle b/build.gradle index 2a791a362..b3153df18 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ buildscript { maven { url "https://jitpack.io" } } dependencies { - classpath 'com.android.tools.build:gradle:4.1.2' + classpath 'com.android.tools.build:gradle:7.0.0-alpha05' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 7bf3c4d40..b3149f35a 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.1-all.zip