添加签名文件

This commit is contained in:
2021-02-08 10:48:08 +08:00
parent 29af9af399
commit 6b27df0eca
4 changed files with 15 additions and 1 deletions

6
.idea/vcs.xml generated Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

BIN
SignKey.jks Normal file

Binary file not shown.

View File

@ -16,6 +16,7 @@ android {
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
//签名配置
signingConfigs {
release {
storeFile file(RELEASE_STOREFILE);
@ -25,6 +26,7 @@ android {
}
}
//构建类型
buildTypes {
release {
minifyEnabled false //是否代码混淆
@ -35,6 +37,11 @@ android {
}
}
//关闭代码格式检查
lintOptions {
abortOnError false
}
//加载动态库
sourceSets {
main {
@ -42,6 +49,7 @@ android {
}
}
//编译选项
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8

View File

@ -18,7 +18,7 @@ android.useAndroidX=true
# Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true
RELEASE_STOREFILE=E:/AndroidStudioProject/signKey.jks
RELEASE_STOREFILE=../SignKey.jks
RELEASE_STORE_PASSWORD=123456
RELEASE_KEY_ALIAS=fxy
RELEASE_KEY_PASSWORD=123456