From dd8c8c5c91b94acb12ab103be899d208f2e6b5cb Mon Sep 17 00:00:00 2001 From: Bocheng Zou Date: Sun, 21 Apr 2024 06:38:11 +0000 Subject: [PATCH] =?UTF-8?q?=E5=8D=87=E7=BA=A7=20gradle=20=E7=89=88?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/deploymentTargetDropDown.xml | 10 ++++++++++ .idea/misc.xml | 2 +- app/build.gradle | 1 + .../newlydev/fileshare_android/http/HttpThread.java | 2 +- build.gradle | 3 +-- gradle/wrapper/gradle-wrapper.properties | 6 +++--- 6 files changed, 17 insertions(+), 7 deletions(-) create mode 100644 .idea/deploymentTargetDropDown.xml diff --git a/.idea/deploymentTargetDropDown.xml b/.idea/deploymentTargetDropDown.xml new file mode 100644 index 0000000..0c0c338 --- /dev/null +++ b/.idea/deploymentTargetDropDown.xml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 0c0470d..19d8e0b 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -12,7 +12,7 @@ - + diff --git a/app/build.gradle b/app/build.gradle index 67f0353..f3d4cf4 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,6 +1,7 @@ apply plugin: 'com.android.application' android { + namespace 'net.newlydev.fileshare_android' compileSdkVersion 31 defaultConfig { applicationId "net.newlydev.fileshare_android" diff --git a/app/src/main/java/net/newlydev/fileshare_android/http/HttpThread.java b/app/src/main/java/net/newlydev/fileshare_android/http/HttpThread.java index 90e2a3a..7e8b029 100644 --- a/app/src/main/java/net/newlydev/fileshare_android/http/HttpThread.java +++ b/app/src/main/java/net/newlydev/fileshare_android/http/HttpThread.java @@ -343,7 +343,7 @@ public int compare(FastDocumentFile p1, FastDocumentFile p2) { @Override public void run() { try { - AlertDialog.Builder ab = new AlertDialog.Builder(new ContextThemeWrapper(ctx, R.style.Theme_AppCompat_Light)); + AlertDialog.Builder ab = new AlertDialog.Builder(ctx); ab.setCancelable(false); ab.setTitle("FileShare"); ab.setMessage("下列用户请求您的权限来访问您的文件\nip地址:" + client.getInetAddress().toString()); diff --git a/build.gradle b/build.gradle index 0b744bd..194b823 100644 --- a/build.gradle +++ b/build.gradle @@ -9,13 +9,12 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.0.4' + classpath 'com.android.tools.build:gradle:8.0.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } - allprojects { repositories { mavenCentral() diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 485f135..9088a6d 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Tue Jan 05 17:07:29 CST 2021 +#Sun Apr 21 06:26:51 GMT 2024 +distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip +zipStoreBase=GRADLE_USER_HOME