Skip to content

Commit

Permalink
Update proguard-rules Rhino 1.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Xwite committed Jan 6, 2025
1 parent cfb8816 commit 9609781
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
19 changes: 19 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,25 @@
### 以下内容是更新rhino1.7.14.jar后IDE提示添加的
-dontwarn java.beans.**
-dontwarn javax.script.**
### 以下内容是更新rhino1.8.0.jar后IDE提示添加的
-dontwarn jdk.dynalink.CallSiteDescriptor
-dontwarn jdk.dynalink.DynamicLinker
-dontwarn jdk.dynalink.DynamicLinkerFactory
-dontwarn jdk.dynalink.NamedOperation
-dontwarn jdk.dynalink.Namespace
-dontwarn jdk.dynalink.NamespaceOperation
-dontwarn jdk.dynalink.Operation
-dontwarn jdk.dynalink.RelinkableCallSite
-dontwarn jdk.dynalink.StandardNamespace
-dontwarn jdk.dynalink.StandardOperation
-dontwarn jdk.dynalink.linker.GuardedInvocation
-dontwarn jdk.dynalink.linker.GuardingDynamicLinker
-dontwarn jdk.dynalink.linker.LinkRequest
-dontwarn jdk.dynalink.linker.LinkerServices
-dontwarn jdk.dynalink.linker.TypeBasedGuardingDynamicLinker
-dontwarn jdk.dynalink.linker.support.CompositeTypeBasedGuardingDynamicLinker
-dontwarn jdk.dynalink.linker.support.Guards
-dontwarn jdk.dynalink.support.ChainedCallSite

## EPUB
-dontwarn nl.siegmann.epublib.**
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ protobufJavalite = "4.26.1"
quickChineseTransfer = "0.2.13"
room = "2.6.1"
splitties = "3.0.0"
rhino = "1.7.15"
rhino = "1.8.0"
desugar = "2.0.4"

activity = "1.9.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,8 @@ object RhinoScriptEngine : AbstractScriptEngine(), Invocable, Compilable {

override fun makeContext(): Context {
val cx = RhinoContext(this)
cx.languageVersion = 200
cx.optimizationLevel = -1
cx.languageVersion = Context.VERSION_ES6
cx.interpretedMode = true
cx.setClassShutter(RhinoClassShutter)
cx.wrapFactory = RhinoWrapFactory
cx.instructionObserverThreshold = 10000
Expand Down

0 comments on commit 9609781

Please sign in to comment.