-
Notifications
You must be signed in to change notification settings - Fork 17
[Experimental]alternative for using external dependencies implementation #49
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
[Experimental]alternative for using external dependencies implementation #49
Conversation
For VersionRange, it's not possible to have a specific one We need to try/cacth every swift step and print on the ouput the error, it's important for the user All test are passing except local package The local package need to be done
we can now use local path, some manual update has been done all tests are passing
add new test for building and liking Firebase using triple for specify the build target
you can set multiple product from a dependency like Firebase
plugin/src/main/kotlin/io/github/ttypic/swiftklib/gradle/task/CompileSwiftTask.kt
Show resolved
Hide resolved
plugin/src/main/kotlin/io/github/ttypic/swiftklib/gradle/templates/CreatePackageSwift.kt
Outdated
Show resolved
Hide resolved
update comment in interface
We can now set the toolsVersion from the plugin By default, the command line uses the latest swift version available. By at some cases, it can't work and a specific version need to be set.
|
I added the capability to set the toolsversion. |
It needs to be set at Warning Level or it will be considered as a Error.
set a non null default value for toolsVersion in CompileTask
rollback unwanted commit change
moving all command for updating the manifest to CreatePackageSwift
|
@IlyaGulya Some feedback? |
|
@frankois944 sorry, quite busy this week. I hope to take a look this weekend |
|
Anything on this? 👀 |
Still waiting 😶🌫️ |
IlyaGulya
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@frankois944
Thanks for the PR!
Sorry for the late response.
Overall, love to see more tests, but I have some concerns about API changes and cli usage approach, so I've left some comments.
Waiting for your response.
| val _minIos = notNull<String>() | ||
| val _minMacos = notNull<String>() | ||
| val _minTvos = notNull<String>() | ||
| val _minWatchos = notNull<String>() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a breaking change in plugin API.
Is it really necessary to store versions as strings?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I change from a Int to a String; it has too much limitation.
For example, we can't use this kind of version macos = "10.15.1", this is possible to set in the Package manifest.
I don't think it's a big deal, as it's just a type of the input to change.
plugin/src/main/kotlin/io/github/ttypic/swiftklib/gradle/SwiftPackageDependency.kt
Outdated
Show resolved
Hide resolved
plugin/src/main/kotlin/io/github/ttypic/swiftklib/gradle/templates/CreatePackageSwift.kt
Outdated
Show resolved
Hide resolved
replace indexOfFirst with contains
move from the CLI to String template toolsVersion is by default in version 5.6 and not the current compiler version The current template has been tested ion 5.6 and could not work in the later/earlier version if specified by the user.
|
@IlyaGulya I move to the template |
|
@frankois944 do you know if swift tools follow semantic versioning? |
The Manifest API depends on the swift version declared in the first line. |
e21cd68
into
ttypic:feature/external-dependencies-single-module-experimental
|
@frankois944 merged |
Thanks for good work with library! Any idea when you will have some time to release some snapshot build? |
Based on #47
See the new tests for new features
To be done : change the way the version of a spm is set, the command line has limited possibility.