Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Briar Desktop
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
briar
Briar Desktop
Commits
85a18b13
Verified
Commit
85a18b13
authored
3 years ago
by
Sebastian
Browse files
Options
Downloads
Patches
Plain Diff
Configure minify task using proguard
parent
9062b450
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!134
Configure minify task using proguard
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
build.gradle.kts
+14
-0
14 additions, 0 deletions
build.gradle.kts
proguard-rules.pro
+46
-0
46 additions, 0 deletions
proguard-rules.pro
with
60 additions
and
0 deletions
build.gradle.kts
+
14
−
0
View file @
85a18b13
...
...
@@ -34,6 +34,7 @@ buildscript {
classpath
(
"com.android.tools.build:gradle:4.1.3"
)
classpath
(
"ru.vyarus:gradle-animalsniffer-plugin:1.5.3"
)
classpath
(
files
(
"briar/libs/gradle-witness.jar"
))
classpath
(
"com.guardsquare:proguard-gradle:7.2.0"
)
}
// keep version here in sync when updating briar
...
...
@@ -116,6 +117,19 @@ tasks.jar {
exclude
(
"META-INF/BC2048KE.RSA"
,
"META-INF/BC2048KE.SF"
,
"META-INF/BC2048KE.DSA"
)
}
tasks
.
register
<
proguard
.
gradle
.
ProGuardTask
>(
"minify"
)
{
val
packageUberJarForCurrentOS
by
tasks
.
getting
dependsOn
(
packageUberJarForCurrentOS
)
val
files
=
packageUberJarForCurrentOS
.
outputs
.
files
injars
(
files
)
outjars
(
files
.
map
{
file
->
File
(
file
.
parentFile
,
"${file.nameWithoutExtension}.min.jar"
)
})
val
library
=
if
(
System
.
getProperty
(
"java.version"
).
startsWith
(
"1."
))
"lib/rt.jar"
else
"jmods"
libraryjars
(
"${System.getProperty("
java
.
home
")}/$library"
)
configuration
(
"proguard-rules.pro"
)
}
compose
.
desktop
{
application
{
mainClass
=
"org.briarproject.briar.desktop.MainKt"
...
...
This diff is collapsed.
Click to expand it.
proguard-rules.pro
0 → 100644
+
46
−
0
View file @
85a18b13
-
dontoptimize
-
dontobfuscate
-
keepkotlinmetadata
-
dontwarn
kotlinx
.
**
-
dontwarn
ch
.
qos
.
logback
.
**
-
dontwarn
com
.
sun
.
jna
.
**
-
dontwarn
okhttp3
.
**
-
dontwarn
okio
.
**
-
dontwarn
org
.
h2
.
**
-
dontwarn
org
.
slf4j
.
**
-
dontwarn
javax
.
servlet
.
**
-
dontwarn
org
.
jaxen
.
**
-
dontwarn
com
.
vividsolutions
.
jts
.
**
-
dontwarn
com
.
ibm
.
oti
.
**
-
dontwarn
com
.
sun
.
cdc
.
**
-
dontwarn
org
.
codehaus
.
janino
.
**
-
dontwarn
javax
.
mail
.
**
-
dontwarn
org
.
apache
.
log4j
.
**
-
dontwarn
android
.
**
-
dontwarn
org
.
conscrypt
.
**
-
dontwarn
org
.
apache
.
lucene
.
**
-
dontwarn
org
.
osgi
.
**
#
wildcard
,
use
if
above
doesn
`
t
suffice
#-
ignorewarnings
-
keepdirectories
**
-
keep
class
org
.
briarproject
.
**
-
keepattributes
InnerClasses
-
keepclasseswithmembers
public
class
org
.
briarproject
.
briar
.
desktop
.
MainKt
{
public
static
void
main
(
java
.
lang
.
String
[]);
}
-
keep
class
org
.
whispersystems
.
curve25519
.
**
-
keep
class
org
.
jetbrains
.
skia
.
**
{
*
;
}
-
keep
class
org
.
jetbrains
.
skiko
.
**
{
*
;
}
-
keep
class
com
.
ibm
.
icu
.
text
.
MessageFormat
-
keep
class
com
.
ibm
.
icu
.
text
.
MessagePattern
$
ApostropheMode
{
*
;}
-
keep
class
org
.
h2
.
**
{
*
;
}
-
keep
class
org
.
slf4j
.
**
{
*
;
}
-
keep
class
ch
.
qos
.
logback
.
**
{
*
;
}
-
keep
class
com
.
sun
.
jna
.
**
{
*
;
}
-
keep
class
*
implements
com
.
sun
.
jna
.
**
{
*
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment