Skip to content

Commit

Permalink
fix generated jni code
Browse files Browse the repository at this point in the history
  • Loading branch information
DatL4g committed Dec 9, 2024
1 parent e4e99d9 commit 688ddff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class NativeJNIGenerator(
.addAnnotation(Utils.optInAnnotation(C.experimentalForeignApi, C.experimentalNativeApi))
.addAnnotation(
AnnotationSpec.builder(C.cname)
.addMember("%S", "Java_${Utils.packageNameCSave(settings.packageName)}_Sekret__${key}Encrypted")
.addMember("%S", "Java_${Utils.packageNameCSave(settings.packageName)}_Sekret__1${key}Encrypted")
.build()
)
.addParameter("env", C.pointer.parameterizedBy(JNI.jniEnvVar(JNI_PACKAGE_NAME)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class JNIGenerator(
.addAnnotation(JvmStatic::class)
.addModifiers(KModifier.PRIVATE)
.returns(Utils.encryptedSecret.copy(nullable = true))
.addStatement("return _${key}Encrypted()?.let(%L)", Utils.encryptedSecret.member("invoke"))
.addStatement("return _${key}Encrypted()?.let(%L)", Utils.encryptedSecret.member("invoke").reference())
.build()
)
}
Expand Down

0 comments on commit 688ddff

Please sign in to comment.