SourceVersion stub
This commit is contained in:
@@ -41,6 +41,7 @@ dependencies {
|
||||
implementation(libs.androidx.documentfile)
|
||||
implementation(libs.rhino)
|
||||
|
||||
implementation(project(":stub"))
|
||||
implementation(project(":mapper"))
|
||||
implementation(project(":native"))
|
||||
}
|
||||
@@ -21,3 +21,4 @@ include(":core")
|
||||
include(":app")
|
||||
include(":mapper")
|
||||
include(":native")
|
||||
include(":stub")
|
||||
1
stub/.gitignore
vendored
Normal file
1
stub/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/build
|
||||
14
stub/build.gradle.kts
Normal file
14
stub/build.gradle.kts
Normal file
@@ -0,0 +1,14 @@
|
||||
plugins {
|
||||
alias(libs.plugins.androidLibrary)
|
||||
alias(libs.plugins.kotlinAndroid)
|
||||
}
|
||||
|
||||
|
||||
android {
|
||||
namespace = rootProject.ext["applicationId"].toString() + ".stub"
|
||||
compileSdk = 34
|
||||
|
||||
kotlinOptions {
|
||||
jvmTarget = "1.8"
|
||||
}
|
||||
}
|
||||
23
stub/src/main/java/javax/lang/model/SourceVersion.java
Normal file
23
stub/src/main/java/javax/lang/model/SourceVersion.java
Normal file
@@ -0,0 +1,23 @@
|
||||
package javax.lang.model;
|
||||
|
||||
// Rhino misses this class in the android platform
|
||||
@SuppressWarnings("unused")
|
||||
public enum SourceVersion {
|
||||
RELEASE_0,
|
||||
RELEASE_1,
|
||||
RELEASE_2,
|
||||
RELEASE_3,
|
||||
RELEASE_4,
|
||||
RELEASE_5,
|
||||
RELEASE_6,
|
||||
RELEASE_7,
|
||||
RELEASE_8,
|
||||
RELEASE_9,
|
||||
RELEASE_10,
|
||||
RELEASE_11;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public static SourceVersion latestSupported() {
|
||||
return RELEASE_8;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user