Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lib_base
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sikang
lib_base
Commits
c36f969c
Commit
c36f969c
authored
Mar 21, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update resguard.gradle
parent
897797cd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
1 deletions
+59
-1
resguard.gradle
+58
-0
script/release_builder.sh
+1
-1
No files found.
resguard.gradle
0 → 100644
View file @
c36f969c
apply
plugin:
'AndResGuard'
andResGuard
{
// mappingFile = file("./resource_mapping.txt")
mappingFile
=
null
//不使用7zip
use7zip
=
false
//使用签名
useSign
=
true
// keep住所有资源的原始路径,只混淆资源的名字,不混淆路径
keepRoot
=
true
whiteList
=
[
// your icon
"R.drawable.icon"
,
// for fabric
"R.string.com.crashlytics.*"
,
//FireBase
"R.string.project_id"
,
// for google-services
"R.string.google_app_id"
,
"R.string.gcm_defaultSenderId"
,
"R.string.default_web_client_id"
,
"R.string.ga_trackingId"
,
"R.string.firebase_database_url"
,
"R.string.google_api_key"
,
"R.string.google_crash_reporting_api_key"
]
compressFilePattern
=
[
"*.png"
,
"*.jpg"
,
"*.jpeg"
,
"*.gif"
,
]
//因为不使用sevenzip 所以该处注释
// sevenzip {
// artifact = 'com.tencent.mm:SevenZip:1.2.13'
// //path = "/usr/local/bin/7za"
// }
/**
* Optional: if finalApkBackupPath is null, AndResGuard will overwrite final apk
* to the path which assemble[Task] write to
**/
// finalApkBackupPath = "${project.rootDir}/final.apk"
android
.
applicationVariants
.
all
{
variant
->
variant
.
outputs
.
all
{
finalApkBackupPath
=
"${project.rootDir}/resGuardApks/${project.rootProject.name}_${variant.buildType.name}.apk"
}
}
/**
* Optional: Specifies the name of the message digest algorithm to user when digesting the entries of JAR file
* Only works in V1signing, default value is "SHA-1"
**/
// digestalg = "SHA-256"
}
\ No newline at end of file
script/release_builder.sh
View file @
c36f969c
cd
../../
cd
../../
rm resGuardApks
rm
-rf
resGuardApks
gradlew clean
gradlew clean
gradlew resguardAppProductGoogleplayRelease
gradlew resguardAppProductGoogleplayRelease
#cd ../base/src/base/script
#cd ../base/src/base/script
...
...
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