diff --git a/build.gradle b/build.gradle index af27c78b..2e785180 100644 --- a/build.gradle +++ b/build.gradle @@ -1,3 +1,7 @@ +buildscript { + ext.kotlin_version = "1.8.21" +} + plugins { id 'java' id 'org.jetbrains.kotlin.jvm' version '1.8.21' @@ -13,8 +17,6 @@ repositories { } dependencies { - implementation "org.jetbrains.kotlin:kotlin-reflect" - implementation "org.jetbrains.kotlin:kotlin-stdlib" implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7' implementation 'org.json:json:20230618' implementation 'org.lz4:lz4-java:1.8.0' diff --git a/jitpack.yml b/jitpack.yml new file mode 100644 index 00000000..46c85291 --- /dev/null +++ b/jitpack.yml @@ -0,0 +1,2 @@ +jdk: + - openjdk11 \ No newline at end of file diff --git a/src/main/kotlin/io/github/deficuet/unitykt/classes/PPtr.kt b/src/main/kotlin/io/github/deficuet/unitykt/classes/PPtr.kt index d50bd643..d8ccca4e 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/classes/PPtr.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/classes/PPtr.kt @@ -1,9 +1,12 @@ package io.github.deficuet.unitykt.classes -import io.github.deficuet.unitykt.* +import io.github.deficuet.unitykt.cast +import io.github.deficuet.unitykt.firstObjectOf +import io.github.deficuet.unitykt.firstOfOrNull import io.github.deficuet.unitykt.internal.impl.PPtrImpl import io.github.deficuet.unitykt.internal.impl.getObjInternal import io.github.deficuet.unitykt.internal.impl.safeGetObjInternal +import io.github.deficuet.unitykt.safeCast interface PPtr { val mFileID: Int