From b46e733aecc9d9775d73e799ab17bca48490ce1c Mon Sep 17 00:00:00 2001 From: hwf452 Date: Thu, 3 Aug 2023 17:33:44 +0800 Subject: [PATCH] change ip --- ZJ_FILE_SYNC/FILESYNC/app/build.gradle | 26 ++++++++++++++++++- .../com/rehome/filesync/contans/Contans.java | 4 +-- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/ZJ_FILE_SYNC/FILESYNC/app/build.gradle b/ZJ_FILE_SYNC/FILESYNC/app/build.gradle index a60d798..fb95c67 100644 --- a/ZJ_FILE_SYNC/FILESYNC/app/build.gradle +++ b/ZJ_FILE_SYNC/FILESYNC/app/build.gradle @@ -16,9 +16,25 @@ android { resConfigs "zh", "en" resConfigs "hdpi" } - + buildFeatures { + buildConfig = true + } + signingConfigs { + release { + keyAlias 'key0' + storeFile file('../key/keystore1') + storePassword 'abc123123' + keyPassword 'abc123123' + v1SigningEnabled true //是否开启V1签名 + v2SigningEnabled true //是否开启V2签名 + } + } /* keypassword:abc123123 alias key0*/ buildTypes { + debug { + minifyEnabled false + buildConfigField "boolean", "LOG_ERROR", "true" + } release { lintOptions { checkReleaseBuilds false @@ -28,6 +44,14 @@ android { zipAlignEnabled true // 对齐zip debuggable false // 是否debug proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + buildConfigField "boolean", "LOG_ERROR", "false" + signingConfig signingConfigs.release // 打包签名信息 + //修改生成的apk名字 + android.applicationVariants.all { variant -> + variant.outputs.all { + outputFileName = "filesync.apk" + } + }; } } diff --git a/ZJ_FILE_SYNC/FILESYNC/app/src/main/java/com/rehome/filesync/contans/Contans.java b/ZJ_FILE_SYNC/FILESYNC/app/src/main/java/com/rehome/filesync/contans/Contans.java index 8caf80d..918e351 100755 --- a/ZJ_FILE_SYNC/FILESYNC/app/src/main/java/com/rehome/filesync/contans/Contans.java +++ b/ZJ_FILE_SYNC/FILESYNC/app/src/main/java/com/rehome/filesync/contans/Contans.java @@ -3,8 +3,8 @@ package com.rehome.filesync.contans; public class Contans { - //public static String IP = "http://10.20.1.100:8102/"; - public static String IP = "https://www.zjtsp.com/"; + public static String IP = "http://10.20.1.100:8102/"; + //public static String IP = "https://www.zjtsp.com/"; // 获取文件列表 public static String GET_FILE_LIST = "getFileList.ashx";