Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
A
appzxhy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhouzhi
appzxhy
Commits
83218a47
Commit
83218a47
authored
Dec 26, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...打包的东西
parent
d2ac0af8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
2 deletions
+39
-2
build.gradle.kts
app/build.gradle.kts
+24
-1
proguard-rules.pro
app/proguard-rules.pro
+15
-1
No files found.
app/build.gradle.kts
View file @
83218a47
import
java.text.SimpleDateFormat
import
java.util.Locale
plugins
{
alias
(
libs
.
plugins
.
android
.
application
)
alias
(
libs
.
plugins
.
kotlin
.
android
)
...
...
@@ -17,12 +20,32 @@ android {
versionName
=
"1.0"
testInstrumentationRunner
=
"androidx.test.runner.AndroidJUnitRunner"
fun
Long
.
toFormatTime3
():
String
{
return
SimpleDateFormat
(
"yyyy-MM-dd-HH-mm-ss"
,
Locale
.
ENGLISH
).
format
(
this
)
}
setProperty
(
"archivesBaseName"
,
"appzxhy-v$versionName($versionCode)-${System.currentTimeMillis().toFormatTime3()}"
)
signingConfigs
{
create
(
"release"
)
{
//E6:A2:DD:0A:E6:73:22:32:4E:98:08:78:73:29:01:C4:8D:A0:38:DB:D8:B2:DD:B9:AC:55:69:B2:6B:DF:B0:B4
storeFile
=
file
(
"../smartcl.jks"
)
storePassword
=
"123456"
keyAlias
=
"key0"
keyPassword
=
"123456"
}
}
}
buildTypes
{
release
{
isMinifyEnabled
=
fals
e
isMinifyEnabled
=
tru
e
proguardFiles
(
getDefaultProguardFile
(
"proguard-android-optimize.txt"
),
"proguard-rules.pro"
)
// 设置是否要自动上传
firebaseCrashlytics
{
mappingFileUploadEnabled
=
true
}
signingConfig
=
signingConfigs
.
getByName
(
"release"
)
}
}
compileOptions
{
...
...
app/proguard-rules.pro
View file @
83218a47
...
...
@@ -18,4 +18,18 @@
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
\ No newline at end of file
#-renamesourcefileattribute SourceFile
-
dontwarn
javax
.
annotation
.
Nullable
#-keep class com.base.locationsharewhite.bean.** { *; }
-
keep
class
com
.
google
.
gson
.
reflect
.
**
{
*
;
}
-
keep
class
*
extends
com
.
google
.
gson
.
reflect
.
TypeToken
-
keep
class
com
.
google
.
gson
.
stream
.
**
{
*
;
}
-
keep
class
com
.
squareup
.
okhttp
.
**
{
*
;
}
-
keepattributes
*
Annotation
*
-
keep
class
*
extends
com
.
google
.
gson
.
TypeAdapter
-
keep
class
*
extends
com
.
google
.
gson
.
JsonSerializer
-
keep
class
*
extends
com
.
google
.
gson
.
Deserializer
-
keep
class
com
.
google
.
gson
.
TypeAdapters
{
*
;}
-
keep
class
com
.
bytedance
.
sdk
.
**
{
*
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment