mirror of
https://github.com/gedoor/legado.git
synced 2024-07-06 23:47:49 +08:00
优化
This commit is contained in:
parent
e465c979f8
commit
9b26518819
@ -117,9 +117,7 @@ android {
|
|||||||
targetCompatibility JavaVersion.VERSION_11
|
targetCompatibility JavaVersion.VERSION_11
|
||||||
}
|
}
|
||||||
packagingOptions {
|
packagingOptions {
|
||||||
resources {
|
resources.excludes.add('META-INF/*')
|
||||||
excludes += ['META-INF/INDEX.LIST']
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
@ -203,7 +201,7 @@ dependencies {
|
|||||||
|
|
||||||
//JS rhino
|
//JS rhino
|
||||||
//implementation('com.github.gedoor:rhino-android:1.8')
|
//implementation('com.github.gedoor:rhino-android:1.8')
|
||||||
implementation(fileTree(dir: 'lib', include: ['rhino-*.jar']))
|
implementation(project(path: ':rhino'))
|
||||||
|
|
||||||
//网络
|
//网络
|
||||||
implementation('com.squareup.okhttp3:okhttp:4.10.0')
|
implementation('com.squareup.okhttp3:okhttp:4.10.0')
|
||||||
|
Binary file not shown.
1
rhino/.gitignore
vendored
Normal file
1
rhino/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
/build
|
36
rhino/build.gradle
Normal file
36
rhino/build.gradle
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
plugins {
|
||||||
|
id 'com.android.library'
|
||||||
|
}
|
||||||
|
|
||||||
|
android {
|
||||||
|
compileSdk = compile_sdk_version
|
||||||
|
buildToolsVersion = build_tool_version
|
||||||
|
namespace 'com.script'
|
||||||
|
defaultConfig {
|
||||||
|
minSdk 21
|
||||||
|
targetSdk 33
|
||||||
|
|
||||||
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
|
consumerProguardFiles "consumer-rules.pro"
|
||||||
|
}
|
||||||
|
|
||||||
|
buildTypes {
|
||||||
|
release {
|
||||||
|
minifyEnabled false
|
||||||
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
compileOptions {
|
||||||
|
sourceCompatibility JavaVersion.VERSION_1_8
|
||||||
|
targetCompatibility JavaVersion.VERSION_1_8
|
||||||
|
}
|
||||||
|
lint {
|
||||||
|
checkDependencies true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
compileOnly "com.android.tools.build:gradle:$agp_version"
|
||||||
|
api(fileTree(dir: 'lib', include: ['rhino-*.jar']))
|
||||||
|
}
|
0
rhino/consumer-rules.pro
Normal file
0
rhino/consumer-rules.pro
Normal file
BIN
rhino/lib/rhino-1.7.13-1.jar
Normal file
BIN
rhino/lib/rhino-1.7.13-1.jar
Normal file
Binary file not shown.
26
rhino/proguard-rules.pro
vendored
Normal file
26
rhino/proguard-rules.pro
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
# Add project specific ProGuard rules here.
|
||||||
|
# You can control the set of applied configuration files using the
|
||||||
|
# proguardFiles setting in build.gradle.
|
||||||
|
#
|
||||||
|
# For more details, see
|
||||||
|
# http://developer.android.com/guide/developing/tools/proguard.html
|
||||||
|
|
||||||
|
# If your project uses WebView with JS, uncomment the following
|
||||||
|
# and specify the fully qualified class name to the JavaScript interface
|
||||||
|
# class:
|
||||||
|
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
||||||
|
# public *;
|
||||||
|
#}
|
||||||
|
|
||||||
|
# Uncomment this to preserve the line number information for
|
||||||
|
# debugging stack traces.
|
||||||
|
#-keepattributes SourceFile,LineNumberTable
|
||||||
|
|
||||||
|
# If you keep the line number information, uncomment this to
|
||||||
|
# hide the original source file name.
|
||||||
|
#-renamesourcefileattribute SourceFile
|
||||||
|
|
||||||
|
## Rhino
|
||||||
|
-keep class javax.script.** { *; }
|
||||||
|
-keep class com.sun.script.javascript.** { *; }
|
||||||
|
-keep class org.mozilla.javascript.** { *; }
|
4
rhino/src/main/AndroidManifest.xml
Normal file
4
rhino/src/main/AndroidManifest.xml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<manifest>
|
||||||
|
|
||||||
|
</manifest>
|
@ -28,4 +28,4 @@ dependencyResolutionManagement {
|
|||||||
}
|
}
|
||||||
rootProject.name = 'legado'
|
rootProject.name = 'legado'
|
||||||
|
|
||||||
include ':app',':epublib'
|
include ':app',':rhino',':epublib'
|
||||||
|
Loading…
Reference in New Issue
Block a user