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

Refactor for project clone #29

Open
burnhamd opened this issue Dec 23, 2020 · 5 comments
Open

Refactor for project clone #29

burnhamd opened this issue Dec 23, 2020 · 5 comments

Comments

@burnhamd
Copy link

This is one of the best examples of getting started with a KMM project and the only example Ive seen that uses SwiftUI and jetpack compose.

It would be great if there was a refactor guide on how to migrate to a new project/package names

@miduch
Copy link

miduch commented Feb 6, 2021

any plans to update project to use SwiftUI 2 (from swiftUI app using SceneDelegate to the new @main App protocol)?

@joreilly
Copy link
Owner

joreilly commented Feb 6, 2021

Yeah, definitely something I'd hoped to do. Also open to PRs :)

@joreilly
Copy link
Owner

joreilly commented Feb 6, 2021

@burnhamd sorry, meant to respond to this before. So, I did update settings for this (and other repos) the other day to be a "Template repository" but still needs more updates to allow as you migration to different project/package name.

@RdeWilde
Copy link
Contributor

I'm also looking for a smooth way to do this.
Basically I'd like to start of multiple projects from the same base, and merge new update back into it.
Now sure what structure would be best. I was thinking to keep platform-specific boilerplate code, and base the project-specific implementation in a subproject of it? That way I hope I can use keep the base projects up to date, and not having to do it on a per-project base.

But I'm only just getting started, thus very interested in other perspectives

@RdeWilde
Copy link
Contributor

RdeWilde commented Jul 29, 2021

@burnhamd sorry, meant to respond to this before. So, I did update settings for this (and other repos) the other day to be a "Template repository" but still needs more updates to allow as you migration to different project/package name.

While using it as a template is a great idea, i experienced at least one caveat, which is that you can merge from and to another.

$ git pull joreilly main
From github.com:joreilly/PeopleInSpace
 * branch            main       -> FETCH_HEAD
fatal: refusing to merge unrelated histories

It seems to create a whole new repo.

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

No branches or pull requests

4 participants