You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: Package.swift
+23-23
Original file line number
Diff line number
Diff line change
@@ -23,34 +23,34 @@ let package = Package(
23
23
intent:.custom(verb:"skip-init", description:"Show an introduction to Skip and how it can be added to this project."),
24
24
permissions:[
25
25
.writeToPackageDirectory(reason:"""
26
-
Skip: Swift Kotlin Interop”
26
+
Skip: Swift Kotlin Interop (Technology Preview)”
27
27
28
-
This plugin will setup the necessary files and folders to transpile your Swift SPM package into a Kotlin Gradle project.
28
+
This operation will setup the necessary files and folders to transpile your Swift SPM package into a Kotlin Gradle project.
29
29
30
-
• A “Skip” folder will be created at the root of your package with links to the generated Kotlin sources.
30
+
1. A “Skip” folder will be created at the root of your package with a skip.yml configuration file and links to the eventual build output of your project.
31
31
32
-
• A “TargetNameKt” peer target will be created for each library target in the package, which will use the Skip plugin to transpile the Swift code into Kotlin.
32
+
2. The Package.swift file will be modified to add a “TargetNameKt” peer target for each pure-Swift library target, which will use the Skip transpile plugin to generate the Kotlin for its Swift counterpart.
33
33
34
-
• Test cases that inherit `XCTest` will be transpiled to JUnit tests, and the Kotlin test cases can be run from the generated Gradle build files once it is manually installed with the command: `brew install gradle`
34
+
3. Test cases that inherit «XCTest» will be transpiled to «JUnit» tests, and the Kotlin test cases can be run from the generated Gradle build files once it is manually installed with the homebrew command: `brew install gradle`
35
35
36
-
• All Swift dependencies, either local or external, must each have their own Kt peer targets configured. Only Swift source targets are supported: no C, C++, Objective-C or binary targets will be transpiled.
36
+
4. A “Skip/README.md” file will be created with the results of this command. Please continue reading this file for further instructions once this command completes.
37
37
38
-
• A “Skip/README.md” file will be created with the results of this command. Please continue reading this file for further instructions once it has been generated.
38
+
You should ensure your project folder is backed up before continuing. By proceeding you agree to abide by the terms and conditions of the Skip license.
39
39
40
40
“Happy Skipping!
41
41
""")
42
42
]),
43
43
dependencies:["skiptool"],
44
44
path:"Plugins/HelloSkip"),
45
45
46
-
.plugin(name:"Run Kotlin Tests",
47
-
capability:.command(
48
-
intent:.custom(verb:"skip-test", description:"Add Kotlin Targets to the current Package.swift"),
49
-
permissions:[
50
-
.writeToPackageDirectory(reason:"Skip needs to create and update the Skip folder in the project."),
51
-
]),
52
-
dependencies:["skiptool"],
53
-
path:"Plugins/RunGradleTests"),
46
+
//.plugin(name: "Run Kotlin Tests",
47
+
// capability: .command(
48
+
// intent: .custom(verb: "skip-test", description: "Add Kotlin Targets to the current Package.swift"),
49
+
// permissions: [
50
+
// .writeToPackageDirectory(reason: "Skip needs to create and update the Skip folder in the project."),
51
+
// ]),
52
+
// dependencies: ["skiptool"],
53
+
// path: "Plugins/RunGradleTests"),
54
54
55
55
.plugin(name:"Skip Custom Command",
56
56
capability:.command(
@@ -61,14 +61,14 @@ let package = Package(
61
61
dependencies:["skiptool"],
62
62
path:"Plugins/SkipCommand"),
63
63
64
-
.plugin(name:"Synchronize Gradle Project",
65
-
capability:.command(
66
-
intent:.custom(verb:"skip-sync", description:"Create local links to the transpiled gradle project(s)"),
67
-
permissions:[
68
-
.writeToPackageDirectory(reason:"Skip needs to create and update the Skip folder in the project."),
69
-
]),
70
-
dependencies:["skiptool"],
71
-
path:"Plugins/SynchronizeGradle"),
64
+
//.plugin(name: "Synchronize Gradle Project",
65
+
// capability: .command(
66
+
// intent: .custom(verb: "skip-sync", description: "Create local links to the transpiled gradle project(s)"),
67
+
// permissions: [
68
+
// .writeToPackageDirectory(reason: "Skip needs to create and update the Skip folder in the project."),
0 commit comments