Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zshahin-61 committed Nov 21, 2023
1 parent c80caf6 commit fbb18ec
Show file tree
Hide file tree
Showing 13 changed files with 440 additions and 9 deletions.
Binary file modified .DS_Store
Binary file not shown.
79 changes: 79 additions & 0 deletions AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
////
//// AppDelegate.swift
//// UpgradeUpsell
////
//// Created by zahra SHAHIN on 2023-11-20.
////
//import UIKit
//import Firebase
//import FirebaseMessaging
//import UserNotifications
//
//@UIApplicationMain
//class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterDelegate, MessagingDelegate {
//
// var window: UIWindow?
//
// func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// // Configure Firebase
// FirebaseApp.configure()
//
// // Set up Firebase Cloud Messaging
// Messaging.messaging().delegate = self
//
// // Register for remote notifications
// if #available(iOS 10.0, *) {
// let authOptions: UNAuthorizationOptions = [.alert, .badge, .sound]
// UNUserNotificationCenter.current().requestAuthorization(
// options: authOptions,
// completionHandler: { _, _ in }
// )
// } else {
// let settings: UIUserNotificationSettings =
// UIUserNotificationSettings(types: [.alert, .badge, .sound], categories: nil)
// application.registerUserNotificationSettings(settings)
// }
// application.registerForRemoteNotifications()
//
// // Override point for customization after application launch.
// return true
// }
//
// func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
// // This method will be called when the app successfully registers for remote notifications
// // You can send this token to your server if needed
// Messaging.messaging().apnsToken = deviceToken
// }
//
// func application(_ application: UIApplication, didFailToRegisterForRemoteNotificationsWithError error: Error) {
// // This method will be called if the app fails to register for remote notifications
// print("Failed to register for remote notifications with error: \(error.localizedDescription)")
// }
//
// // MARK: - Firebase Cloud Messaging Delegates
//
// func messaging(_ messaging: Messaging, didReceiveRegistrationToken fcmToken: String?) {
// // This method will be called when the app successfully receives an FCM registration token
// // You can send this token to your server if needed
// print("FCM registration token: \(fcmToken ?? "")")
// }
//
// func messaging(_ messaging: Messaging, didReceive remoteMessage: MessagingRemoteMessage) {
// // This method will be called when a remote FCM message is received
// print("Received data message: \(remoteMessage.appData)")
// }
//
// // MARK: - UNUserNotificationCenterDelegate
//
// // If you want to handle notification interactions, implement the methods of UNUserNotificationCenterDelegate
//
// func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) {
// // Handle foreground notifications here
// completionHandler([.alert, .badge, .sound])
// }
//
// func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void) {
// // Handle notification tap actions here
// completionHandler()
// }
//}
13 changes: 7 additions & 6 deletions ExportOptions.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@
<string>development</string>
<key>teamID</key>
<string>Priteshkumar Patel</string>
<key>distribution</key>
<string>export</string>
<key>signingStyle</key>
<string>automatic</string>
<key>com.moxdroid.UpgradeUpsell</key>
<string>XCode Managed Profile</string>
<string>manual</string>
<key>signingCertificate</key>
<string>iOS Distribution: POSSIBLE Mobile</string>
<key>provisioningProfiles</key>
<dict/>
<dict>
<key>com.moxdroid.UpgradeUpsell</key>
<string>628de97a-7d1e-43e8-909e-e3ef3e782021</string>
</dict>
</dict>
</plist>
11 changes: 11 additions & 0 deletions Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Uncomment the next line to define a global platform for your project
platform :ios, '14.0'

target 'UpgradeUpsell' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!

# Pods for UpgradeUpsell
pod 'Firebase/Messaging','12.0.0'

