Browse Source

notification bug fixed

v0.17
hehehaha 2 years ago
parent
commit
62a1dfbd3d
  1. BIN
      .DS_Store
  2. 8
      GME Remit.xcodeproj/project.pbxproj
  3. 15
      GME Remit/AppDelegate.swift
  4. 12
      GME Remit/GME RemitRelease.entitlements
  5. 7
      GME Remit/Modules/NotificationList/User Interface/View/NotificationListViewController.swift
  6. 36
      GME Remit/Supported Files/Info.plist

BIN
.DS_Store

8
GME Remit.xcodeproj/project.pbxproj

@ -792,6 +792,7 @@
281EF5FD28ACCC4D0092E5E6 /* HowToDepositViewInterface.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HowToDepositViewInterface.swift; sourceTree = "<group>"; };
281EF5FE28ACCC4D0092E5E6 /* HowToDeposit.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = HowToDeposit.storyboard; sourceTree = "<group>"; };
281EF5FF28ACCC4D0092E5E6 /* HowToDepositViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HowToDepositViewController.swift; sourceTree = "<group>"; };
2877368628CF53130094F850 /* GME RemitRelease.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = "GME RemitRelease.entitlements"; sourceTree = "<group>"; };
382D802DD74FA232C60815F2 /* Pods-GME Remit.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-GME Remit.release.xcconfig"; path = "Target Support Files/Pods-GME Remit/Pods-GME Remit.release.xcconfig"; sourceTree = "<group>"; };
3DC711495F701A2990ED1DD7 /* Pods-GMERemittanceTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-GMERemittanceTests.release.xcconfig"; path = "Target Support Files/Pods-GMERemittanceTests/Pods-GMERemittanceTests.release.xcconfig"; sourceTree = "<group>"; };
40218EE424D2B1940047FBF5 /* UserRegistrationModuleInterface.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UserRegistrationModuleInterface.swift; sourceTree = "<group>"; };
@ -5207,6 +5208,7 @@
9FD260F61FD00458007A511D /* GME Remit */ = {
isa = PBXGroup;
children = (
2877368628CF53130094F850 /* GME RemitRelease.entitlements */,
9FD260F71FD00458007A511D /* AppDelegate.swift */,
7E364CE824A44531007D6E02 /* Shared */,
D96848CA212D3F1200EF12B1 /* APIs */,
@ -8032,7 +8034,7 @@
CODE_SIGN_ENTITLEMENTS = "GME Remit.entitlements";
CODE_SIGN_IDENTITY = "iPhone Developer";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 14;
CURRENT_PROJECT_VERSION = 7;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = 68KRG7GPAV;
ENABLE_BITCODE = NO;
@ -8070,10 +8072,10 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = "GME Remit.entitlements";
CODE_SIGN_ENTITLEMENTS = "GME Remit/GME RemitRelease.entitlements";
CODE_SIGN_IDENTITY = "iPhone Developer";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 14;
CURRENT_PROJECT_VERSION = 7;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = 68KRG7GPAV;
ENABLE_BITCODE = NO;

15
GME Remit/AppDelegate.swift

@ -269,7 +269,8 @@ extension AppDelegate: UNUserNotificationCenterDelegate {
case .howToDeposit:
HowToDepositWireframe().open(on: baseVC)
case .redirect:
openURL(userInfo: userInfo as? [String: AnyObject])
break
// openURL(userInfo: userInfo as? [String: AnyObject])
}
}
}
@ -298,8 +299,7 @@ extension AppDelegate: UNUserNotificationCenterDelegate {
func openURL(userInfo: [String : AnyObject]?) {
guard
let aps = userInfo?["aps"] as? [String: AnyObject],
let destination = aps["category"] as? String else {
let url = userInfo?["url"] as? String else {
return
}
guard let webController = UIStoryboard(name: "Storyboard", bundle: nil)
@ -307,9 +307,14 @@ func openURL(userInfo: [String : AnyObject]?) {
else { return }
// webController.titleString = item.title ?? "Notification"
webController.url = destination
webController.url = url
let nav = UINavigationController.init(rootViewController: webController)
NotificationHistoryWireframe().open(on: nav)
let window = UIWindow()
let rootViewController = window.rootViewController as! UINavigationController
rootViewController.pushViewController(nav, animated: true)
// NotificationHistoryWireframe().open(on: nav)
}
extension AppDelegate {

12
GME Remit/GME RemitRelease.entitlements

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>aps-environment</key>
<string>development</string>
<key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:jmeremit.page.link</string>
</array>
</dict>
</plist>

7
GME Remit/Modules/NotificationList/User Interface/View/NotificationListViewController.swift

@ -11,6 +11,7 @@ import UIKit
class NotificationListViewController: UIViewController {
var tableData = [NotificationList]()
var selectedNotificationRow = Int()
// MARK: Properties
@ -57,7 +58,8 @@ extension NotificationListViewController: NotificationListViewInterface {
}
func notificationUpdated() {
presenter?.fetchNotification(isRefresh: false)
tableData[selectedNotificationRow].isRead = "1"
tableView.reloadData()
}
}
@ -71,7 +73,6 @@ extension NotificationListViewController: UITableViewDelegate, UITableViewDataSo
let item = tableData[indexPath.row]
cell.setupView()
cell.renderData(data: item)
print(item.isRead)
return cell
}
@ -82,6 +83,8 @@ extension NotificationListViewController: UITableViewDelegate, UITableViewDataSo
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
let item = tableData[indexPath.row]
selectedNotificationRow = indexPath.row
presenter?.updateNotification(rowId: item.rowID!)
if item.isClickable == "Y" {
guard let webController = UIStoryboard(name: "Storyboard", bundle: nil)

36
GME Remit/Supported Files/Info.plist

@ -23,6 +23,14 @@
<string>$(MARKETING_VERSION)</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>com.japan.jmeremit</string>
<key>CFBundleURLSchemes</key>
<array>
<string>com.japan.jmeremit</string>
</array>
</dict>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
@ -67,26 +75,26 @@
<true/>
</dict>
<key>NSCameraUsageDescription</key>
<string>Allow "JME Remittance" to use your camera to capture Identification documents, Deposit slips</string>
<string>Allow &quot;JME Remittance&quot; to use your camera to capture Identification documents, Deposit slips</string>
<key>NSContactsUsageDescription</key>
<string>Allow "JME Remittance" to use your contacts to get users contact</string>
<string>Allow &quot;JME Remittance&quot; to use your contacts to get users contact</string>
<key>NSFaceIDUsageDescription</key>
<string>Allow "JME Remittance" to use your biometrics to simplify and secure your app usage</string>
<string>Allow &quot;JME Remittance&quot; to use your biometrics to simplify and secure your app usage</string>
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>Allow "JME Remittance" to use your location?
Turning on location service allows us to show you nearby JME's branches.</string>
<string>Allow &quot;JME Remittance&quot; to use your location?
Turning on location service allows us to show you nearby JME&apos;s branches.</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>Allow "JME Remittance" to use your location?
Turning on location service allows us to show you nearby JME's branches.</string>
<string>Allow &quot;JME Remittance&quot; to use your location?
Turning on location service allows us to show you nearby JME&apos;s branches.</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>Allow "JME Remittance" to use your location?
Turning on location service allows us to show you nearby JME's branches.</string>
<string>Allow &quot;JME Remittance&quot; to use your location?
Turning on location service allows us to show you nearby JME&apos;s branches.</string>
<key>NSMicrophoneUsageDescription</key>
<string>Allow "JME Remittance" to use your microphone for access to your recorded voice </string>
<string>Allow &quot;JME Remittance&quot; to use your microphone for access to your recorded voice </string>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>Allow "JME Remittance" to use your gallery to use images of documents and depositslips</string>
<string>Allow &quot;JME Remittance&quot; to use your gallery to use images of documents and depositslips</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>Allow "JME Remittance" to use your gallery to use images of documents and depositslips</string>
<string>Allow &quot;JME Remittance&quot; to use your gallery to use images of documents and depositslips</string>
<key>UIAppFonts</key>
<array>
<string>SanFranciscoDisplay-Heavy.otf</string>
@ -121,5 +129,9 @@ Turning on location service allows us to show you nearby JME's branches.</string
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<true/>
<key>FirebaseDeepLinkPasteboardRetrievalEnabled</key>
<false/>
<key>NSHumanReadableCopyright</key>
<string></string>
</dict>
</plist>
Loading…
Cancel
Save