Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift Reveal diff workflow example #2

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

DevSrSouza
Copy link
Owner

@DevSrSouza DevSrSouza commented Oct 12, 2023

This PRs contains a Github Workflow example of using git diff for output the changes made in this PRs and what will be new for Swift side.

@github-actions
Copy link

github-actions bot commented Oct 12, 2023

Swift Reveal result

class ExampleClass : KotlinBase {

    public init()

    
    open func swiftDoSomethingReallyCool()

    open func myFunctionReturnMap() -> [String : String]

    open func mySuperFun() -> Int32

    open func withCallback(myCallback: @escaping () -> String)

    open func mySwiftNameFunction()

    open var someProperty: String { get }
}

extension ExampleClass {

    open func myExtensionFunction()

    open func doNewExtension()
}

class ExampleClassKt : KotlinBase {

    open class func myTopLevelFunction() -> String
}

@github-actions
Copy link

github-actions bot commented Oct 12, 2023

Swift Reveal diffing

diff --git a/previous.swift b/new.swift
index 17625a6..05db8d5 100644
--- a/previous.swift
+++ b/new.swift
@@ -3,6 +3,8 @@ class ExampleClass : KotlinBase {
     public init()
 
     
+    open func swiftDoSomethingReallyCool()
+
     open func myFunctionReturnMap() -> [String : String]
 
     open func mySuperFun() -> Int32
@@ -10,11 +12,15 @@ class ExampleClass : KotlinBase {
     open func withCallback(myCallback: @escaping () -> String)
 
     open func mySwiftNameFunction()
+
+    open var someProperty: String { get }
 }
 
 extension ExampleClass {
 
     open func myExtensionFunction()
+
+    open func doNewExtension()
 }
 
 class ExampleClassKt : KotlinBase {

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

Successfully merging this pull request may close these issues.

1 participant