end
83 changes: 83 additions & 0 deletions Podfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
PODS:
- Firebase/CoreOnly (10.18.0):
- FirebaseCore (= 10.18.0)
- Firebase/Messaging (10.18.0):
- Firebase/CoreOnly
- FirebaseMessaging (~> 10.18.0)
- FirebaseCore (10.18.0):
- FirebaseCoreInternal (~> 10.0)
- GoogleUtilities/Environment (~> 7.12)
- GoogleUtilities/Logger (~> 7.12)
- FirebaseCoreInternal (10.18.0):
- "GoogleUtilities/NSData+zlib (~> 7.8)"
- FirebaseInstallations (10.18.0):
- FirebaseCore (~> 10.0)
- GoogleUtilities/Environment (~> 7.8)
- GoogleUtilities/UserDefaults (~> 7.8)
- PromisesObjC (~> 2.1)
- FirebaseMessaging (10.18.0):
- FirebaseCore (~> 10.0)
- FirebaseInstallations (~> 10.0)
- GoogleDataTransport (~> 9.2)
- GoogleUtilities/AppDelegateSwizzler (~> 7.8)
- GoogleUtilities/Environment (~> 7.8)
- GoogleUtilities/Reachability (~> 7.8)
- GoogleUtilities/UserDefaults (~> 7.8)
- nanopb (< 2.30910.0, >= 2.30908.0)
- GoogleDataTransport (9.2.5):
- GoogleUtilities/Environment (~> 7.7)
- nanopb (< 2.30910.0, >= 2.30908.0)
- PromisesObjC (< 3.0, >= 1.2)
- GoogleUtilities/AppDelegateSwizzler (7.12.0):
- GoogleUtilities/Environment
- GoogleUtilities/Logger
- GoogleUtilities/Network
- GoogleUtilities/Environment (7.12.0):
- PromisesObjC (< 3.0, >= 1.2)
- GoogleUtilities/Logger (7.12.0):
- GoogleUtilities/Environment
- GoogleUtilities/Network (7.12.0):
- GoogleUtilities/Logger
- "GoogleUtilities/NSData+zlib"
- GoogleUtilities/Reachability
- "GoogleUtilities/NSData+zlib (7.12.0)"
- GoogleUtilities/Reachability (7.12.0):
- GoogleUtilities/Logger
- GoogleUtilities/UserDefaults (7.12.0):
- GoogleUtilities/Logger
- nanopb (2.30909.1):
- nanopb/decode (= 2.30909.1)
- nanopb/encode (= 2.30909.1)
- nanopb/decode (2.30909.1)
- nanopb/encode (2.30909.1)
- PromisesObjC (2.3.1)

DEPENDENCIES:
- Firebase/Messaging

SPEC REPOS:
trunk:
- Firebase
- FirebaseCore
- FirebaseCoreInternal
- FirebaseInstallations
- FirebaseMessaging
- GoogleDataTransport
- GoogleUtilities
- nanopb
- PromisesObjC

SPEC CHECKSUMS:
Firebase: 414ad272f8d02dfbf12662a9d43f4bba9bec2a06
FirebaseCore: 2322423314d92f946219c8791674d2f3345b598f
FirebaseCoreInternal: 8eb002e564b533bdcf1ba011f33f2b5c10e2ed4a
FirebaseInstallations: e842042ec6ac1fd2e37d7706363ebe7f662afea4
FirebaseMessaging: 9bc34a98d2e0237e1b121915120d4d48ddcf301e
GoogleDataTransport: 54dee9d48d14580407f8f5fbf2f496e92437a2f2
GoogleUtilities: 0759d1a57ebb953965c2dfe0ba4c82e95ccc2e34
nanopb: d4d75c12cd1316f4a64e3c6963f879ecd4b5e0d5
PromisesObjC: c50d2056b5253dadbd6c2bea79b0674bd5a52fa4

PODFILE CHECKSUM: bed26b7bf65335d329826dbe3c48f7d84f23390b

