feat(release): 新增签名配置并更新构建类型

- 新增 release 签名配置,使用 agent_retention.jks 密钥库
- 更新 release 构建类型,启用签名配置和代码混淆
- 移除旧的密钥库文件 (agentkey.jks, new-release-key.jks, your-release-key.jks)
- 更新 .idea/misc.xml 文件
This commit is contained in:
yjj38 2025-07-04 11:17:03 +08:00
parent c999ee6f69
commit 7cf941af6e
6 changed files with 11 additions and 2 deletions

View File

@ -1,4 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" /> <component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="21" project-jdk-type="JavaSDK"> <component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="21" project-jdk-type="JavaSDK">

Binary file not shown.

BIN
app/agent_retention.jks Normal file

Binary file not shown.

View File

@ -6,6 +6,15 @@ android {
namespace 'com.example.studyapp' namespace 'com.example.studyapp'
compileSdk 35 compileSdk 35
signingConfigs {
release {
storeFile file('agent_retention.jks')
storePassword 'agent_retention'
keyAlias 'agent_retention'
keyPassword 'agent_retention'
}
}
defaultConfig { defaultConfig {
applicationId "com.example.retention" applicationId "com.example.retention"
minSdk 24 minSdk 24
@ -30,7 +39,8 @@ android {
buildTypes { buildTypes {
release { release {
minifyEnabled false signingConfig signingConfigs.release
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
} }
debug { debug {

Binary file not shown.

Binary file not shown.