SourceVersion stub

This commit is contained in:
rhunk
2023-09-16 23:30:29 +02:00
parent 53359170f6
commit 08614ef454
5 changed files with 40 additions and 0 deletions

View File

@@ -41,6 +41,7 @@ dependencies {
implementation(libs.androidx.documentfile)
implementation(libs.rhino)
implementation(project(":stub"))
implementation(project(":mapper"))
implementation(project(":native"))
}

View File

@@ -21,3 +21,4 @@ include(":core")
include(":app")
include(":mapper")
include(":native")
include(":stub")

1
stub/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
/build

14
stub/build.gradle.kts Normal file
View 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"
}
}

View 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;
}
}