COCOAPODS: 1.14.3
19 changes: 16 additions & 3 deletions UpgradeUpsell.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
5AAC1E852B05DD2C003C9C64 /* FirebaseAnalyticsSwift in Frameworks */ = {isa = PBXBuildFile; productRef = 5AAC1E842B05DD2C003C9C64 /* FirebaseAnalyticsSwift */; };
5AAC1E872B05DD2C003C9C64 /* FirebaseAnalyticsWithoutAdIdSupport in Frameworks */ = {isa = PBXBuildFile; productRef = 5AAC1E862B05DD2C003C9C64 /* FirebaseAnalyticsWithoutAdIdSupport */; };
5AAC1E892B05DD2C003C9C64 /* FirebaseAppCheck in Frameworks */ = {isa = PBXBuildFile; productRef = 5AAC1E882B05DD2C003C9C64 /* FirebaseAppCheck */; };
5AAC1E8B2B0BC26A003C9C64 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5AAC1E8A2B0BC26A003C9C64 /* AppDelegate.swift */; };
5F1BA5142AE3F6E000BCE947 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 5F1BA5132AE3F6E000BCE947 /* GoogleService-Info.plist */; };
5F9465F52ABB33E50006FBB5 /* UpgradeUpsellApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5F9465F42ABB33E50006FBB5 /* UpgradeUpsellApp.swift */; };
5F9465F72ABB33E50006FBB5 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5F9465F62ABB33E50006FBB5 /* ContentView.swift */; };
Expand Down Expand Up @@ -94,6 +95,7 @@
5A8DAB472ADE066F00CDCBCB /* NotificationView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NotificationView.swift; sourceTree = "<group>"; };
5A8DAB492ADE29A900CDCBCB /* NotificationDetailView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NotificationDetailView.swift; sourceTree = "<group>"; };
5AAC1E7E2B059BFD003C9C64 /* ExportOptions.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = ExportOptions.plist; sourceTree = "<group>"; };
5AAC1E8A2B0BC26A003C9C64 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
5F1BA5132AE3F6E000BCE947 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = "GoogleService-Info.plist"; path = "UpgradeUpsell/GoogleService-Info.plist"; sourceTree = "<group>"; };
5F9465F12ABB33E50006FBB5 /* UpgradeUpsell.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = UpgradeUpsell.app; sourceTree = BUILT_PRODUCTS_DIR; };
5F9465F42ABB33E50006FBB5 /* UpgradeUpsellApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UpgradeUpsellApp.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -158,6 +160,13 @@
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
3C5039BACEC8B1A406BA2F46 /* Pods */ = {
isa = PBXGroup;
children = (
);
path = Pods;
sourceTree = "<group>";
};
5A47D94B2AF16C190064AF0E /* Admin */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -229,10 +238,12 @@
5F9465E82ABB33E50006FBB5 = {
isa = PBXGroup;
children = (
5AAC1E8A2B0BC26A003C9C64 /* AppDelegate.swift */,
5AAC1E7E2B059BFD003C9C64 /* ExportOptions.plist */,
5F1BA5132AE3F6E000BCE947 /* GoogleService-Info.plist */,
5F9465F32ABB33E50006FBB5 /* UpgradeUpsell */,
5F9465F22ABB33E50006FBB5 /* Products */,
3C5039BACEC8B1A406BA2F46 /* Pods */,
);
sourceTree = "<group>";
};
Expand Down Expand Up @@ -379,7 +390,7 @@
mainGroup = 5F9465E82ABB33E50006FBB5;
packageReferences = (
5F9466072ABB43830006FBB5 /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */,
5FFE00E12AF1B314002F9B64 /* XCRemoteSwiftPackageReference "SDWebImageSwiftUI" */,
5FFE00E12AF1B314002F9B64 /* XCRemoteSwiftPackageReference "SDWebImageSwiftUI.git" */,
);
productRefGroup = 5F9465F22ABB33E50006FBB5 /* Products */;
projectDirPath = "";
Expand Down Expand Up @@ -461,6 +472,7 @@
5A47D94F2AF1A6610064AF0E /* ReportView.swift in Sources */,
5A8DAB312ABCB3A200CDCBCB /* ProjectViewEdit.swift in Sources */,
5A8DAB482ADE066F00CDCBCB /* NotificationView.swift in Sources */,
5AAC1E8B2B0BC26A003C9C64 /* AppDelegate.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -579,6 +591,7 @@
IPHONEOS_DEPLOYMENT_TARGET = 16.1;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
Expand Down Expand Up @@ -692,7 +705,7 @@
minimumVersion = 10.0.0;
};
};
5FFE00E12AF1B314002F9B64 /* XCRemoteSwiftPackageReference "SDWebImageSwiftUI" */ = {
5FFE00E12AF1B314002F9B64 /* XCRemoteSwiftPackageReference "SDWebImageSwiftUI.git" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/SDWebImage/SDWebImageSwiftUI.git";
requirement = {
Expand Down Expand Up @@ -755,7 +768,7 @@
};
5FFE00E22AF1B314002F9B64 /* SDWebImageSwiftUI */ = {
isa = XCSwiftPackageProductDependency;
package = 5FFE00E12AF1B314002F9B64 /* XCRemoteSwiftPackageReference "SDWebImageSwiftUI" */;
package = 5FFE00E12AF1B314002F9B64 /* XCRemoteSwiftPackageReference "SDWebImageSwiftUI.git" */;
productName = SDWebImageSwiftUI;
};
/* End XCSwiftPackageProductDependency section */
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?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>BuildLocationStyle</key>
<string>UseAppPreferences</string>
<key>CustomBuildLocationType</key>
<string>RelativeToDerivedData</string>
<key>DerivedDataLocationStyle</key>
<string>Default</string>
<key>ShowSharedSchemesAutomaticallyEnabled</key>
<true/>
</dict>
</plist>
10 changes: 10 additions & 0 deletions UpgradeUpsell.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?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>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
Loading

0 comments on commit fbb18ec

Please sign in to comment.