Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Improve Kotlin Binding Support #685

Merged
merged 7 commits into from
Oct 4, 2019
Merged

Conversation

mattleibow
Copy link
Collaborator

No description provided.

Not sure why, but the later the version of Kotlin the app uses, more methods are not found.
@@ -1,6 +1,6 @@
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.3.41'
id 'org.jetbrains.kotlin.jvm' version '1.3.0'
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a note about the version numbers: As I update the version to the later ones, it struggles to find various members. So, I just dropped it all the way down. Not sure what is happening here, but it works now...

@@ -20,6 +20,9 @@ class ProcessXmlCommand : CliktCommand(name = "KotlinBindingSupport") {
val outputFile: File? by option("-o", "--output", help = "path to the output transform file")
.file(fileOkay = true, folderOkay = false)

val ignoreFile: File? by option("-i", "--ignore", help = "path to the ignore file")
.file(fileOkay = true, folderOkay = false)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't actually thing this is needed anymore since it is working properly with a lower Kotlin version, but just in case.

@@ -196,13 +203,13 @@ class Processor(xmlFile: File, jarFiles: List<File>, outputFile: File?) {

// remove the members that are not meant to be used
processMembers(xclass, "constructor") {
shouldRemoveMember(it, jclass.declaredConstructors)
shouldRemoveMember(it, jclass.declaredConstructors + jclass.constructors)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is still a required change because several members are not found for some reason. It works now, so...

@mattleibow
Copy link
Collaborator Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mattleibow
Copy link
Collaborator Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mattleibow mattleibow merged commit 238ae5c into master Oct 4, 2019
@mattleibow mattleibow deleted the dev/improve-kotlin-binding branch October 4, 2019 00:02
mattleibow added a commit that referenced this pull request Oct 4, 2019
@mattleibow mattleibow mentioned this pull request Oct 4, 2019
mattleibow added a commit that referenced this pull request Oct 4, 2019
@mattleibow
Copy link
Collaborator Author

This was a failure, re-doing it: #689

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants