-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into raseln/implement_contributors_count_ui
# Conflicts: # app-ios/Sources/ContributorFeature/KmpPresenterContributorView.swift
- Loading branch information
Showing
66 changed files
with
579 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<style name="Theme.KaigiApp.Licenses" parent="Theme.AppCompat.DayNight.DarkActionBar"> | ||
<item name="android:windowOptOutEdgeToEdgeEnforcement">true</item> | ||
</style> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 12 additions & 10 deletions
22
.../KmpAppComposeViewControllerWrapper.swift → .../KmpAppComposeViewControllerWrapper.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 12 additions & 9 deletions
21
...ileCardComposeViewControllerWrapper.swift → ...ileCardComposeViewControllerWrapper.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,28 @@ | ||
import SwiftUI | ||
import shared | ||
import ComposableArchitecture | ||
|
||
public struct KmpProfileCardComposeViewControllerWrapper: UIViewControllerRepresentable { | ||
public init() {} | ||
|
||
public func makeUIViewController(context: Context) -> UIViewController { | ||
struct KmpProfileCardComposeViewControllerWrapper: UIViewControllerRepresentable { | ||
@Dependency(\.containerClient) var containerClient | ||
|
||
init() {} | ||
|
||
func makeUIViewController(context: Context) -> UIViewController { | ||
profileCardViewController( | ||
repositories: Container.shared.get(type: (any Repositories).self), | ||
repositories: containerClient.repositories(), | ||
onClickShareProfileCard: { image, text in | ||
let activityViewController = UIActivityViewController(activityItems: [text, image], applicationActivities: nil) | ||
if let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene, | ||
let keyWindow = windowScene.windows.first(where: { $0.isKeyWindow }), | ||
let rootViewController = keyWindow.rootViewController { | ||
let keyWindow = windowScene.windows.first(where: { $0.isKeyWindow }), | ||
let rootViewController = keyWindow.rootViewController { | ||
rootViewController.present(activityViewController, animated: true, completion: nil) | ||
} else { | ||
print("Unable to find the root view controller.") | ||
} | ||
} | ||
) | ||
} | ||
public func updateUIViewController(_ uiViewController: UIViewController, context: Context) { | ||
|
||
func updateUIViewController(_ uiViewController: UIViewController, context: Context) { | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
app-ios/Sources/ContributorFeature/KmpContributorComposeViewControllerWrapper.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import SwiftUI | ||
import shared | ||
import ComposableArchitecture | ||
|
||
struct KmpContributorComposeViewControllerWrapper: UIViewControllerRepresentable { | ||
public typealias URLString = String | ||
|
||
let repositories: any Repositories | ||
private let onContributorsItemClick: (URLString) -> Void | ||
|
||
init(onContributorsItemClick: @escaping (URLString) -> Void) { | ||
@Dependency(\.containerClient) var containerClient | ||
|
||
self.repositories = containerClient.repositories() | ||
self.onContributorsItemClick = onContributorsItemClick | ||
} | ||
|
||
func makeUIViewController(context: Context) -> UIViewController { | ||
return contributorsViewController( | ||
repositories: repositories, | ||
onContributorsItemClick: onContributorsItemClick | ||
) | ||
} | ||
|
||
func updateUIViewController(_ uiViewController: UIViewController, context: Context) { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.