1 parent
5650ee580f
commit
46c89534fd
4 files changed
+1
-27
No files matched your search
@@ -1 +0,0 @@
|
||||
/build
|
||||
@@ -1,11 +0,0 @@
|
||||
plugins {
|
||||
kotlin("multiplatform")
|
||||
}
|
||||
|
||||
kotlin {
|
||||
androidNativeArm64("native") {
|
||||
binaries {
|
||||
sharedLib("ehviewer-kotlin-native")
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package moe.tarsin.ehviewer
|
||||
|
||||
import kotlinx.cinterop.CPointer
|
||||
import kotlinx.cinterop.invoke
|
||||
import kotlinx.cinterop.pointed
|
||||
import platform.android.JNIEnvVar
|
||||
import platform.android.jclass
|
||||
import platform.android.jobject
|
||||
|
||||
@CName("Java_com_hippo_Native_rewriteGif")
|
||||
fun rewriteGif(env: CPointer<JNIEnvVar>, thiz: jclass, buffer: jobject) {
|
||||
val ptr = env.pointed.pointed!!.GetDirectBufferAddress!!.invoke(env, buffer)
|
||||
}
|
||||
+1
-2
@@ -6,7 +6,7 @@ pluginManagement {
|
||||
}
|
||||
}
|
||||
dependencyResolutionManagement {
|
||||
repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
|
||||
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
@@ -18,4 +18,3 @@ dependencyResolutionManagement {
|
||||
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
|
||||
rootProject.name = "EhViewer"
|
||||
include ':app'
|
||||
include ':native'
|
||||
Reference in new issue
Block a user