diff --git a/ios/App/App.xcodeproj/project.pbxproj b/ios/App/App.xcodeproj/project.pbxproj index d7c1bdcec..3736c8e3e 100644 --- a/ios/App/App.xcodeproj/project.pbxproj +++ b/ios/App/App.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 52; + objectVersion = 54; objects = { /* Begin PBXBuildFile section */ @@ -15,30 +15,30 @@ 504EC3121FED79650016851F /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 504EC3101FED79650016851F /* LaunchScreen.storyboard */; }; 50B271D11FEDC1A000F3C39B /* public in Resources */ = {isa = PBXBuildFile; fileRef = 50B271D01FEDC1A000F3C39B /* public */; }; A084ECDBA7D38E1E42DFC39D /* Pods_App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AF277DCFFFF123FFC6DF26C7 /* Pods_App.framework */; }; - DAD1AB3F2ACF3A7F001D9958 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = DAD1AB3D2ACF39DE001D9958 /* GoogleService-Info.plist */; }; - DAD98CE32B73A46D002F1EA9 /* ShareViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DAD98CE22B73A46D002F1EA9 /* ShareViewController.swift */; }; - DAD98CE62B73A46D002F1EA9 /* MainInterface.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = DAD98CE42B73A46D002F1EA9 /* MainInterface.storyboard */; }; - DAD98CEA2B73A46D002F1EA9 /* MyShareExtension.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = DAD98CE02B73A46D002F1EA9 /* MyShareExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; + A9D8C5112B87AF2B00C95FBB /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = A9D8C5102B87AF2B00C95FBB /* GoogleService-Info.plist */; }; + A9D8C5192B87B08300C95FBB /* ShareViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9D8C5182B87B08300C95FBB /* ShareViewController.swift */; }; + A9D8C51C2B87B08300C95FBB /* MainInterface.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A9D8C51A2B87B08300C95FBB /* MainInterface.storyboard */; }; + A9D8C5202B87B08300C95FBB /* Share.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = A9D8C5162B87B08300C95FBB /* Share.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ - DAD98CE82B73A46D002F1EA9 /* PBXContainerItemProxy */ = { + A9D8C51E2B87B08300C95FBB /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 504EC2FC1FED79650016851F /* Project object */; proxyType = 1; - remoteGlobalIDString = DAD98CDF2B73A46D002F1EA9; - remoteInfo = MyShareExtension; + remoteGlobalIDString = A9D8C5152B87B08300C95FBB; + remoteInfo = Share; }; /* End PBXContainerItemProxy section */ /* Begin PBXCopyFilesBuildPhase section */ - DAD98CEB2B73A46D002F1EA9 /* Embed Foundation Extensions */ = { + A9D8C5242B87B08300C95FBB /* Embed Foundation Extensions */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = ""; dstSubfolderSpec = 13; files = ( - DAD98CEA2B73A46D002F1EA9 /* MyShareExtension.appex in Embed Foundation Extensions */, + A9D8C5202B87B08300C95FBB /* Share.appex in Embed Foundation Extensions */, ); name = "Embed Foundation Extensions"; runOnlyForDeploymentPostprocessing = 0; @@ -55,20 +55,15 @@ 504EC3111FED79650016851F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 504EC3131FED79650016851F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 50B271D01FEDC1A000F3C39B /* public */ = {isa = PBXFileReference; lastKnownFileType = folder; path = public; sourceTree = ""; }; + A9D8C5102B87AF2B00C95FBB /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = "GoogleService-Info.plist"; path = "../../../../Downloads/GoogleService-Info.plist"; sourceTree = ""; }; + A9D8C5162B87B08300C95FBB /* Share.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = Share.appex; sourceTree = BUILT_PRODUCTS_DIR; }; + A9D8C5182B87B08300C95FBB /* ShareViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShareViewController.swift; sourceTree = ""; }; + A9D8C51B2B87B08300C95FBB /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/MainInterface.storyboard; sourceTree = ""; }; + A9D8C51D2B87B08300C95FBB /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + A9D8C5252B888E8300C95FBB /* App.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = App.entitlements; sourceTree = ""; }; + A9D8C5262B888EAB00C95FBB /* Share.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Share.entitlements; sourceTree = ""; }; AF277DCFFFF123FFC6DF26C7 /* Pods_App.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_App.framework; sourceTree = BUILT_PRODUCTS_DIR; }; AF51FD2D460BCFE21FA515B2 /* Pods-App.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-App.release.xcconfig"; path = "Pods/Target Support Files/Pods-App/Pods-App.release.xcconfig"; sourceTree = ""; }; - DA6FE4D02ACEEACD006F1E0D /* CapacitorPushNotifications.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = CapacitorPushNotifications.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - DA6FE4D52ACEF2DA006F1E0D /* FirebaseCore.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = FirebaseCore.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - DA6FE4D62ACEF2DA006F1E0D /* FirebaseCoreInternal.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = FirebaseCoreInternal.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - DA6FE4D72ACEF2DA006F1E0D /* FirebaseInstallations.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = FirebaseInstallations.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - DA6FE4D82ACEF2DA006F1E0D /* FirebaseMessaging.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = FirebaseMessaging.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - DA8422AF2AD03FBE00AC9118 /* App.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = App.entitlements; sourceTree = ""; }; - DAD1AB3D2ACF39DE001D9958 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = "GoogleService-Info.plist"; path = "../../../../../Downloads/App 2023-09-14 12-28-07/GoogleService-Info.plist"; sourceTree = ""; }; - DAD98CE02B73A46D002F1EA9 /* MyShareExtension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = MyShareExtension.appex; sourceTree = BUILT_PRODUCTS_DIR; }; - DAD98CE22B73A46D002F1EA9 /* ShareViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShareViewController.swift; sourceTree = ""; }; - DAD98CE52B73A46D002F1EA9 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/MainInterface.storyboard; sourceTree = ""; }; - DAD98CE72B73A46D002F1EA9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - DAD98CEF2B73A5CB002F1EA9 /* MyShareExtension.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = MyShareExtension.entitlements; sourceTree = ""; }; FC68EB0AF532CFC21C3344DD /* Pods-App.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-App.debug.xcconfig"; path = "Pods/Target Support Files/Pods-App/Pods-App.debug.xcconfig"; sourceTree = ""; }; /* End PBXFileReference section */ @@ -81,7 +76,7 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - DAD98CDD2B73A46D002F1EA9 /* Frameworks */ = { + A9D8C5132B87B08300C95FBB /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( @@ -94,11 +89,6 @@ 27E2DDA53C4D2A4D1A88CE4A /* Frameworks */ = { isa = PBXGroup; children = ( - DA6FE4D52ACEF2DA006F1E0D /* FirebaseCore.framework */, - DA6FE4D62ACEF2DA006F1E0D /* FirebaseCoreInternal.framework */, - DA6FE4D72ACEF2DA006F1E0D /* FirebaseInstallations.framework */, - DA6FE4D82ACEF2DA006F1E0D /* FirebaseMessaging.framework */, - DA6FE4D02ACEEACD006F1E0D /* CapacitorPushNotifications.framework */, AF277DCFFFF123FFC6DF26C7 /* Pods_App.framework */, ); name = Frameworks; @@ -108,7 +98,7 @@ isa = PBXGroup; children = ( 504EC3061FED79650016851F /* App */, - DAD98CE12B73A46D002F1EA9 /* MyShareExtension */, + A9D8C5172B87B08300C95FBB /* Share */, 504EC3051FED79650016851F /* Products */, 7F8756D8B27F46E3366F6CEA /* Pods */, 27E2DDA53C4D2A4D1A88CE4A /* Frameworks */, @@ -119,7 +109,7 @@ isa = PBXGroup; children = ( 504EC3041FED79650016851F /* App.app */, - DAD98CE02B73A46D002F1EA9 /* MyShareExtension.appex */, + A9D8C5162B87B08300C95FBB /* Share.appex */, ); name = Products; sourceTree = ""; @@ -127,10 +117,10 @@ 504EC3061FED79650016851F /* App */ = { isa = PBXGroup; children = ( - DA8422AF2AD03FBE00AC9118 /* App.entitlements */, + A9D8C5252B888E8300C95FBB /* App.entitlements */, + A9D8C5102B87AF2B00C95FBB /* GoogleService-Info.plist */, 50379B222058CBB4000EE86E /* capacitor.config.json */, 504EC3071FED79650016851F /* AppDelegate.swift */, - DAD1AB3D2ACF39DE001D9958 /* GoogleService-Info.plist */, 504EC30B1FED79650016851F /* Main.storyboard */, 504EC30E1FED79650016851F /* Assets.xcassets */, 504EC3101FED79650016851F /* LaunchScreen.storyboard */, @@ -150,15 +140,15 @@ name = Pods; sourceTree = ""; }; - DAD98CE12B73A46D002F1EA9 /* MyShareExtension */ = { + A9D8C5172B87B08300C95FBB /* Share */ = { isa = PBXGroup; children = ( - DAD98CEF2B73A5CB002F1EA9 /* MyShareExtension.entitlements */, - DAD98CE22B73A46D002F1EA9 /* ShareViewController.swift */, - DAD98CE42B73A46D002F1EA9 /* MainInterface.storyboard */, - DAD98CE72B73A46D002F1EA9 /* Info.plist */, + A9D8C5262B888EAB00C95FBB /* Share.entitlements */, + A9D8C5182B87B08300C95FBB /* ShareViewController.swift */, + A9D8C51A2B87B08300C95FBB /* MainInterface.storyboard */, + A9D8C51D2B87B08300C95FBB /* Info.plist */, ); - path = MyShareExtension; + path = Share; sourceTree = ""; }; /* End PBXGroup section */ @@ -173,34 +163,34 @@ 504EC3011FED79650016851F /* Frameworks */, 504EC3021FED79650016851F /* Resources */, 9592DBEFFC6D2A0C8D5DEB22 /* [CP] Embed Pods Frameworks */, - 5B7AACB22ECDCEAA343DC840 /* [CP] Copy Pods Resources */, - DAD98CEB2B73A46D002F1EA9 /* Embed Foundation Extensions */, + AA1461F6B6F9477889FFC1DD /* [CP] Copy Pods Resources */, + A9D8C5242B87B08300C95FBB /* Embed Foundation Extensions */, ); buildRules = ( ); dependencies = ( - DAD98CE92B73A46D002F1EA9 /* PBXTargetDependency */, + A9D8C51F2B87B08300C95FBB /* PBXTargetDependency */, ); name = App; productName = App; productReference = 504EC3041FED79650016851F /* App.app */; productType = "com.apple.product-type.application"; }; - DAD98CDF2B73A46D002F1EA9 /* MyShareExtension */ = { + A9D8C5152B87B08300C95FBB /* Share */ = { isa = PBXNativeTarget; - buildConfigurationList = DAD98CEE2B73A46D002F1EA9 /* Build configuration list for PBXNativeTarget "MyShareExtension" */; + buildConfigurationList = A9D8C5212B87B08300C95FBB /* Build configuration list for PBXNativeTarget "Share" */; buildPhases = ( - DAD98CDC2B73A46D002F1EA9 /* Sources */, - DAD98CDD2B73A46D002F1EA9 /* Frameworks */, - DAD98CDE2B73A46D002F1EA9 /* Resources */, + A9D8C5122B87B08300C95FBB /* Sources */, + A9D8C5132B87B08300C95FBB /* Frameworks */, + A9D8C5142B87B08300C95FBB /* Resources */, ); buildRules = ( ); dependencies = ( ); - name = MyShareExtension; - productName = MyShareExtension; - productReference = DAD98CE02B73A46D002F1EA9 /* MyShareExtension.appex */; + name = Share; + productName = Share; + productReference = A9D8C5162B87B08300C95FBB /* Share.appex */; productType = "com.apple.product-type.app-extension"; }; /* End PBXNativeTarget section */ @@ -209,16 +199,17 @@ 504EC2FC1FED79650016851F /* Project object */ = { isa = PBXProject; attributes = { - LastSwiftUpdateCheck = 1420; - LastUpgradeCheck = 1420; + BuildIndependentTargetsInParallel = YES; + LastSwiftUpdateCheck = 1520; + LastUpgradeCheck = 1520; TargetAttributes = { 504EC3031FED79650016851F = { CreatedOnToolsVersion = 9.2; LastSwiftMigration = 1100; - ProvisioningStyle = Manual; + ProvisioningStyle = Automatic; }; - DAD98CDF2B73A46D002F1EA9 = { - CreatedOnToolsVersion = 14.2; + A9D8C5152B87B08300C95FBB = { + CreatedOnToolsVersion = 15.2; }; }; }; @@ -231,15 +222,12 @@ Base, ); mainGroup = 504EC2FB1FED79650016851F; - packageReferences = ( - DA6FE4D42ACEEC01006F1E0D /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */, - ); productRefGroup = 504EC3051FED79650016851F /* Products */; projectDirPath = ""; projectRoot = ""; targets = ( 504EC3031FED79650016851F /* App */, - DAD98CDF2B73A46D002F1EA9 /* MyShareExtension */, + A9D8C5152B87B08300C95FBB /* Share */, ); }; /* End PBXProject section */ @@ -255,39 +243,24 @@ 50379B232058CBB4000EE86E /* capacitor.config.json in Resources */, 504EC30D1FED79650016851F /* Main.storyboard in Resources */, 2FAD9763203C412B000D30F8 /* config.xml in Resources */, - DAD1AB3F2ACF3A7F001D9958 /* GoogleService-Info.plist in Resources */, + A9D8C5112B87AF2B00C95FBB /* GoogleService-Info.plist in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; - DAD98CDE2B73A46D002F1EA9 /* Resources */ = { + A9D8C5142B87B08300C95FBB /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - DAD98CE62B73A46D002F1EA9 /* MainInterface.storyboard in Resources */, + A9D8C51C2B87B08300C95FBB /* MainInterface.storyboard in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXResourcesBuildPhase section */ /* Begin PBXShellScriptBuildPhase section */ - 5B7AACB22ECDCEAA343DC840 /* [CP] Copy Pods Resources */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 8; - files = ( - ); - inputPaths = ( - ); - name = "[CP] Copy Pods Resources"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 1; - shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-App/Pods-App-resources.sh\"\n"; - showEnvVarsInLog = 0; - }; 6634F4EFEBD30273BCE97C65 /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; - buildActionMask = 8; + buildActionMask = 2147483647; files = ( ); inputPaths = ( @@ -298,14 +271,14 @@ outputPaths = ( "$(DERIVED_FILE_DIR)/Pods-App-checkManifestLockResult.txt", ); - runOnlyForDeploymentPostprocessing = 1; + runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; showEnvVarsInLog = 0; }; 9592DBEFFC6D2A0C8D5DEB22 /* [CP] Embed Pods Frameworks */ = { isa = PBXShellScriptBuildPhase; - buildActionMask = 8; + buildActionMask = 2147483647; files = ( ); inputPaths = ( @@ -313,11 +286,26 @@ name = "[CP] Embed Pods Frameworks"; outputPaths = ( ); - runOnlyForDeploymentPostprocessing = 1; + runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-App/Pods-App-frameworks.sh\"\n"; showEnvVarsInLog = 0; }; + AA1461F6B6F9477889FFC1DD /* [CP] Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "[CP] Copy Pods Resources"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-App/Pods-App-resources.sh\"\n"; + showEnvVarsInLog = 0; + }; /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ @@ -329,21 +317,21 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - DAD98CDC2B73A46D002F1EA9 /* Sources */ = { + A9D8C5122B87B08300C95FBB /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - DAD98CE32B73A46D002F1EA9 /* ShareViewController.swift in Sources */, + A9D8C5192B87B08300C95FBB /* ShareViewController.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ - DAD98CE92B73A46D002F1EA9 /* PBXTargetDependency */ = { + A9D8C51F2B87B08300C95FBB /* PBXTargetDependency */ = { isa = PBXTargetDependency; - target = DAD98CDF2B73A46D002F1EA9 /* MyShareExtension */; - targetProxy = DAD98CE82B73A46D002F1EA9 /* PBXContainerItemProxy */; + target = A9D8C5152B87B08300C95FBB /* Share */; + targetProxy = A9D8C51E2B87B08300C95FBB /* PBXContainerItemProxy */; }; /* End PBXTargetDependency section */ @@ -364,10 +352,10 @@ name = LaunchScreen.storyboard; sourceTree = ""; }; - DAD98CE42B73A46D002F1EA9 /* MainInterface.storyboard */ = { + A9D8C51A2B87B08300C95FBB /* MainInterface.storyboard */ = { isa = PBXVariantGroup; children = ( - DAD98CE52B73A46D002F1EA9 /* Base */, + A9D8C51B2B87B08300C95FBB /* Base */, ); name = MainInterface.storyboard; sourceTree = ""; @@ -379,6 +367,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; CLANG_ANALYZER_NONNULL = YES; CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; @@ -412,6 +401,7 @@ DEBUG_INFORMATION_FORMAT = dwarf; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; + ENABLE_USER_SCRIPT_SANDBOXING = YES; GCC_C_LANGUAGE_STANDARD = gnu11; GCC_DYNAMIC_NO_PIC = NO; GCC_NO_COMMON_BLOCKS = YES; @@ -439,6 +429,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; CLANG_ANALYZER_NONNULL = YES; CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; @@ -472,6 +463,7 @@ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = YES; GCC_C_LANGUAGE_STANDARD = gnu11; GCC_NO_COMMON_BLOCKS = YES; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; @@ -496,23 +488,20 @@ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = App/App.entitlements; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution"; - CODE_SIGN_STYLE = Manual; - CURRENT_PROJECT_VERSION = 68; - DEVELOPMENT_TEAM = ""; - "DEVELOPMENT_TEAM[sdk=iphoneos*]" = 94BRNM2LSS; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = 94BRNM2LSS; + ENABLE_USER_SCRIPT_SANDBOXING = NO; INFOPLIST_FILE = App/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 17.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 2.0.25; + MARKETING_VERSION = 1.0; OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" \"-DDEBUG\""; PRODUCT_BUNDLE_IDENTIFIER = com.gpr.gabinetedigital.teste; PRODUCT_NAME = "$(TARGET_NAME)"; - PROVISIONING_PROFILE_SPECIFIER = ""; - "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = GabineteDigitalProfile; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -526,81 +515,85 @@ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = App/App.entitlements; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution"; - CODE_SIGN_STYLE = Manual; - CURRENT_PROJECT_VERSION = 68; - DEVELOPMENT_TEAM = ""; - "DEVELOPMENT_TEAM[sdk=iphoneos*]" = 94BRNM2LSS; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = 94BRNM2LSS; + ENABLE_USER_SCRIPT_SANDBOXING = NO; INFOPLIST_FILE = App/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 17.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 2.0.25; + MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = com.gpr.gabinetedigital.teste; PRODUCT_NAME = "$(TARGET_NAME)"; - PROVISIONING_PROFILE_SPECIFIER = ""; - "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = GabineteDigitalProfile; SWIFT_ACTIVE_COMPILATION_CONDITIONS = ""; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Release; }; - DAD98CEC2B73A46D002F1EA9 /* Debug */ = { + A9D8C5222B87B08300C95FBB /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; CLANG_ENABLE_OBJC_WEAK = YES; - CODE_SIGN_ENTITLEMENTS = MyShareExtension/MyShareExtension.entitlements; + CODE_SIGN_ENTITLEMENTS = Share/Share.entitlements; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = 94BRNM2LSS; + GCC_C_LANGUAGE_STANDARD = gnu17; GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_FILE = MyShareExtension/Info.plist; - INFOPLIST_KEY_CFBundleDisplayName = MyShareExtension; + INFOPLIST_FILE = Share/Info.plist; + INFOPLIST_KEY_CFBundleDisplayName = Share; INFOPLIST_KEY_NSHumanReadableCopyright = ""; - IPHONEOS_DEPLOYMENT_TARGET = 16.2; + INFOPLIST_KEY_NSPhotoLibraryUsageDescription = ""; + IPHONEOS_DEPLOYMENT_TARGET = 17.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", "@executable_path/../../Frameworks", ); + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; MARKETING_VERSION = 1.0; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; - PRODUCT_BUNDLE_IDENTIFIER = com.gpr.gabinetedigital.teste.MyShareExtension; + PRODUCT_BUNDLE_IDENTIFIER = com.gpr.gabinetedigital.teste.Share; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)"; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Debug; }; - DAD98CED2B73A46D002F1EA9 /* Release */ = { + A9D8C5232B87B08300C95FBB /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; CLANG_ENABLE_OBJC_WEAK = YES; - CODE_SIGN_ENTITLEMENTS = MyShareExtension/MyShareExtension.entitlements; + CODE_SIGN_ENTITLEMENTS = Share/Share.entitlements; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = 94BRNM2LSS; + GCC_C_LANGUAGE_STANDARD = gnu17; GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_FILE = MyShareExtension/Info.plist; - INFOPLIST_KEY_CFBundleDisplayName = MyShareExtension; + INFOPLIST_FILE = Share/Info.plist; + INFOPLIST_KEY_CFBundleDisplayName = Share; INFOPLIST_KEY_NSHumanReadableCopyright = ""; - IPHONEOS_DEPLOYMENT_TARGET = 16.2; + INFOPLIST_KEY_NSPhotoLibraryUsageDescription = ""; + IPHONEOS_DEPLOYMENT_TARGET = 17.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", "@executable_path/../../Frameworks", ); + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; MARKETING_VERSION = 1.0; MTL_FAST_MATH = YES; - PRODUCT_BUNDLE_IDENTIFIER = com.gpr.gabinetedigital.teste.MyShareExtension; + PRODUCT_BUNDLE_IDENTIFIER = com.gpr.gabinetedigital.teste.Share; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; SWIFT_EMIT_LOC_STRINGS = YES; @@ -630,27 +623,16 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - DAD98CEE2B73A46D002F1EA9 /* Build configuration list for PBXNativeTarget "MyShareExtension" */ = { + A9D8C5212B87B08300C95FBB /* Build configuration list for PBXNativeTarget "Share" */ = { isa = XCConfigurationList; buildConfigurations = ( - DAD98CEC2B73A46D002F1EA9 /* Debug */, - DAD98CED2B73A46D002F1EA9 /* Release */, + A9D8C5222B87B08300C95FBB /* Debug */, + A9D8C5232B87B08300C95FBB /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; /* End XCConfigurationList section */ - -/* Begin XCRemoteSwiftPackageReference section */ - DA6FE4D42ACEEC01006F1E0D /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */ = { - isa = XCRemoteSwiftPackageReference; - repositoryURL = "https://github.com/firebase/firebase-ios-sdk"; - requirement = { - branch = master; - kind = branch; - }; - }; -/* End XCRemoteSwiftPackageReference section */ }; rootObject = 504EC2FC1FED79650016851F /* Project object */; } diff --git a/ios/App/App.xcworkspace/xcshareddata/swiftpm/Package.resolved b/ios/App/App.xcworkspace/xcshareddata/swiftpm/Package.resolved deleted file mode 100644 index afa7db29b..000000000 --- a/ios/App/App.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ /dev/null @@ -1,113 +0,0 @@ -{ - "pins" : [ - { - "identity" : "abseil-cpp-binary", - "kind" : "remoteSourceControl", - "location" : "https://github.com/google/abseil-cpp-binary.git", - "state" : { - "revision" : "bfc0b6f81adc06ce5121eb23f628473638d67c5c", - "version" : "1.2022062300.0" - } - }, - { - "identity" : "firebase-ios-sdk", - "kind" : "remoteSourceControl", - "location" : "https://github.com/firebase/firebase-ios-sdk", - "state" : { - "branch" : "master", - "revision" : "a10c9f585db1d37a8e6bf9461ef96b14fffdc8b9" - } - }, - { - "identity" : "googleappmeasurement", - "kind" : "remoteSourceControl", - "location" : "https://github.com/google/GoogleAppMeasurement.git", - "state" : { - "revision" : "56f681586ff006a7982b53dc94082eea31971acf", - "version" : "10.16.0" - } - }, - { - "identity" : "googledatatransport", - "kind" : "remoteSourceControl", - "location" : "https://github.com/google/GoogleDataTransport.git", - "state" : { - "revision" : "aae45a320fd0d11811820335b1eabc8753902a40", - "version" : "9.2.5" - } - }, - { - "identity" : "googleutilities", - "kind" : "remoteSourceControl", - "location" : "https://github.com/google/GoogleUtilities.git", - "state" : { - "revision" : "c38ce365d77b04a9a300c31061c5227589e5597b", - "version" : "7.11.5" - } - }, - { - "identity" : "grpc-binary", - "kind" : "remoteSourceControl", - "location" : "https://github.com/google/grpc-binary.git", - "state" : { - "revision" : "a673bc2937fbe886dd1f99c401b01b6d977a9c98", - "version" : "1.49.1" - } - }, - { - "identity" : "gtm-session-fetcher", - "kind" : "remoteSourceControl", - "location" : "https://github.com/google/gtm-session-fetcher.git", - "state" : { - "revision" : "d415594121c9e8a4f9d79cecee0965cf35e74dbd", - "version" : "3.1.1" - } - }, - { - "identity" : "interop-ios-for-google-sdks", - "kind" : "remoteSourceControl", - "location" : "https://github.com/google/interop-ios-for-google-sdks.git", - "state" : { - "revision" : "2d12673670417654f08f5f90fdd62926dc3a2648", - "version" : "100.0.0" - } - }, - { - "identity" : "leveldb", - "kind" : "remoteSourceControl", - "location" : "https://github.com/firebase/leveldb.git", - "state" : { - "revision" : "0706abcc6b0bd9cedfbb015ba840e4a780b5159b", - "version" : "1.22.2" - } - }, - { - "identity" : "nanopb", - "kind" : "remoteSourceControl", - "location" : "https://github.com/firebase/nanopb.git", - "state" : { - "revision" : "819d0a2173aff699fb8c364b6fb906f7cdb1a692", - "version" : "2.30909.0" - } - }, - { - "identity" : "promises", - "kind" : "remoteSourceControl", - "location" : "https://github.com/google/promises.git", - "state" : { - "revision" : "e70e889c0196c76d22759eb50d6a0270ca9f1d9e", - "version" : "2.3.1" - } - }, - { - "identity" : "swift-protobuf", - "kind" : "remoteSourceControl", - "location" : "https://github.com/apple/swift-protobuf.git", - "state" : { - "revision" : "3c54ab05249f59f2c6641dd2920b8358ea9ed127", - "version" : "1.24.0" - } - } - ], - "version" : 2 -} diff --git a/ios/App/App/App.entitlements b/ios/App/App/App.entitlements index df026f3ab..eeb23ac7a 100644 --- a/ios/App/App/App.entitlements +++ b/ios/App/App/App.entitlements @@ -2,8 +2,6 @@ - aps-environment - development com.apple.security.application-groups group.gabinete diff --git a/ios/App/App/AppDelegate.swift b/ios/App/App/AppDelegate.swift index a50f5ebd0..0b80fba39 100644 --- a/ios/App/App/AppDelegate.swift +++ b/ios/App/App/AppDelegate.swift @@ -1,115 +1,82 @@ import UIKit import Capacitor -import FirebaseCore -import Firebase import SendIntent @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { - // share intent - - let store = ShareStore.store - var window: UIWindow? + let store = ShareStore.store func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. - - // Specify the custom file path - // let customGoogleServiceInfoPlistPath = Bundle.main.path(forResource: "11", ofType: "plist") - - // Check if the custom plist file exists - // if let filePath = customGoogleServiceInfoPlistPath, - // let fileOptions = FirebaseOptions(contentsOfFile: filePath) { - // FirebaseApp.configure(options: fileOptions) - // } else { - // Handle the case where the custom plist file is not found - // print("Custom GoogleService-Info.plist not found or invalid.") - FirebaseApp.configure() - //} - - - return true } - - func applicationWillResignActive(_ application: UIApplication) { - // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. - // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. + // Sent when the application is about to move from active to inactive state. + // This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) + // or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. + // Games should use this method to pause the game. } func applicationDidEnterBackground(_ application: UIApplication) { - // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. - // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. + // Use this method to release shared resources, save user data, invalidate timers, + // and store enough application state information to restore your application to its current state + // in case it is terminated later. If your application supports background execution, + // this method is called instead of applicationWillTerminate: when the user quits. } func applicationWillEnterForeground(_ application: UIApplication) { - // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. + // Called as part of the transition from the background to the active state; + // here you can undo many of the changes made on entering the background. } func applicationDidBecomeActive(_ application: UIApplication) { - // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. + // Restart any tasks that were paused (or not yet started) while the application was inactive. + // If the application was previously in the background, optionally refresh the user interface. } func applicationWillTerminate(_ application: UIApplication) { - // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. + // Called when the application is about to terminate. + // Save data if appropriate. See also applicationDidEnterBackground:. } func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool { - - var success = true - if CAPBridge.handleOpenUrl(url, options) { - success = ApplicationDelegateProxy.shared.application(app, open: url, options: options) - } - - guard let components = NSURLComponents(url: url, resolvingAgainstBaseURL: true), - let params = components.queryItems else { - return false - } - let titles = params.filter { $0.name == "title" } - let descriptions = params.filter { $0.name == "description" } - let types = params.filter { $0.name == "type" } - let urls = params.filter { $0.name == "url" } - - store.shareItems.removeAll() - - if(titles.count > 0){ - for index in 0...titles.count-1 { - var shareItem: JSObject = JSObject() - shareItem["title"] = titles[index].value! - shareItem["description"] = descriptions[index].value! - shareItem["type"] = types[index].value! - shareItem["url"] = urls[index].value! - store.shareItems.append(shareItem) - } - } - - store.processed = false - let nc = NotificationCenter.default - nc.post(name: Notification.Name("triggerSendIntent"), object: nil ) - - return success + var success = true + + if CAPBridge.handleOpenUrl(url, options) { + success = ApplicationDelegateProxy.shared.application(app, open: url, options: options) + } + + guard let components = NSURLComponents(url: url, resolvingAgainstBaseURL: true), + let params = components.queryItems else { + return false + } + + let titles = params.filter { $0.name == "title" } + let descriptions = params.filter { $0.name == "description" } + let types = params.filter { $0.name == "type" } + let urls = params.filter { $0.name == "url" } + + store.shareItems.removeAll() + + if titles.count > 0 { + for index in 0...titles.count-1 { + var shareItem: JSObject = JSObject() + shareItem["title"] = titles[index].value! + shareItem["description"] = descriptions[index].value! + shareItem["type"] = types[index].value! + shareItem["url"] = urls[index].value! + store.shareItems.append(shareItem) } + } - func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool { - // Called when the app was launched with an activity, including Universal Links. - // Feel free to add additional processing here, but if you want the App API to support - // tracking app url opens, make sure to keep this call - return ApplicationDelegateProxy.shared.application(application, continue: userActivity, restorationHandler: restorationHandler) + store.processed = false + let nc = NotificationCenter.default + nc.post(name: Notification.Name("triggerSendIntent"), object: nil ) + + return success } - - func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) { - NotificationCenter.default.post(name: .capacitorDidRegisterForRemoteNotifications, object: deviceToken) - - Messaging.messaging().apnsToken = deviceToken - } - - func application(_ application: UIApplication, didFailToRegisterForRemoteNotificationsWithError error: Error) { - NotificationCenter.default.post(name: .capacitorDidFailToRegisterForRemoteNotifications, object: error) - } - - } diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@1x.png b/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@1x.png new file mode 100644 index 000000000..2f503741c Binary files /dev/null and b/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@1x.png differ diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@2x-1.png b/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@2x-1.png new file mode 100644 index 000000000..dd72c1ce8 Binary files /dev/null and b/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@2x-1.png differ diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@2x.png b/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@2x.png new file mode 100644 index 000000000..dd72c1ce8 Binary files /dev/null and b/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@2x.png differ diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@3x.png b/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@3x.png new file mode 100644 index 000000000..7fbf0a84a Binary files /dev/null and b/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@3x.png differ diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@1x.png b/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@1x.png new file mode 100644 index 000000000..f996ea18f Binary files /dev/null and b/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@1x.png differ diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@2x-1.png b/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@2x-1.png new file mode 100644 index 000000000..bb2935fb7 Binary files /dev/null and b/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@2x-1.png differ diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@2x.png b/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@2x.png new file mode 100644 index 000000000..bb2935fb7 Binary files /dev/null and b/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@2x.png differ diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@3x.png b/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@3x.png new file mode 100644 index 000000000..21d16e5b1 Binary files /dev/null and b/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@3x.png differ diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@1x.png b/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@1x.png new file mode 100644 index 000000000..dd72c1ce8 Binary files /dev/null and b/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@1x.png differ diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@2x-1.png b/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@2x-1.png new file mode 100644 index 000000000..ff0754519 Binary files /dev/null and b/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@2x-1.png differ diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@2x.png b/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@2x.png new file mode 100644 index 000000000..ff0754519 Binary files /dev/null and b/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@2x.png differ diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@3x.png b/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@3x.png new file mode 100644 index 000000000..3401fa887 Binary files /dev/null and b/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@3x.png differ diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png b/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png new file mode 100644 index 000000000..adf6ba01d Binary files /dev/null and b/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png differ diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-60x60@2x.png b/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-60x60@2x.png new file mode 100644 index 000000000..ffd0da781 Binary files /dev/null and b/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-60x60@2x.png differ diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-60x60@3x.png b/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-60x60@3x.png new file mode 100644 index 000000000..90aea7cd2 Binary files /dev/null and b/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-60x60@3x.png differ diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-76x76@1x.png b/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-76x76@1x.png new file mode 100644 index 000000000..2f5eafb6b Binary files /dev/null and b/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-76x76@1x.png differ diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-76x76@2x.png b/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-76x76@2x.png new file mode 100644 index 000000000..89c8d0448 Binary files /dev/null and b/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-76x76@2x.png differ diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-83.5x83.5@2x.png b/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-83.5x83.5@2x.png new file mode 100644 index 000000000..ef541c90a Binary files /dev/null and b/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-83.5x83.5@2x.png differ diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json b/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json old mode 100755 new mode 100644 index 6bf81eb64..90eea7ec7 --- a/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json +++ b/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -1,354 +1,116 @@ { "images" : [ { - "filename" : "40.png", + "size" : "20x20", "idiom" : "iphone", - "scale" : "2x", - "size" : "20x20" + "filename" : "AppIcon-20x20@2x.png", + "scale" : "2x" }, { - "filename" : "60.png", + "size" : "20x20", "idiom" : "iphone", - "scale" : "3x", - "size" : "20x20" + "filename" : "AppIcon-20x20@3x.png", + "scale" : "3x" }, { - "filename" : "29.png", + "size" : "29x29", "idiom" : "iphone", - "scale" : "1x", - "size" : "29x29" + "filename" : "AppIcon-29x29@2x-1.png", + "scale" : "2x" }, { - "filename" : "58.png", + "size" : "29x29", "idiom" : "iphone", - "scale" : "2x", - "size" : "29x29" + "filename" : "AppIcon-29x29@3x.png", + "scale" : "3x" }, { - "filename" : "87.png", - "idiom" : "iphone", - "scale" : "3x", - "size" : "29x29" - }, - { - "filename" : "80.png", - "idiom" : "iphone", - "scale" : "2x", - "size" : "40x40" - }, - { - "filename" : "120.png", - "idiom" : "iphone", - "scale" : "3x", - "size" : "40x40" - }, - { - "filename" : "57.png", - "idiom" : "iphone", - "scale" : "1x", - "size" : "57x57" - }, - { - "filename" : "114.png", - "idiom" : "iphone", - "scale" : "2x", - "size" : "57x57" - }, - { - "filename" : "120.png", - "idiom" : "iphone", - "scale" : "2x", - "size" : "60x60" - }, - { - "filename" : "180.png", - "idiom" : "iphone", - "scale" : "3x", - "size" : "60x60" - }, - { - "filename" : "20.png", - "idiom" : "ipad", - "scale" : "1x", - "size" : "20x20" - }, - { - "filename" : "40.png", - "idiom" : "ipad", - "scale" : "2x", - "size" : "20x20" - }, - { - "filename" : "29.png", - "idiom" : "ipad", - "scale" : "1x", - "size" : "29x29" - }, - { - "filename" : "58.png", - "idiom" : "ipad", - "scale" : "2x", - "size" : "29x29" - }, - { - "filename" : "40.png", - "idiom" : "ipad", - "scale" : "1x", - "size" : "40x40" - }, - { - "filename" : "80.png", - "idiom" : "ipad", - "scale" : "2x", - "size" : "40x40" - }, - { - "filename" : "50.png", - "idiom" : "ipad", - "scale" : "1x", - "size" : "50x50" - }, - { - "filename" : "100.png", - "idiom" : "ipad", - "scale" : "2x", - "size" : "50x50" - }, - { - "filename" : "72.png", - "idiom" : "ipad", - "scale" : "1x", - "size" : "72x72" - }, - { - "filename" : "144.png", - "idiom" : "ipad", - "scale" : "2x", - "size" : "72x72" - }, - { - "filename" : "76.png", - "idiom" : "ipad", - "scale" : "1x", - "size" : "76x76" - }, - { - "filename" : "152.png", - "idiom" : "ipad", - "scale" : "2x", - "size" : "76x76" - }, - { - "filename" : "167.png", - "idiom" : "ipad", - "scale" : "2x", - "size" : "83.5x83.5" - }, - { - "filename" : "1024.png", - "idiom" : "ios-marketing", - "scale" : "1x", - "size" : "1024x1024" - }, - { - "filename" : "16.png", - "idiom" : "mac", - "scale" : "1x", - "size" : "16x16" - }, - { - "filename" : "32.png", - "idiom" : "mac", - "scale" : "2x", - "size" : "16x16" - }, - { - "filename" : "32.png", - "idiom" : "mac", - "scale" : "1x", - "size" : "32x32" - }, - { - "filename" : "64.png", - "idiom" : "mac", - "scale" : "2x", - "size" : "32x32" - }, - { - "filename" : "128.png", - "idiom" : "mac", - "scale" : "1x", - "size" : "128x128" - }, - { - "filename" : "256.png", - "idiom" : "mac", - "scale" : "2x", - "size" : "128x128" - }, - { - "filename" : "256.png", - "idiom" : "mac", - "scale" : "1x", - "size" : "256x256" - }, - { - "filename" : "512.png", - "idiom" : "mac", - "scale" : "2x", - "size" : "256x256" - }, - { - "filename" : "512.png", - "idiom" : "mac", - "scale" : "1x", - "size" : "512x512" - }, - { - "filename" : "1024.png", - "idiom" : "mac", - "scale" : "2x", - "size" : "512x512" - }, - { - "filename" : "48.png", - "idiom" : "watch", - "role" : "notificationCenter", - "scale" : "2x", - "size" : "24x24", - "subtype" : "38mm" - }, - { - "filename" : "55.png", - "idiom" : "watch", - "role" : "notificationCenter", - "scale" : "2x", - "size" : "27.5x27.5", - "subtype" : "42mm" - }, - { - "filename" : "58.png", - "idiom" : "watch", - "role" : "companionSettings", - "scale" : "2x", - "size" : "29x29" - }, - { - "filename" : "87.png", - "idiom" : "watch", - "role" : "companionSettings", - "scale" : "3x", - "size" : "29x29" - }, - { - "filename" : "66.png", - "idiom" : "watch", - "role" : "notificationCenter", - "scale" : "2x", - "size" : "33x33", - "subtype" : "45mm" - }, - { - "filename" : "80.png", - "idiom" : "watch", - "role" : "appLauncher", - "scale" : "2x", "size" : "40x40", - "subtype" : "38mm" + "idiom" : "iphone", + "filename" : "AppIcon-40x40@2x.png", + "scale" : "2x" }, { - "filename" : "88.png", - "idiom" : "watch", - "role" : "appLauncher", - "scale" : "2x", - "size" : "44x44", - "subtype" : "40mm" + "size" : "40x40", + "idiom" : "iphone", + "filename" : "AppIcon-40x40@3x.png", + "scale" : "3x" }, { - "filename" : "92.png", - "idiom" : "watch", - "role" : "appLauncher", - "scale" : "2x", - "size" : "46x46", - "subtype" : "41mm" + "size" : "60x60", + "idiom" : "iphone", + "filename" : "AppIcon-60x60@2x.png", + "scale" : "2x" }, { - "filename" : "100.png", - "idiom" : "watch", - "role" : "appLauncher", - "scale" : "2x", - "size" : "50x50", - "subtype" : "44mm" + "size" : "60x60", + "idiom" : "iphone", + "filename" : "AppIcon-60x60@3x.png", + "scale" : "3x" }, { - "idiom" : "watch", - "role" : "appLauncher", - "scale" : "2x", - "size" : "51x51", - "subtype" : "45mm" + "size" : "20x20", + "idiom" : "ipad", + "filename" : "AppIcon-20x20@1x.png", + "scale" : "1x" }, { - "idiom" : "watch", - "role" : "appLauncher", - "scale" : "2x", - "size" : "54x54", - "subtype" : "49mm" + "size" : "20x20", + "idiom" : "ipad", + "filename" : "AppIcon-20x20@2x-1.png", + "scale" : "2x" }, { - "filename" : "172.png", - "idiom" : "watch", - "role" : "quickLook", - "scale" : "2x", - "size" : "86x86", - "subtype" : "38mm" + "size" : "29x29", + "idiom" : "ipad", + "filename" : "AppIcon-29x29@1x.png", + "scale" : "1x" }, { - "filename" : "196.png", - "idiom" : "watch", - "role" : "quickLook", - "scale" : "2x", - "size" : "98x98", - "subtype" : "42mm" + "size" : "29x29", + "idiom" : "ipad", + "filename" : "AppIcon-29x29@2x.png", + "scale" : "2x" }, { - "filename" : "216.png", - "idiom" : "watch", - "role" : "quickLook", - "scale" : "2x", - "size" : "108x108", - "subtype" : "44mm" + "size" : "40x40", + "idiom" : "ipad", + "filename" : "AppIcon-40x40@1x.png", + "scale" : "1x" }, { - "idiom" : "watch", - "role" : "quickLook", - "scale" : "2x", - "size" : "117x117", - "subtype" : "45mm" + "size" : "40x40", + "idiom" : "ipad", + "filename" : "AppIcon-40x40@2x-1.png", + "scale" : "2x" }, { - "idiom" : "watch", - "role" : "quickLook", - "scale" : "2x", - "size" : "129x129", - "subtype" : "49mm" + "size" : "76x76", + "idiom" : "ipad", + "filename" : "AppIcon-76x76@1x.png", + "scale" : "1x" }, { - "filename" : "1024.png", - "idiom" : "watch-marketing", - "scale" : "1x", - "size" : "1024x1024" + "size" : "76x76", + "idiom" : "ipad", + "filename" : "AppIcon-76x76@2x.png", + "scale" : "2x" }, { - "filename" : "102.png", - "idiom" : "watch", - "role" : "appLauncher", - "scale" : "2x", - "size" : "45x45", - "subtype" : "41mm" + "size" : "83.5x83.5", + "idiom" : "ipad", + "filename" : "AppIcon-83.5x83.5@2x.png", + "scale" : "2x" + }, + { + "size" : "1024x1024", + "idiom" : "ios-marketing", + "filename" : "AppIcon-512@2x.png", + "scale" : "1x" } ], "info" : { - "author" : "xcode", - "version" : 1 + "version" : 1, + "author" : "xcode" } -} +} \ No newline at end of file diff --git a/ios/App/App/Info.plist b/ios/App/App/Info.plist index f0b51d9da..20cacdb91 100644 --- a/ios/App/App/Info.plist +++ b/ios/App/App/Info.plist @@ -2,88 +2,73 @@ - CFBundleDevelopmentRegion - en - CFBundleDisplayName - Gabinete Digital - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - APPL - CFBundleShortVersionString - $(MARKETING_VERSION) - CFBundleURLTypes - - - CFBundleTypeRole - Editor - CFBundleURLName - com.gpr.gabinetedigital.teste - CFBundleURLSchemes - - gabineteDigital - - - - CFBundleVersion - $(CURRENT_PROJECT_VERSION) - FirebaseAppDelegateProxyEnabled - - LSRequiresIPhoneOS - - NSCameraUsageDescription - Used to demonstrate image picker plugin - - NSFaceIDUsageDescription - $FACEID_USAGE_DESCRIPTION - NSLocationAlwaysAndWhenInUseUsageDescription - some string - NSLocationAlwaysUsageDescription - some string - NSLocationUsageDescription - Need location access for updating nearby friends - NSLocationWhenInUseUsageDescription - This app needs your location to test the location feature of the Google Maps plugin. - NSMicrophoneUsageDescription - Used to capture audio for image picker plugin - NSPhotoLibraryAddUsageDescription - Privacy - Photo Library Additions Usage Description - NSPhotoLibraryUsageDescription - Used to demonstrate image picker plugin - UIBackgroundModes - - remote-notification - - UILaunchStoryboardName - LaunchScreen - UIMainStoryboardFile - Main - UIRequiredDeviceCapabilities - - armv7 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UISupportedInterfaceOrientations~ipad - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UIViewControllerBasedStatusBarAppearance - - UNUserNotificationCenterDelegate - YourApp.NotificationDelegate + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + Gabinete Digital + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + $(MARKETING_VERSION) + CFBundleURLTypes + + + CFBundleTypeRole + Editor + CFBundleURLName + com.gpr.gabinetedigital.teste + CFBundleURLSchemes + + gabinetedigital + + + + CFBundleVersion + $(CURRENT_PROJECT_VERSION) + LSApplicationCategoryType + + LSRequiresIPhoneOS + + NSCameraUsageDescription + This app requires access to the camera. + NSMicrophoneUsageDescription + This app does not require access to the microphone. + NSPhotoLibraryAddUsageDescription + This app requires access to the photo library. + NSPhotoLibraryUsageDescription + This app requires access to the photo library. + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UIViewControllerBasedStatusBarAppearance + diff --git a/ios/App/Podfile b/ios/App/Podfile index 0dd9bad1e..79de82432 100644 --- a/ios/App/Podfile +++ b/ios/App/Podfile @@ -36,9 +36,6 @@ end target 'App' do capacitor_pods # Add your Pods here - pod 'Firebase/CoreOnly', '~> 10.15.0' - pod 'Firebase/Core', '~> 10.15.0' - pod 'Firebase/Messaging', '~> 10.15.0' end post_install do |installer| diff --git a/ios/App/MyShareExtension/Base.lproj/MainInterface.storyboard b/ios/App/Share/Base.lproj/MainInterface.storyboard similarity index 100% rename from ios/App/MyShareExtension/Base.lproj/MainInterface.storyboard rename to ios/App/Share/Base.lproj/MainInterface.storyboard diff --git a/ios/App/Share/Info.plist b/ios/App/Share/Info.plist new file mode 100644 index 000000000..8e4af7102 --- /dev/null +++ b/ios/App/Share/Info.plist @@ -0,0 +1,46 @@ + + + + + CFBundleURLTypes + + + CFBundleURLName + + + + CFBundleURLName + com.gpr.gabinetedigital.teste + + + NSExtension + + NSExtensionAttributes + + NSExtensionActivationRule + TRUEPREDICATE + + NSExtensionMainStoryboard + MainInterface + NSExtensionPointIdentifier + com.apple.share-services + + NSExtensionActivationRule + + NSExtensionActivationSupportsFileWithMaxCount + 5 + NSExtensionActivationSupportsImageWithMaxCount + 5 + NSExtensionActivationSupportsMovieWithMaxCount + 5 + NSExtensionActivationSupportsText + + NSExtensionActivationSupportsWebPageWithMaxCount + 1 + NSExtensionActivationSupportsWebURLWithMaxCount + 1 + NSExtensionActivationUsesStrictMatching + + + + diff --git a/ios/App/Share/Share.entitlements b/ios/App/Share/Share.entitlements new file mode 100644 index 000000000..eeb23ac7a --- /dev/null +++ b/ios/App/Share/Share.entitlements @@ -0,0 +1,10 @@ + + + + + com.apple.security.application-groups + + group.gabinete + + + diff --git a/ios/App/Share/ShareViewController.swift b/ios/App/Share/ShareViewController.swift new file mode 100644 index 000000000..0545f50c4 --- /dev/null +++ b/ios/App/Share/ShareViewController.swift @@ -0,0 +1,186 @@ +import MobileCoreServices +import Social +import UIKit + +class ShareItem { + + public var title: String? + public var type: String? + public var url: String? +} + +class ShareViewController: UIViewController { + + private var shareItems: [ShareItem] = [] + + override public func viewDidAppear(_ animated: Bool) { + super.viewDidAppear(animated) + self.extensionContext!.completeRequest(returningItems: [], completionHandler: nil) + } + + private func sendData() { + let queryItems = shareItems.map { + [ + URLQueryItem( + name: "title", + value: $0.title?.addingPercentEncoding(withAllowedCharacters: .urlHostAllowed) ?? ""), + URLQueryItem(name: "description", value: ""), + URLQueryItem( + name: "type", + value: $0.type?.addingPercentEncoding(withAllowedCharacters: .urlHostAllowed) ?? ""), + URLQueryItem( + name: "url", + value: $0.url?.addingPercentEncoding(withAllowedCharacters: .urlHostAllowed) ?? ""), + ] + }.flatMap({ $0 }) + var urlComps = URLComponents(string: "gabinetedigital://")! + urlComps.queryItems = queryItems + openURL(urlComps.url!) + } + + fileprivate func createSharedFileUrl(_ url: URL?) -> String { + let fileManager = FileManager.default + + let copyFileUrl = + fileManager.containerURL(forSecurityApplicationGroupIdentifier: "group.gabinete")! + .absoluteString.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)! + url! + .lastPathComponent.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)! + try? Data(contentsOf: url!).write(to: URL(string: copyFileUrl)!) + + return copyFileUrl + } + + func saveScreenshot(_ image: UIImage, _ index: Int) -> String { + let fileManager = FileManager.default + + let copyFileUrl = + fileManager.containerURL(forSecurityApplicationGroupIdentifier: "group.gabinete")! + .absoluteString.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)! + + "/screenshot_\(index).png" + do { + try image.pngData()?.write(to: URL(string: copyFileUrl)!) + return copyFileUrl + } catch { + print(error.localizedDescription) + return "" + } + } + + fileprivate func handleTypeUrl(_ attachment: NSItemProvider) + async throws -> ShareItem + { + let results = try await attachment.loadItem(forTypeIdentifier: kUTTypeURL as String, options: nil) + let url = results as! URL? + let shareItem: ShareItem = ShareItem() + + if url!.isFileURL { + shareItem.title = url!.lastPathComponent + shareItem.type = "application/" + url!.pathExtension.lowercased() + shareItem.url = createSharedFileUrl(url) + } else { + shareItem.title = url!.absoluteString + shareItem.url = url!.absoluteString + shareItem.type = "text/plain" + } + + return shareItem + } + + fileprivate func handleTypeText(_ attachment: NSItemProvider) + async throws -> ShareItem + { + let results = try await attachment.loadItem(forTypeIdentifier: kUTTypeText as String, options: nil) + let shareItem: ShareItem = ShareItem() + let text = results as! String + shareItem.title = text + shareItem.type = "text/plain" + return shareItem + } + + fileprivate func handleTypeMovie(_ attachment: NSItemProvider) + async throws -> ShareItem + { + let results = try await attachment.loadItem(forTypeIdentifier: kUTTypeMovie as String, options: nil) + let shareItem: ShareItem = ShareItem() + + let url = results as! URL? + shareItem.title = url!.lastPathComponent + shareItem.type = "video/" + url!.pathExtension.lowercased() + shareItem.url = createSharedFileUrl(url) + return shareItem + } + + fileprivate func handleTypeImage(_ attachment: NSItemProvider, _ index: Int) + async throws -> ShareItem + { + let data = try await attachment.loadItem(forTypeIdentifier: kUTTypeImage as String, options: nil) + + let shareItem: ShareItem = ShareItem() + switch data { + case let image as UIImage: + shareItem.title = "screenshot_\(index)" + shareItem.type = "image/png" + shareItem.url = self.saveScreenshot(image, index) + case let url as URL: + shareItem.title = url.lastPathComponent + shareItem.type = "image/" + url.pathExtension.lowercased() + shareItem.url = self.createSharedFileUrl(url) + default: + print("Unexpected image data:", type(of: data)) + } + return shareItem + } + + override public func viewDidLoad() { + super.viewDidLoad() + + shareItems.removeAll() + + let extensionItem = extensionContext?.inputItems[0] as! NSExtensionItem + Task { + try await withThrowingTaskGroup( + of: ShareItem.self, + body: { taskGroup in + + for (index, attachment) in extensionItem.attachments!.enumerated() { + if attachment.hasItemConformingToTypeIdentifier(kUTTypeURL as String) { + taskGroup.addTask { + return try await self.handleTypeUrl(attachment) + } + } else if attachment.hasItemConformingToTypeIdentifier(kUTTypeText as String) { + taskGroup.addTask { + return try await self.handleTypeText(attachment) + } + } else if attachment.hasItemConformingToTypeIdentifier(kUTTypeMovie as String) { + taskGroup.addTask { + return try await self.handleTypeMovie(attachment) + } + } else if attachment.hasItemConformingToTypeIdentifier(kUTTypeImage as String) { + taskGroup.addTask { + return try await self.handleTypeImage(attachment, index) + } + } + } + + for try await item in taskGroup { + self.shareItems.append(item) + } + }) + + self.sendData() + + } + } + + @objc func openURL(_ url: URL) -> Bool { + var responder: UIResponder? = self + while responder != nil { + if let application = responder as? UIApplication { + return application.perform(#selector(openURL(_:)), with: url) != nil + } + responder = responder?.next + } + return false + } + +} diff --git a/ios__/.gitignore b/ios__/.gitignore new file mode 100644 index 000000000..9ddf65903 --- /dev/null +++ b/ios__/.gitignore @@ -0,0 +1,13 @@ +App/build +App/Pods +App/Podfile.lock +App/App/public +DerivedData +xcuserdata + +# Cordova plugins for Capacitor +capacitor-cordova-ios-plugins + +# Generated Config files +App/App/capacitor.config.json +App/App/config.xml diff --git a/ios__/App/App.xcodeproj/project.pbxproj b/ios__/App/App.xcodeproj/project.pbxproj new file mode 100644 index 000000000..e4de0a28d --- /dev/null +++ b/ios__/App/App.xcodeproj/project.pbxproj @@ -0,0 +1,672 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 54; + objects = { + +/* Begin PBXBuildFile section */ + 2FAD9763203C412B000D30F8 /* config.xml in Resources */ = {isa = PBXBuildFile; fileRef = 2FAD9762203C412B000D30F8 /* config.xml */; }; + 50379B232058CBB4000EE86E /* capacitor.config.json in Resources */ = {isa = PBXBuildFile; fileRef = 50379B222058CBB4000EE86E /* capacitor.config.json */; }; + 504EC3081FED79650016851F /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 504EC3071FED79650016851F /* AppDelegate.swift */; }; + 504EC30D1FED79650016851F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 504EC30B1FED79650016851F /* Main.storyboard */; }; + 504EC30F1FED79650016851F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 504EC30E1FED79650016851F /* Assets.xcassets */; }; + 504EC3121FED79650016851F /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 504EC3101FED79650016851F /* LaunchScreen.storyboard */; }; + 50B271D11FEDC1A000F3C39B /* public in Resources */ = {isa = PBXBuildFile; fileRef = 50B271D01FEDC1A000F3C39B /* public */; }; + A96A2DA82B878FFE008CFA1B /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = A96A2DA72B878FFE008CFA1B /* GoogleService-Info.plist */; }; + A96E551F2B879D32004FFB77 /* Pods_App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AF277DCFFFF123FFC6DF26C7 /* Pods_App.framework */; }; + A96E55202B879D32004FFB77 /* Pods_App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = AF277DCFFFF123FFC6DF26C7 /* Pods_App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + DAD98CE32B73A46D002F1EA9 /* ShareViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DAD98CE22B73A46D002F1EA9 /* ShareViewController.swift */; }; + DAD98CE62B73A46D002F1EA9 /* MainInterface.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = DAD98CE42B73A46D002F1EA9 /* MainInterface.storyboard */; }; + DAD98CEA2B73A46D002F1EA9 /* MyShareExtension.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = DAD98CE02B73A46D002F1EA9 /* MyShareExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + DAD98CE82B73A46D002F1EA9 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 504EC2FC1FED79650016851F /* Project object */; + proxyType = 1; + remoteGlobalIDString = DAD98CDF2B73A46D002F1EA9; + remoteInfo = MyShareExtension; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXCopyFilesBuildPhase section */ + A96E55212B879D32004FFB77 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + A96E55202B879D32004FFB77 /* Pods_App.framework in Embed Frameworks */, + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; + DAD98CEB2B73A46D002F1EA9 /* Embed Foundation Extensions */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 8; + dstPath = ""; + dstSubfolderSpec = 13; + files = ( + DAD98CEA2B73A46D002F1EA9 /* MyShareExtension.appex in Embed Foundation Extensions */, + ); + name = "Embed Foundation Extensions"; + runOnlyForDeploymentPostprocessing = 1; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 2FAD9762203C412B000D30F8 /* config.xml */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = config.xml; sourceTree = ""; }; + 50379B222058CBB4000EE86E /* capacitor.config.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = capacitor.config.json; sourceTree = ""; }; + 504EC3041FED79650016851F /* App.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = App.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 504EC3071FED79650016851F /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 504EC30C1FED79650016851F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 504EC30E1FED79650016851F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 504EC3111FED79650016851F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 504EC3131FED79650016851F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 50B271D01FEDC1A000F3C39B /* public */ = {isa = PBXFileReference; lastKnownFileType = folder; path = public; sourceTree = ""; }; + A96A2DA72B878FFE008CFA1B /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = "GoogleService-Info.plist"; path = "../../../../Downloads/GoogleService-Info.plist"; sourceTree = ""; }; + AF277DCFFFF123FFC6DF26C7 /* Pods_App.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_App.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + AF51FD2D460BCFE21FA515B2 /* Pods-App.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-App.release.xcconfig"; path = "Pods/Target Support Files/Pods-App/Pods-App.release.xcconfig"; sourceTree = ""; }; + DA6FE4D02ACEEACD006F1E0D /* CapacitorPushNotifications.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = CapacitorPushNotifications.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + DA6FE4D52ACEF2DA006F1E0D /* FirebaseCore.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = FirebaseCore.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + DA6FE4D62ACEF2DA006F1E0D /* FirebaseCoreInternal.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = FirebaseCoreInternal.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + DA6FE4D72ACEF2DA006F1E0D /* FirebaseInstallations.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = FirebaseInstallations.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + DA6FE4D82ACEF2DA006F1E0D /* FirebaseMessaging.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = FirebaseMessaging.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + DA8422AF2AD03FBE00AC9118 /* App.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = App.entitlements; sourceTree = ""; }; + DAD98CE02B73A46D002F1EA9 /* MyShareExtension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = MyShareExtension.appex; sourceTree = BUILT_PRODUCTS_DIR; }; + DAD98CE22B73A46D002F1EA9 /* ShareViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShareViewController.swift; sourceTree = ""; }; + DAD98CE52B73A46D002F1EA9 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/MainInterface.storyboard; sourceTree = ""; }; + DAD98CE72B73A46D002F1EA9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + DAD98CEF2B73A5CB002F1EA9 /* MyShareExtension.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = MyShareExtension.entitlements; sourceTree = ""; }; + FC68EB0AF532CFC21C3344DD /* Pods-App.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-App.debug.xcconfig"; path = "Pods/Target Support Files/Pods-App/Pods-App.debug.xcconfig"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 504EC3011FED79650016851F /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + A96E551F2B879D32004FFB77 /* Pods_App.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + DAD98CDD2B73A46D002F1EA9 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 27E2DDA53C4D2A4D1A88CE4A /* Frameworks */ = { + isa = PBXGroup; + children = ( + DA6FE4D52ACEF2DA006F1E0D /* FirebaseCore.framework */, + DA6FE4D62ACEF2DA006F1E0D /* FirebaseCoreInternal.framework */, + DA6FE4D72ACEF2DA006F1E0D /* FirebaseInstallations.framework */, + DA6FE4D82ACEF2DA006F1E0D /* FirebaseMessaging.framework */, + DA6FE4D02ACEEACD006F1E0D /* CapacitorPushNotifications.framework */, + AF277DCFFFF123FFC6DF26C7 /* Pods_App.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 504EC2FB1FED79650016851F = { + isa = PBXGroup; + children = ( + 504EC3061FED79650016851F /* App */, + DAD98CE12B73A46D002F1EA9 /* MyShareExtension */, + 504EC3051FED79650016851F /* Products */, + 7F8756D8B27F46E3366F6CEA /* Pods */, + 27E2DDA53C4D2A4D1A88CE4A /* Frameworks */, + ); + sourceTree = ""; + }; + 504EC3051FED79650016851F /* Products */ = { + isa = PBXGroup; + children = ( + 504EC3041FED79650016851F /* App.app */, + DAD98CE02B73A46D002F1EA9 /* MyShareExtension.appex */, + ); + name = Products; + sourceTree = ""; + }; + 504EC3061FED79650016851F /* App */ = { + isa = PBXGroup; + children = ( + A96A2DA72B878FFE008CFA1B /* GoogleService-Info.plist */, + DA8422AF2AD03FBE00AC9118 /* App.entitlements */, + 50379B222058CBB4000EE86E /* capacitor.config.json */, + 504EC3071FED79650016851F /* AppDelegate.swift */, + 504EC30B1FED79650016851F /* Main.storyboard */, + 504EC30E1FED79650016851F /* Assets.xcassets */, + 504EC3101FED79650016851F /* LaunchScreen.storyboard */, + 504EC3131FED79650016851F /* Info.plist */, + 2FAD9762203C412B000D30F8 /* config.xml */, + 50B271D01FEDC1A000F3C39B /* public */, + ); + path = App; + sourceTree = ""; + }; + 7F8756D8B27F46E3366F6CEA /* Pods */ = { + isa = PBXGroup; + children = ( + FC68EB0AF532CFC21C3344DD /* Pods-App.debug.xcconfig */, + AF51FD2D460BCFE21FA515B2 /* Pods-App.release.xcconfig */, + ); + name = Pods; + sourceTree = ""; + }; + DAD98CE12B73A46D002F1EA9 /* MyShareExtension */ = { + isa = PBXGroup; + children = ( + DAD98CEF2B73A5CB002F1EA9 /* MyShareExtension.entitlements */, + DAD98CE22B73A46D002F1EA9 /* ShareViewController.swift */, + DAD98CE42B73A46D002F1EA9 /* MainInterface.storyboard */, + DAD98CE72B73A46D002F1EA9 /* Info.plist */, + ); + path = MyShareExtension; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 504EC3031FED79650016851F /* App */ = { + isa = PBXNativeTarget; + buildConfigurationList = 504EC3161FED79650016851F /* Build configuration list for PBXNativeTarget "App" */; + buildPhases = ( + 6634F4EFEBD30273BCE97C65 /* [CP] Check Pods Manifest.lock */, + 504EC3001FED79650016851F /* Sources */, + 504EC3011FED79650016851F /* Frameworks */, + 504EC3021FED79650016851F /* Resources */, + 9592DBEFFC6D2A0C8D5DEB22 /* [CP] Embed Pods Frameworks */, + 5B7AACB22ECDCEAA343DC840 /* [CP] Copy Pods Resources */, + DAD98CEB2B73A46D002F1EA9 /* Embed Foundation Extensions */, + A96E55212B879D32004FFB77 /* Embed Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + DAD98CE92B73A46D002F1EA9 /* PBXTargetDependency */, + ); + name = App; + productName = App; + productReference = 504EC3041FED79650016851F /* App.app */; + productType = "com.apple.product-type.application"; + }; + DAD98CDF2B73A46D002F1EA9 /* MyShareExtension */ = { + isa = PBXNativeTarget; + buildConfigurationList = DAD98CEE2B73A46D002F1EA9 /* Build configuration list for PBXNativeTarget "MyShareExtension" */; + buildPhases = ( + DAD98CDC2B73A46D002F1EA9 /* Sources */, + DAD98CDD2B73A46D002F1EA9 /* Frameworks */, + DAD98CDE2B73A46D002F1EA9 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = MyShareExtension; + productName = MyShareExtension; + productReference = DAD98CE02B73A46D002F1EA9 /* MyShareExtension.appex */; + productType = "com.apple.product-type.app-extension"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 504EC2FC1FED79650016851F /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = YES; + LastSwiftUpdateCheck = 1420; + LastUpgradeCheck = 1520; + TargetAttributes = { + 504EC3031FED79650016851F = { + CreatedOnToolsVersion = 9.2; + LastSwiftMigration = 1100; + ProvisioningStyle = Manual; + }; + DAD98CDF2B73A46D002F1EA9 = { + CreatedOnToolsVersion = 14.2; + }; + }; + }; + buildConfigurationList = 504EC2FF1FED79650016851F /* Build configuration list for PBXProject "App" */; + compatibilityVersion = "Xcode 8.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 504EC2FB1FED79650016851F; + packageReferences = ( + DA6FE4D42ACEEC01006F1E0D /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */, + ); + productRefGroup = 504EC3051FED79650016851F /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 504EC3031FED79650016851F /* App */, + DAD98CDF2B73A46D002F1EA9 /* MyShareExtension */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 504EC3021FED79650016851F /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 504EC3121FED79650016851F /* LaunchScreen.storyboard in Resources */, + A96A2DA82B878FFE008CFA1B /* GoogleService-Info.plist in Resources */, + 50B271D11FEDC1A000F3C39B /* public in Resources */, + 504EC30F1FED79650016851F /* Assets.xcassets in Resources */, + 50379B232058CBB4000EE86E /* capacitor.config.json in Resources */, + 504EC30D1FED79650016851F /* Main.storyboard in Resources */, + 2FAD9763203C412B000D30F8 /* config.xml in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + DAD98CDE2B73A46D002F1EA9 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + DAD98CE62B73A46D002F1EA9 /* MainInterface.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 5B7AACB22ECDCEAA343DC840 /* [CP] Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 8; + files = ( + ); + inputPaths = ( + ); + name = "[CP] Copy Pods Resources"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 1; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-App/Pods-App-resources.sh\"\n"; + showEnvVarsInLog = 0; + }; + 6634F4EFEBD30273BCE97C65 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 8; + files = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-App-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 1; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + 9592DBEFFC6D2A0C8D5DEB22 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 8; + files = ( + ); + inputPaths = ( + ); + name = "[CP] Embed Pods Frameworks"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 1; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-App/Pods-App-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 504EC3001FED79650016851F /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 504EC3081FED79650016851F /* AppDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + DAD98CDC2B73A46D002F1EA9 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + DAD98CE32B73A46D002F1EA9 /* ShareViewController.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + DAD98CE92B73A46D002F1EA9 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = DAD98CDF2B73A46D002F1EA9 /* MyShareExtension */; + targetProxy = DAD98CE82B73A46D002F1EA9 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 504EC30B1FED79650016851F /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 504EC30C1FED79650016851F /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 504EC3101FED79650016851F /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 504EC3111FED79650016851F /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; + DAD98CE42B73A46D002F1EA9 /* MainInterface.storyboard */ = { + isa = PBXVariantGroup; + children = ( + DAD98CE52B73A46D002F1EA9 /* Base */, + ); + name = MainInterface.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 504EC3141FED79650016851F /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 504EC3151FED79650016851F /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 504EC3171FED79650016851F /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = FC68EB0AF532CFC21C3344DD /* Pods-App.debug.xcconfig */; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_ENTITLEMENTS = App/App.entitlements; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution"; + CODE_SIGN_STYLE = Manual; + CURRENT_PROJECT_VERSION = 74; + DEVELOPMENT_TEAM = ""; + "DEVELOPMENT_TEAM[sdk=iphoneos*]" = 94BRNM2LSS; + INFOPLIST_FILE = App/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 17.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 2.0.25; + OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" \"-DDEBUG\""; + PRODUCT_BUNDLE_IDENTIFIER = com.gpr.gabinetedigital.teste; + PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; + "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = GabineteDigitalProfile; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 504EC3181FED79650016851F /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = AF51FD2D460BCFE21FA515B2 /* Pods-App.release.xcconfig */; + buildSettings = { + = NO; + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_ENTITLEMENTS = App/App.entitlements; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution"; + CODE_SIGN_STYLE = Manual; + CURRENT_PROJECT_VERSION = 74; + DEVELOPMENT_TEAM = ""; + "DEVELOPMENT_TEAM[sdk=iphoneos*]" = 94BRNM2LSS; + INFOPLIST_FILE = App/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 17.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 2.0.25; + PRODUCT_BUNDLE_IDENTIFIER = com.gpr.gabinetedigital.teste; + PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; + "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = GabineteDigitalProfile; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = ""; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; + DAD98CEC2B73A46D002F1EA9 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_OBJC_WEAK = YES; + CODE_SIGN_ENTITLEMENTS = MyShareExtension/MyShareExtension.entitlements; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = 94BRNM2LSS; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = MyShareExtension/Info.plist; + INFOPLIST_KEY_CFBundleDisplayName = MyShareExtension; + INFOPLIST_KEY_NSHumanReadableCopyright = ""; + IPHONEOS_DEPLOYMENT_TARGET = 17.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@executable_path/../../Frameworks", + ); + MARKETING_VERSION = 1.0; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + PRODUCT_BUNDLE_IDENTIFIER = com.gpr.gabinetedigital.teste; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + DAD98CED2B73A46D002F1EA9 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_OBJC_WEAK = YES; + CODE_SIGN_ENTITLEMENTS = MyShareExtension/MyShareExtension.entitlements; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = 94BRNM2LSS; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = MyShareExtension/Info.plist; + INFOPLIST_KEY_CFBundleDisplayName = MyShareExtension; + INFOPLIST_KEY_NSHumanReadableCopyright = ""; + IPHONEOS_DEPLOYMENT_TARGET = 17.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@executable_path/../../Frameworks", + ); + MARKETING_VERSION = 1.0; + MTL_FAST_MATH = YES; + PRODUCT_BUNDLE_IDENTIFIER = com.gpr.gabinetedigital.teste; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 504EC2FF1FED79650016851F /* Build configuration list for PBXProject "App" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 504EC3141FED79650016851F /* Debug */, + 504EC3151FED79650016851F /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 504EC3161FED79650016851F /* Build configuration list for PBXNativeTarget "App" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 504EC3171FED79650016851F /* Debug */, + 504EC3181FED79650016851F /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + DAD98CEE2B73A46D002F1EA9 /* Build configuration list for PBXNativeTarget "MyShareExtension" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + DAD98CEC2B73A46D002F1EA9 /* Debug */, + DAD98CED2B73A46D002F1EA9 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + +/* Begin XCRemoteSwiftPackageReference section */ + DA6FE4D42ACEEC01006F1E0D /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */ = { + isa = XCRemoteSwiftPackageReference; + repositoryURL = "https://github.com/firebase/firebase-ios-sdk"; + requirement = { + branch = master; + kind = branch; + }; + }; +/* End XCRemoteSwiftPackageReference section */ + }; + rootObject = 504EC2FC1FED79650016851F /* Project object */; +} diff --git a/ios__/App/App.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/ios__/App/App.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 000000000..42daef8a1 --- /dev/null +++ b/ios__/App/App.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/ios/App/App.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/ios__/App/App.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved similarity index 100% rename from ios/App/App.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved rename to ios__/App/App.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved diff --git a/ios/App/App.xcodeproj/xcshareddata/xcschemes/App.xcscheme b/ios__/App/App.xcodeproj/xcshareddata/xcschemes/App.xcscheme similarity index 98% rename from ios/App/App.xcodeproj/xcshareddata/xcschemes/App.xcscheme rename to ios__/App/App.xcodeproj/xcshareddata/xcschemes/App.xcscheme index d708c4b0f..eb9026377 100644 --- a/ios/App/App.xcodeproj/xcshareddata/xcschemes/App.xcscheme +++ b/ios__/App/App.xcodeproj/xcshareddata/xcschemes/App.xcscheme @@ -1,6 +1,6 @@ + + + + + + diff --git a/ios__/App/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios__/App/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 000000000..18d981003 --- /dev/null +++ b/ios__/App/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/ios__/App/App/App.entitlements b/ios__/App/App/App.entitlements new file mode 100644 index 000000000..df026f3ab --- /dev/null +++ b/ios__/App/App/App.entitlements @@ -0,0 +1,12 @@ + + + + + aps-environment + development + com.apple.security.application-groups + + group.gabinete + + + diff --git a/ios__/App/App/AppDelegate.swift b/ios__/App/App/AppDelegate.swift new file mode 100644 index 000000000..a50f5ebd0 --- /dev/null +++ b/ios__/App/App/AppDelegate.swift @@ -0,0 +1,115 @@ +import UIKit +import Capacitor +import FirebaseCore +import Firebase +import SendIntent + +@UIApplicationMain +class AppDelegate: UIResponder, UIApplicationDelegate { + + // share intent + + let store = ShareStore.store + + var window: UIWindow? + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { + // Override point for customization after application launch. + + // Specify the custom file path + // let customGoogleServiceInfoPlistPath = Bundle.main.path(forResource: "11", ofType: "plist") + + // Check if the custom plist file exists + // if let filePath = customGoogleServiceInfoPlistPath, + // let fileOptions = FirebaseOptions(contentsOfFile: filePath) { + // FirebaseApp.configure(options: fileOptions) + // } else { + // Handle the case where the custom plist file is not found + // print("Custom GoogleService-Info.plist not found or invalid.") + FirebaseApp.configure() + //} + + + + return true + } + + + + func applicationWillResignActive(_ application: UIApplication) { + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. + } + + func applicationDidEnterBackground(_ application: UIApplication) { + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. + } + + func applicationWillEnterForeground(_ application: UIApplication) { + // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. + } + + func applicationDidBecomeActive(_ application: UIApplication) { + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. + } + + func applicationWillTerminate(_ application: UIApplication) { + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. + } + + func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool { + + var success = true + if CAPBridge.handleOpenUrl(url, options) { + success = ApplicationDelegateProxy.shared.application(app, open: url, options: options) + } + + guard let components = NSURLComponents(url: url, resolvingAgainstBaseURL: true), + let params = components.queryItems else { + return false + } + let titles = params.filter { $0.name == "title" } + let descriptions = params.filter { $0.name == "description" } + let types = params.filter { $0.name == "type" } + let urls = params.filter { $0.name == "url" } + + store.shareItems.removeAll() + + if(titles.count > 0){ + for index in 0...titles.count-1 { + var shareItem: JSObject = JSObject() + shareItem["title"] = titles[index].value! + shareItem["description"] = descriptions[index].value! + shareItem["type"] = types[index].value! + shareItem["url"] = urls[index].value! + store.shareItems.append(shareItem) + } + } + + store.processed = false + let nc = NotificationCenter.default + nc.post(name: Notification.Name("triggerSendIntent"), object: nil ) + + return success + } + + func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool { + // Called when the app was launched with an activity, including Universal Links. + // Feel free to add additional processing here, but if you want the App API to support + // tracking app url opens, make sure to keep this call + return ApplicationDelegateProxy.shared.application(application, continue: userActivity, restorationHandler: restorationHandler) + } + + func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) { + NotificationCenter.default.post(name: .capacitorDidRegisterForRemoteNotifications, object: deviceToken) + + Messaging.messaging().apnsToken = deviceToken + } + + func application(_ application: UIApplication, didFailToRegisterForRemoteNotificationsWithError error: Error) { + NotificationCenter.default.post(name: .capacitorDidFailToRegisterForRemoteNotifications, object: error) + } + + +} diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/100.png b/ios__/App/App/Assets.xcassets/AppIcon.appiconset/100.png similarity index 100% rename from ios/App/App/Assets.xcassets/AppIcon.appiconset/100.png rename to ios__/App/App/Assets.xcassets/AppIcon.appiconset/100.png diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/102.png b/ios__/App/App/Assets.xcassets/AppIcon.appiconset/102.png similarity index 100% rename from ios/App/App/Assets.xcassets/AppIcon.appiconset/102.png rename to ios__/App/App/Assets.xcassets/AppIcon.appiconset/102.png diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/1024.png b/ios__/App/App/Assets.xcassets/AppIcon.appiconset/1024.png similarity index 100% rename from ios/App/App/Assets.xcassets/AppIcon.appiconset/1024.png rename to ios__/App/App/Assets.xcassets/AppIcon.appiconset/1024.png diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/114.png b/ios__/App/App/Assets.xcassets/AppIcon.appiconset/114.png similarity index 100% rename from ios/App/App/Assets.xcassets/AppIcon.appiconset/114.png rename to ios__/App/App/Assets.xcassets/AppIcon.appiconset/114.png diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/120.png b/ios__/App/App/Assets.xcassets/AppIcon.appiconset/120.png similarity index 100% rename from ios/App/App/Assets.xcassets/AppIcon.appiconset/120.png rename to ios__/App/App/Assets.xcassets/AppIcon.appiconset/120.png diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/128.png b/ios__/App/App/Assets.xcassets/AppIcon.appiconset/128.png similarity index 100% rename from ios/App/App/Assets.xcassets/AppIcon.appiconset/128.png rename to ios__/App/App/Assets.xcassets/AppIcon.appiconset/128.png diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/144.png b/ios__/App/App/Assets.xcassets/AppIcon.appiconset/144.png similarity index 100% rename from ios/App/App/Assets.xcassets/AppIcon.appiconset/144.png rename to ios__/App/App/Assets.xcassets/AppIcon.appiconset/144.png diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/152.png b/ios__/App/App/Assets.xcassets/AppIcon.appiconset/152.png similarity index 100% rename from ios/App/App/Assets.xcassets/AppIcon.appiconset/152.png rename to ios__/App/App/Assets.xcassets/AppIcon.appiconset/152.png diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/16.png b/ios__/App/App/Assets.xcassets/AppIcon.appiconset/16.png similarity index 100% rename from ios/App/App/Assets.xcassets/AppIcon.appiconset/16.png rename to ios__/App/App/Assets.xcassets/AppIcon.appiconset/16.png diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/167.png b/ios__/App/App/Assets.xcassets/AppIcon.appiconset/167.png similarity index 100% rename from ios/App/App/Assets.xcassets/AppIcon.appiconset/167.png rename to ios__/App/App/Assets.xcassets/AppIcon.appiconset/167.png diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/172.png b/ios__/App/App/Assets.xcassets/AppIcon.appiconset/172.png similarity index 100% rename from ios/App/App/Assets.xcassets/AppIcon.appiconset/172.png rename to ios__/App/App/Assets.xcassets/AppIcon.appiconset/172.png diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/180.png b/ios__/App/App/Assets.xcassets/AppIcon.appiconset/180.png similarity index 100% rename from ios/App/App/Assets.xcassets/AppIcon.appiconset/180.png rename to ios__/App/App/Assets.xcassets/AppIcon.appiconset/180.png diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/196.png b/ios__/App/App/Assets.xcassets/AppIcon.appiconset/196.png similarity index 100% rename from ios/App/App/Assets.xcassets/AppIcon.appiconset/196.png rename to ios__/App/App/Assets.xcassets/AppIcon.appiconset/196.png diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/20.png b/ios__/App/App/Assets.xcassets/AppIcon.appiconset/20.png similarity index 100% rename from ios/App/App/Assets.xcassets/AppIcon.appiconset/20.png rename to ios__/App/App/Assets.xcassets/AppIcon.appiconset/20.png diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/216.png b/ios__/App/App/Assets.xcassets/AppIcon.appiconset/216.png similarity index 100% rename from ios/App/App/Assets.xcassets/AppIcon.appiconset/216.png rename to ios__/App/App/Assets.xcassets/AppIcon.appiconset/216.png diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/256.png b/ios__/App/App/Assets.xcassets/AppIcon.appiconset/256.png similarity index 100% rename from ios/App/App/Assets.xcassets/AppIcon.appiconset/256.png rename to ios__/App/App/Assets.xcassets/AppIcon.appiconset/256.png diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/29.png b/ios__/App/App/Assets.xcassets/AppIcon.appiconset/29.png similarity index 100% rename from ios/App/App/Assets.xcassets/AppIcon.appiconset/29.png rename to ios__/App/App/Assets.xcassets/AppIcon.appiconset/29.png diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/32.png b/ios__/App/App/Assets.xcassets/AppIcon.appiconset/32.png similarity index 100% rename from ios/App/App/Assets.xcassets/AppIcon.appiconset/32.png rename to ios__/App/App/Assets.xcassets/AppIcon.appiconset/32.png diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/40.png b/ios__/App/App/Assets.xcassets/AppIcon.appiconset/40.png similarity index 100% rename from ios/App/App/Assets.xcassets/AppIcon.appiconset/40.png rename to ios__/App/App/Assets.xcassets/AppIcon.appiconset/40.png diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/48.png b/ios__/App/App/Assets.xcassets/AppIcon.appiconset/48.png similarity index 100% rename from ios/App/App/Assets.xcassets/AppIcon.appiconset/48.png rename to ios__/App/App/Assets.xcassets/AppIcon.appiconset/48.png diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/50.png b/ios__/App/App/Assets.xcassets/AppIcon.appiconset/50.png similarity index 100% rename from ios/App/App/Assets.xcassets/AppIcon.appiconset/50.png rename to ios__/App/App/Assets.xcassets/AppIcon.appiconset/50.png diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/512.png b/ios__/App/App/Assets.xcassets/AppIcon.appiconset/512.png similarity index 100% rename from ios/App/App/Assets.xcassets/AppIcon.appiconset/512.png rename to ios__/App/App/Assets.xcassets/AppIcon.appiconset/512.png diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/55.png b/ios__/App/App/Assets.xcassets/AppIcon.appiconset/55.png similarity index 100% rename from ios/App/App/Assets.xcassets/AppIcon.appiconset/55.png rename to ios__/App/App/Assets.xcassets/AppIcon.appiconset/55.png diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/57.png b/ios__/App/App/Assets.xcassets/AppIcon.appiconset/57.png similarity index 100% rename from ios/App/App/Assets.xcassets/AppIcon.appiconset/57.png rename to ios__/App/App/Assets.xcassets/AppIcon.appiconset/57.png diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/58.png b/ios__/App/App/Assets.xcassets/AppIcon.appiconset/58.png similarity index 100% rename from ios/App/App/Assets.xcassets/AppIcon.appiconset/58.png rename to ios__/App/App/Assets.xcassets/AppIcon.appiconset/58.png diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/60.png b/ios__/App/App/Assets.xcassets/AppIcon.appiconset/60.png similarity index 100% rename from ios/App/App/Assets.xcassets/AppIcon.appiconset/60.png rename to ios__/App/App/Assets.xcassets/AppIcon.appiconset/60.png diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/64.png b/ios__/App/App/Assets.xcassets/AppIcon.appiconset/64.png similarity index 100% rename from ios/App/App/Assets.xcassets/AppIcon.appiconset/64.png rename to ios__/App/App/Assets.xcassets/AppIcon.appiconset/64.png diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/66.png b/ios__/App/App/Assets.xcassets/AppIcon.appiconset/66.png similarity index 100% rename from ios/App/App/Assets.xcassets/AppIcon.appiconset/66.png rename to ios__/App/App/Assets.xcassets/AppIcon.appiconset/66.png diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/72.png b/ios__/App/App/Assets.xcassets/AppIcon.appiconset/72.png similarity index 100% rename from ios/App/App/Assets.xcassets/AppIcon.appiconset/72.png rename to ios__/App/App/Assets.xcassets/AppIcon.appiconset/72.png diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/76.png b/ios__/App/App/Assets.xcassets/AppIcon.appiconset/76.png similarity index 100% rename from ios/App/App/Assets.xcassets/AppIcon.appiconset/76.png rename to ios__/App/App/Assets.xcassets/AppIcon.appiconset/76.png diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/80.png b/ios__/App/App/Assets.xcassets/AppIcon.appiconset/80.png similarity index 100% rename from ios/App/App/Assets.xcassets/AppIcon.appiconset/80.png rename to ios__/App/App/Assets.xcassets/AppIcon.appiconset/80.png diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/87.png b/ios__/App/App/Assets.xcassets/AppIcon.appiconset/87.png similarity index 100% rename from ios/App/App/Assets.xcassets/AppIcon.appiconset/87.png rename to ios__/App/App/Assets.xcassets/AppIcon.appiconset/87.png diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/88.png b/ios__/App/App/Assets.xcassets/AppIcon.appiconset/88.png similarity index 100% rename from ios/App/App/Assets.xcassets/AppIcon.appiconset/88.png rename to ios__/App/App/Assets.xcassets/AppIcon.appiconset/88.png diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/92.png b/ios__/App/App/Assets.xcassets/AppIcon.appiconset/92.png similarity index 100% rename from ios/App/App/Assets.xcassets/AppIcon.appiconset/92.png rename to ios__/App/App/Assets.xcassets/AppIcon.appiconset/92.png diff --git a/ios__/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json b/ios__/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100755 index 000000000..6bf81eb64 --- /dev/null +++ b/ios__/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,354 @@ +{ + "images" : [ + { + "filename" : "40.png", + "idiom" : "iphone", + "scale" : "2x", + "size" : "20x20" + }, + { + "filename" : "60.png", + "idiom" : "iphone", + "scale" : "3x", + "size" : "20x20" + }, + { + "filename" : "29.png", + "idiom" : "iphone", + "scale" : "1x", + "size" : "29x29" + }, + { + "filename" : "58.png", + "idiom" : "iphone", + "scale" : "2x", + "size" : "29x29" + }, + { + "filename" : "87.png", + "idiom" : "iphone", + "scale" : "3x", + "size" : "29x29" + }, + { + "filename" : "80.png", + "idiom" : "iphone", + "scale" : "2x", + "size" : "40x40" + }, + { + "filename" : "120.png", + "idiom" : "iphone", + "scale" : "3x", + "size" : "40x40" + }, + { + "filename" : "57.png", + "idiom" : "iphone", + "scale" : "1x", + "size" : "57x57" + }, + { + "filename" : "114.png", + "idiom" : "iphone", + "scale" : "2x", + "size" : "57x57" + }, + { + "filename" : "120.png", + "idiom" : "iphone", + "scale" : "2x", + "size" : "60x60" + }, + { + "filename" : "180.png", + "idiom" : "iphone", + "scale" : "3x", + "size" : "60x60" + }, + { + "filename" : "20.png", + "idiom" : "ipad", + "scale" : "1x", + "size" : "20x20" + }, + { + "filename" : "40.png", + "idiom" : "ipad", + "scale" : "2x", + "size" : "20x20" + }, + { + "filename" : "29.png", + "idiom" : "ipad", + "scale" : "1x", + "size" : "29x29" + }, + { + "filename" : "58.png", + "idiom" : "ipad", + "scale" : "2x", + "size" : "29x29" + }, + { + "filename" : "40.png", + "idiom" : "ipad", + "scale" : "1x", + "size" : "40x40" + }, + { + "filename" : "80.png", + "idiom" : "ipad", + "scale" : "2x", + "size" : "40x40" + }, + { + "filename" : "50.png", + "idiom" : "ipad", + "scale" : "1x", + "size" : "50x50" + }, + { + "filename" : "100.png", + "idiom" : "ipad", + "scale" : "2x", + "size" : "50x50" + }, + { + "filename" : "72.png", + "idiom" : "ipad", + "scale" : "1x", + "size" : "72x72" + }, + { + "filename" : "144.png", + "idiom" : "ipad", + "scale" : "2x", + "size" : "72x72" + }, + { + "filename" : "76.png", + "idiom" : "ipad", + "scale" : "1x", + "size" : "76x76" + }, + { + "filename" : "152.png", + "idiom" : "ipad", + "scale" : "2x", + "size" : "76x76" + }, + { + "filename" : "167.png", + "idiom" : "ipad", + "scale" : "2x", + "size" : "83.5x83.5" + }, + { + "filename" : "1024.png", + "idiom" : "ios-marketing", + "scale" : "1x", + "size" : "1024x1024" + }, + { + "filename" : "16.png", + "idiom" : "mac", + "scale" : "1x", + "size" : "16x16" + }, + { + "filename" : "32.png", + "idiom" : "mac", + "scale" : "2x", + "size" : "16x16" + }, + { + "filename" : "32.png", + "idiom" : "mac", + "scale" : "1x", + "size" : "32x32" + }, + { + "filename" : "64.png", + "idiom" : "mac", + "scale" : "2x", + "size" : "32x32" + }, + { + "filename" : "128.png", + "idiom" : "mac", + "scale" : "1x", + "size" : "128x128" + }, + { + "filename" : "256.png", + "idiom" : "mac", + "scale" : "2x", + "size" : "128x128" + }, + { + "filename" : "256.png", + "idiom" : "mac", + "scale" : "1x", + "size" : "256x256" + }, + { + "filename" : "512.png", + "idiom" : "mac", + "scale" : "2x", + "size" : "256x256" + }, + { + "filename" : "512.png", + "idiom" : "mac", + "scale" : "1x", + "size" : "512x512" + }, + { + "filename" : "1024.png", + "idiom" : "mac", + "scale" : "2x", + "size" : "512x512" + }, + { + "filename" : "48.png", + "idiom" : "watch", + "role" : "notificationCenter", + "scale" : "2x", + "size" : "24x24", + "subtype" : "38mm" + }, + { + "filename" : "55.png", + "idiom" : "watch", + "role" : "notificationCenter", + "scale" : "2x", + "size" : "27.5x27.5", + "subtype" : "42mm" + }, + { + "filename" : "58.png", + "idiom" : "watch", + "role" : "companionSettings", + "scale" : "2x", + "size" : "29x29" + }, + { + "filename" : "87.png", + "idiom" : "watch", + "role" : "companionSettings", + "scale" : "3x", + "size" : "29x29" + }, + { + "filename" : "66.png", + "idiom" : "watch", + "role" : "notificationCenter", + "scale" : "2x", + "size" : "33x33", + "subtype" : "45mm" + }, + { + "filename" : "80.png", + "idiom" : "watch", + "role" : "appLauncher", + "scale" : "2x", + "size" : "40x40", + "subtype" : "38mm" + }, + { + "filename" : "88.png", + "idiom" : "watch", + "role" : "appLauncher", + "scale" : "2x", + "size" : "44x44", + "subtype" : "40mm" + }, + { + "filename" : "92.png", + "idiom" : "watch", + "role" : "appLauncher", + "scale" : "2x", + "size" : "46x46", + "subtype" : "41mm" + }, + { + "filename" : "100.png", + "idiom" : "watch", + "role" : "appLauncher", + "scale" : "2x", + "size" : "50x50", + "subtype" : "44mm" + }, + { + "idiom" : "watch", + "role" : "appLauncher", + "scale" : "2x", + "size" : "51x51", + "subtype" : "45mm" + }, + { + "idiom" : "watch", + "role" : "appLauncher", + "scale" : "2x", + "size" : "54x54", + "subtype" : "49mm" + }, + { + "filename" : "172.png", + "idiom" : "watch", + "role" : "quickLook", + "scale" : "2x", + "size" : "86x86", + "subtype" : "38mm" + }, + { + "filename" : "196.png", + "idiom" : "watch", + "role" : "quickLook", + "scale" : "2x", + "size" : "98x98", + "subtype" : "42mm" + }, + { + "filename" : "216.png", + "idiom" : "watch", + "role" : "quickLook", + "scale" : "2x", + "size" : "108x108", + "subtype" : "44mm" + }, + { + "idiom" : "watch", + "role" : "quickLook", + "scale" : "2x", + "size" : "117x117", + "subtype" : "45mm" + }, + { + "idiom" : "watch", + "role" : "quickLook", + "scale" : "2x", + "size" : "129x129", + "subtype" : "49mm" + }, + { + "filename" : "1024.png", + "idiom" : "watch-marketing", + "scale" : "1x", + "size" : "1024x1024" + }, + { + "filename" : "102.png", + "idiom" : "watch", + "role" : "appLauncher", + "scale" : "2x", + "size" : "45x45", + "subtype" : "41mm" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/ios__/App/App/Assets.xcassets/Contents.json b/ios__/App/App/Assets.xcassets/Contents.json new file mode 100644 index 000000000..da4a164c9 --- /dev/null +++ b/ios__/App/App/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ios__/App/App/Assets.xcassets/Splash.imageset/Contents.json b/ios__/App/App/Assets.xcassets/Splash.imageset/Contents.json new file mode 100644 index 000000000..d7d96a67c --- /dev/null +++ b/ios__/App/App/Assets.xcassets/Splash.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "splash-2732x2732-2.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "splash-2732x2732-1.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "splash-2732x2732.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ios__/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png b/ios__/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png new file mode 100644 index 000000000..33ea6c970 Binary files /dev/null and b/ios__/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png differ diff --git a/ios__/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png b/ios__/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png new file mode 100644 index 000000000..33ea6c970 Binary files /dev/null and b/ios__/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png differ diff --git a/ios__/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png b/ios__/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png new file mode 100644 index 000000000..33ea6c970 Binary files /dev/null and b/ios__/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png differ diff --git a/ios__/App/App/Base.lproj/LaunchScreen.storyboard b/ios__/App/App/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 000000000..e7ae5d780 --- /dev/null +++ b/ios__/App/App/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios__/App/App/Base.lproj/Main.storyboard b/ios__/App/App/Base.lproj/Main.storyboard new file mode 100644 index 000000000..b44df7be8 --- /dev/null +++ b/ios__/App/App/Base.lproj/Main.storyboard @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/ios/App/App/GoogleService-Info.plist b/ios__/App/App/GoogleService-Info.plist similarity index 100% rename from ios/App/App/GoogleService-Info.plist rename to ios__/App/App/GoogleService-Info.plist diff --git a/ios__/App/App/Info.plist b/ios__/App/App/Info.plist new file mode 100644 index 000000000..f0b51d9da --- /dev/null +++ b/ios__/App/App/Info.plist @@ -0,0 +1,89 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + Gabinete Digital + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + $(MARKETING_VERSION) + CFBundleURLTypes + + + CFBundleTypeRole + Editor + CFBundleURLName + com.gpr.gabinetedigital.teste + CFBundleURLSchemes + + gabineteDigital + + + + CFBundleVersion + $(CURRENT_PROJECT_VERSION) + FirebaseAppDelegateProxyEnabled + + LSRequiresIPhoneOS + + NSCameraUsageDescription + Used to demonstrate image picker plugin + + NSFaceIDUsageDescription + $FACEID_USAGE_DESCRIPTION + NSLocationAlwaysAndWhenInUseUsageDescription + some string + NSLocationAlwaysUsageDescription + some string + NSLocationUsageDescription + Need location access for updating nearby friends + NSLocationWhenInUseUsageDescription + This app needs your location to test the location feature of the Google Maps plugin. + NSMicrophoneUsageDescription + Used to capture audio for image picker plugin + NSPhotoLibraryAddUsageDescription + Privacy - Photo Library Additions Usage Description + NSPhotoLibraryUsageDescription + Used to demonstrate image picker plugin + UIBackgroundModes + + remote-notification + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UIViewControllerBasedStatusBarAppearance + + UNUserNotificationCenterDelegate + YourApp.NotificationDelegate + + diff --git a/ios__/App/MyShareExtension/Base.lproj/MainInterface.storyboard b/ios__/App/MyShareExtension/Base.lproj/MainInterface.storyboard new file mode 100644 index 000000000..286a50894 --- /dev/null +++ b/ios__/App/MyShareExtension/Base.lproj/MainInterface.storyboard @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/App/MyShareExtension/Info.plist b/ios__/App/MyShareExtension/Info.plist similarity index 99% rename from ios/App/MyShareExtension/Info.plist rename to ios__/App/MyShareExtension/Info.plist index 50854eb99..8b14dbe10 100644 --- a/ios/App/MyShareExtension/Info.plist +++ b/ios__/App/MyShareExtension/Info.plist @@ -26,7 +26,6 @@ com.apple.share-services NSExtensionActivationRule - NSExtensionActivationSupportsFileWithMaxCount 5 @@ -43,6 +42,5 @@ NSExtensionActivationUsesStrictMatching - diff --git a/ios/App/MyShareExtension/MyShareExtension.entitlements b/ios__/App/MyShareExtension/MyShareExtension.entitlements similarity index 89% rename from ios/App/MyShareExtension/MyShareExtension.entitlements rename to ios__/App/MyShareExtension/MyShareExtension.entitlements index 8904126b0..0c8e50edf 100644 --- a/ios/App/MyShareExtension/MyShareExtension.entitlements +++ b/ios__/App/MyShareExtension/MyShareExtension.entitlements @@ -4,7 +4,7 @@ com.apple.security.application-groups - group.share + group.gabinete keychain-access-groups diff --git a/ios/App/MyShareExtension/ShareViewController.swift b/ios__/App/MyShareExtension/ShareViewController.swift similarity index 100% rename from ios/App/MyShareExtension/ShareViewController.swift rename to ios__/App/MyShareExtension/ShareViewController.swift diff --git a/ios__/App/Podfile b/ios__/App/Podfile new file mode 100644 index 000000000..0dd9bad1e --- /dev/null +++ b/ios__/App/Podfile @@ -0,0 +1,46 @@ +require_relative '../../node_modules/@capacitor/ios/scripts/pods_helpers' + +platform :ios, '13.0' +use_frameworks! + +# workaround to avoid Xcode caching of Pods that requires +# Product -> Clean Build Folder after new Cordova plugins installed +# Requires CocoaPods 1.6 or newer +install! 'cocoapods', :disable_input_output_paths => true + +def capacitor_pods + pod 'Capacitor', :path => '../../node_modules/@capacitor/ios' + pod 'CapacitorCordova', :path => '../../node_modules/@capacitor/ios' + pod 'CapacitorCommunityFcm', :path => '../../node_modules/@capacitor-community/fcm' + pod 'CapacitorApp', :path => '../../node_modules/@capacitor/app' + pod 'CapacitorBrowser', :path => '../../node_modules/@capacitor/browser' + pod 'CapacitorCamera', :path => '../../node_modules/@capacitor/camera' + pod 'CapacitorDevice', :path => '../../node_modules/@capacitor/device' + pod 'CapacitorFilesystem', :path => '../../node_modules/@capacitor/filesystem' + pod 'CapacitorHaptics', :path => '../../node_modules/@capacitor/haptics' + pod 'CapacitorKeyboard', :path => '../../node_modules/@capacitor/keyboard' + pod 'CapacitorNetwork', :path => '../../node_modules/@capacitor/network' + pod 'CapacitorPushNotifications', :path => '../../node_modules/@capacitor/push-notifications' + pod 'CapacitorShare', :path => '../../node_modules/@capacitor/share' + pod 'CapacitorStorage', :path => '../../node_modules/@capacitor/storage' + pod 'CapawesomeCapacitorFilePicker', :path => '../../node_modules/@capawesome/capacitor-file-picker' + pod 'SentryCapacitor', :path => '../../node_modules/@sentry/capacitor' + pod 'TeamhiveCapacitorVideoRecorder', :path => '../../node_modules/@teamhive/capacitor-video-recorder' + pod 'CapacitorVideoPlayer', :path => '../../node_modules/capacitor-video-player' + pod 'CapacitorVoiceRecorder', :path => '../../node_modules/capacitor-voice-recorder' + pod 'SendIntent', :path => '../../node_modules/send-intent' + pod 'CordovaPlugins', :path => '../capacitor-cordova-ios-plugins' + pod 'CordovaPluginsResources', :path => '../capacitor-cordova-ios-plugins' +end + +target 'App' do + capacitor_pods + # Add your Pods here + pod 'Firebase/CoreOnly', '~> 10.15.0' + pod 'Firebase/Core', '~> 10.15.0' + pod 'Firebase/Messaging', '~> 10.15.0' +end + +post_install do |installer| + assertDeploymentTarget(installer) +end diff --git a/src/app/home/home.page.ts b/src/app/home/home.page.ts index ef5a68312..afc72af6d 100644 --- a/src/app/home/home.page.ts +++ b/src/app/home/home.page.ts @@ -299,9 +299,9 @@ export class HomePage implements OnInit { App.addListener('appStateChange', ({ isActive }) => { if (isActive) { sendIntent.setRouteService(this.router) - /* this.checkSendIntentReceived(); */ + this.checkSendIntentReceived(); console.log('App is in the foreground'); - /* this.checkSendIntentReceived() */ + this.checkSendIntentReceived() } else { // The app is in the background. console.log('App is in the background'); diff --git a/src/app/pages/publications/new-publication/new-publication.page.ts b/src/app/pages/publications/new-publication/new-publication.page.ts index 0e3e7a611..4ea1a57ac 100644 --- a/src/app/pages/publications/new-publication/new-publication.page.ts +++ b/src/app/pages/publications/new-publication/new-publication.page.ts @@ -287,8 +287,11 @@ export class NewPublicationPage implements OnInit { this.filesSizeSum = this.filesSizeSum + element.size if (this.fileSizeToMB(this.filesSizeSum) <= 20) { + console.log('pass size verificartion') if (this.checkFileType.checkFileType(element.mimeType) == 'image' || this.checkFileType.checkFileType(element.mimeType) == 'video') { let resultUrl = decodeURIComponent(element.path); + console.log('pass type verification ', resultUrl) + try { Filesystem.readFile({ path: resultUrl }) diff --git a/src/app/services/checkFileType.service.ts b/src/app/services/checkFileType.service.ts index f97f5b2b6..a8038130c 100644 --- a/src/app/services/checkFileType.service.ts +++ b/src/app/services/checkFileType.service.ts @@ -18,7 +18,7 @@ export class checkFileTypeService { const imageExtensions = ['jpg', 'jpeg', 'png', 'gif', 'bmp','tiff','tif', 'image/jpg', 'image/jpeg', 'image/png', 'image/gif', 'image/bmp','image/tiff','image/tif', 'image/*']; // Add more if needed const videoExtensions = ['mp4', 'webm', 'mpg', 'mpeg', 'ogg', - 'video/mp4', 'video/webm', 'video/mpg', 'video/mpeg', 'video/ogg', 'video/*']; // Add more if needed + 'video/mp4', 'video/webm', 'video/mpg', 'video/mpeg', 'video/ogg','video/quicktime', 'video/*']; // Add more if needed // Check if it's an image if (imageExtensions.includes(lowerCaseType)) {