-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproguardrules.pro.old
More file actions
80 lines (72 loc) · 2.83 KB
/
proguardrules.pro.old
File metadata and controls
80 lines (72 loc) · 2.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/**
* Archived proguard rules for creating a minimized .jar archive
*/
buildscript {
repositories {
mavenCentral() // For the ProGuard Gradle Plugin and anything else.
}
dependencies {
classpath("com.guardsquare:proguard-gradle:7.2.1") // The ProGuard Gradle plugin.
}
}
tasks.register<proguard.gradle.ProGuardTask>("minimizedJar") {
dependsOn("copyJar")
verbose()
// ignorewarnings()
injars("$buildDir/jars/MDROReport-Full.jar")
outjars("$buildDir/minJar/MDROReport.min.jar")
val javaHome = System.getProperty("java.home")
// Automatically handle the Java version of this build.
if (System.getProperty("java.version").startsWith("1.")) {
// Before Java 9, the runtime classes were packaged in a single jar file.
libraryjars("$javaHome/lib/rt.jar")
} else {
// As of Java 9, the runtime classes are packaged in modular jmod files.
for (module in listOf(
"java.base", "jdk.xml.dom", "jdk.jsobject", "java.xml", "java.desktop",
"java.datatransfer", "java.logging", "java.management", "java.naming", "java.net.http",
"java.xml.crypto", "java.sql", "java.scripting"
)) {
libraryjars(
mapOf("jarfilter" to "!**.jar", "filter" to "!module-info.class"),
"$javaHome/jmods/$module.jmod"
)
}
}
// overloadaggressively()
// repackageclasses("")
allowaccessmodification()
printmapping("build/proguard-mapping.txt")
dontobfuscate()
dontoptimize()
// dontwarn()
keep("class de.uni_muenster.imi.oegd.application.Main { *; }")
keep("public class com.sun.javafx.tk.quantum.QuantumToolkit { *; }")
keep("class com.sun.glass.ui.** { *; }")
keep("class com.sun.javafx.** { *; }")
keep("class javafx.fxml.** { *; }")
keep("class javafx.scene.** { *; }")
keep("class javafx.geometry.** { *; }")
keep("class javafx.css.** { *; }")
keep("class com.sun.prism.shader.** { *; }")
keep("class com.sun.prism.es2.** { *; }")
keep("class com.sun.scenario.effect.impl.prism.** { *; }")
keep("class com.sun.scenario.effect.impl.es2.** { *; }")
keep("public class com.sun.prism.**Pipeline { *; }")
keep("class com.sun.glass.ui.win.WinPlatformFactory")
keep("class kotlin.reflect.jvm.internal.** { *; }")
keep("class kotlin.text.RegexOption { *; }")
keep("public class ch.qos.logback.** { *; }")
dontwarn("ch.qos.logback.**")
dontwarn("groovy.**")
dontwarn("org.codehaus.groovy.**")
dontwarn("io.netty.**")
dontwarn("com.sun.javafx.logging.jfr.**")
dontwarn("kotlinx.coroutines.debug.**")
dontwarn("com.sun.marlin.**")
dontwarn("io.ktor.server.**")
ignorewarnings()
adaptresourcefilenames("**.so")
adaptresourcefilecontents("**.so")
// dontwarn("org.w3c.**")
}