Skip to content

Implement Session Network Page #454

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

Open
wants to merge 13 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Scripts/LintLocalizableStrings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ extension ProjectState {
.prefix("@available(", caseSensitive: false),
.prefix("print(", caseSensitive: false),
.prefix("Log.Category =", caseSensitive: false),
.previousLine(
numEarlier: 1,
.suffix("-> Log.Category {", caseSensitive: false)
),
.contains("fatalError(", caseSensitive: false),
.contains("precondition(", caseSensitive: false),
.contains("preconditionFailure(", caseSensitive: false),
Expand Down
210 changes: 147 additions & 63 deletions Session.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions Session/Home/HomeVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,8 @@ public final class HomeVC: BaseVC, LibSessionRespondingViewController, UITableVi
public override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)

viewModel.dependencies[singleton: .notificationsManager].scheduleSessionNetworkPageLocalNotifcation(force: false)

self.viewHasAppeared = true
self.autoLoadNextPageIfNeeded()
}
Expand Down
1 change: 0 additions & 1 deletion Session/Home/New Conversation/NewMessageScreen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ struct NewMessageScreen: View {
struct EnterAccountIdScreen: View {
@Binding var accountIdOrONS: String
@Binding var error: String?
@State var isTextFieldInErrorMode: Bool = false
var continueAction: () -> ()

var body: some View {
Expand Down
2 changes: 2 additions & 0 deletions Session/Meta/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD

self?.startPollersIfNeeded()

SessionNetworkAPI.client.initialize(using: dependencies)

if dependencies[singleton: .appContext].isMainApp {
DispatchQueue.main.async {
self?.handleAppActivatedWithOngoingCallIfNeeded()
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "Vector.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.
6 changes: 6 additions & 0 deletions Session/Meta/Images.xcassets/Swarm/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "session_node_lines_1.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "session_node_lines_10.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "session_node_lines_2.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "session_node_lines_3.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "session_node_lines_4.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading