merge
@@ -3,7 +3,7 @@
|
|||||||
archiveVersion = 1;
|
archiveVersion = 1;
|
||||||
classes = {
|
classes = {
|
||||||
};
|
};
|
||||||
objectVersion = 52;
|
objectVersion = 54;
|
||||||
objects = {
|
objects = {
|
||||||
|
|
||||||
/* Begin PBXBuildFile section */
|
/* Begin PBXBuildFile section */
|
||||||
@@ -15,9 +15,36 @@
|
|||||||
504EC3121FED79650016851F /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 504EC3101FED79650016851F /* LaunchScreen.storyboard */; };
|
504EC3121FED79650016851F /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 504EC3101FED79650016851F /* LaunchScreen.storyboard */; };
|
||||||
50B271D11FEDC1A000F3C39B /* public in Resources */ = {isa = PBXBuildFile; fileRef = 50B271D01FEDC1A000F3C39B /* public */; };
|
50B271D11FEDC1A000F3C39B /* public in Resources */ = {isa = PBXBuildFile; fileRef = 50B271D01FEDC1A000F3C39B /* public */; };
|
||||||
A084ECDBA7D38E1E42DFC39D /* Pods_App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AF277DCFFFF123FFC6DF26C7 /* Pods_App.framework */; };
|
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 */; };
|
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 */
|
/* End PBXBuildFile section */
|
||||||
|
|
||||||
|
/* Begin PBXContainerItemProxy section */
|
||||||
|
A9D8C51E2B87B08300C95FBB /* PBXContainerItemProxy */ = {
|
||||||
|
isa = PBXContainerItemProxy;
|
||||||
|
containerPortal = 504EC2FC1FED79650016851F /* Project object */;
|
||||||
|
proxyType = 1;
|
||||||
|
remoteGlobalIDString = A9D8C5152B87B08300C95FBB;
|
||||||
|
remoteInfo = Share;
|
||||||
|
};
|
||||||
|
/* End PBXContainerItemProxy section */
|
||||||
|
|
||||||
|
/* Begin PBXCopyFilesBuildPhase section */
|
||||||
|
A9D8C5242B87B08300C95FBB /* Embed Foundation Extensions */ = {
|
||||||
|
isa = PBXCopyFilesBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
dstPath = "";
|
||||||
|
dstSubfolderSpec = 13;
|
||||||
|
files = (
|
||||||
|
A9D8C5202B87B08300C95FBB /* Share.appex in Embed Foundation Extensions */,
|
||||||
|
);
|
||||||
|
name = "Embed Foundation Extensions";
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
|
/* End PBXCopyFilesBuildPhase section */
|
||||||
|
|
||||||
/* Begin PBXFileReference section */
|
/* Begin PBXFileReference section */
|
||||||
2FAD9762203C412B000D30F8 /* config.xml */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = config.xml; sourceTree = "<group>"; };
|
2FAD9762203C412B000D30F8 /* config.xml */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = config.xml; sourceTree = "<group>"; };
|
||||||
50379B222058CBB4000EE86E /* capacitor.config.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = capacitor.config.json; sourceTree = "<group>"; };
|
50379B222058CBB4000EE86E /* capacitor.config.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = capacitor.config.json; sourceTree = "<group>"; };
|
||||||
@@ -28,15 +55,15 @@
|
|||||||
504EC3111FED79650016851F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
|
504EC3111FED79650016851F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
|
||||||
504EC3131FED79650016851F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
504EC3131FED79650016851F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||||
50B271D01FEDC1A000F3C39B /* public */ = {isa = PBXFileReference; lastKnownFileType = folder; path = public; sourceTree = "<group>"; };
|
50B271D01FEDC1A000F3C39B /* public */ = {isa = PBXFileReference; lastKnownFileType = folder; path = public; sourceTree = "<group>"; };
|
||||||
|
A9D8C5102B87AF2B00C95FBB /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = "GoogleService-Info.plist"; path = "../../../../Downloads/GoogleService-Info.plist"; sourceTree = "<group>"; };
|
||||||
|
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 = "<group>"; };
|
||||||
|
A9D8C51B2B87B08300C95FBB /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/MainInterface.storyboard; sourceTree = "<group>"; };
|
||||||
|
A9D8C51D2B87B08300C95FBB /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||||
|
A9D8C5252B888E8300C95FBB /* App.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = App.entitlements; sourceTree = "<group>"; };
|
||||||
|
A9D8C5262B888EAB00C95FBB /* Share.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Share.entitlements; sourceTree = "<group>"; };
|
||||||
AF277DCFFFF123FFC6DF26C7 /* Pods_App.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_App.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
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 = "<group>"; };
|
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 = "<group>"; };
|
||||||
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 = "<group>"; };
|
|
||||||
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 = "<group>"; };
|
|
||||||
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 = "<group>"; };
|
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 = "<group>"; };
|
||||||
/* End PBXFileReference section */
|
/* End PBXFileReference section */
|
||||||
|
|
||||||
@@ -49,17 +76,19 @@
|
|||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
};
|
};
|
||||||
|
A9D8C5132B87B08300C95FBB /* Frameworks */ = {
|
||||||
|
isa = PBXFrameworksBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
/* End PBXFrameworksBuildPhase section */
|
/* End PBXFrameworksBuildPhase section */
|
||||||
|
|
||||||
/* Begin PBXGroup section */
|
/* Begin PBXGroup section */
|
||||||
27E2DDA53C4D2A4D1A88CE4A /* Frameworks */ = {
|
27E2DDA53C4D2A4D1A88CE4A /* Frameworks */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
DA6FE4D52ACEF2DA006F1E0D /* FirebaseCore.framework */,
|
|
||||||
DA6FE4D62ACEF2DA006F1E0D /* FirebaseCoreInternal.framework */,
|
|
||||||
DA6FE4D72ACEF2DA006F1E0D /* FirebaseInstallations.framework */,
|
|
||||||
DA6FE4D82ACEF2DA006F1E0D /* FirebaseMessaging.framework */,
|
|
||||||
DA6FE4D02ACEEACD006F1E0D /* CapacitorPushNotifications.framework */,
|
|
||||||
AF277DCFFFF123FFC6DF26C7 /* Pods_App.framework */,
|
AF277DCFFFF123FFC6DF26C7 /* Pods_App.framework */,
|
||||||
);
|
);
|
||||||
name = Frameworks;
|
name = Frameworks;
|
||||||
@@ -69,6 +98,7 @@
|
|||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
504EC3061FED79650016851F /* App */,
|
504EC3061FED79650016851F /* App */,
|
||||||
|
A9D8C5172B87B08300C95FBB /* Share */,
|
||||||
504EC3051FED79650016851F /* Products */,
|
504EC3051FED79650016851F /* Products */,
|
||||||
7F8756D8B27F46E3366F6CEA /* Pods */,
|
7F8756D8B27F46E3366F6CEA /* Pods */,
|
||||||
27E2DDA53C4D2A4D1A88CE4A /* Frameworks */,
|
27E2DDA53C4D2A4D1A88CE4A /* Frameworks */,
|
||||||
@@ -79,6 +109,7 @@
|
|||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
504EC3041FED79650016851F /* App.app */,
|
504EC3041FED79650016851F /* App.app */,
|
||||||
|
A9D8C5162B87B08300C95FBB /* Share.appex */,
|
||||||
);
|
);
|
||||||
name = Products;
|
name = Products;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
@@ -86,10 +117,10 @@
|
|||||||
504EC3061FED79650016851F /* App */ = {
|
504EC3061FED79650016851F /* App */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
DA8422AF2AD03FBE00AC9118 /* App.entitlements */,
|
A9D8C5252B888E8300C95FBB /* App.entitlements */,
|
||||||
|
A9D8C5102B87AF2B00C95FBB /* GoogleService-Info.plist */,
|
||||||
50379B222058CBB4000EE86E /* capacitor.config.json */,
|
50379B222058CBB4000EE86E /* capacitor.config.json */,
|
||||||
504EC3071FED79650016851F /* AppDelegate.swift */,
|
504EC3071FED79650016851F /* AppDelegate.swift */,
|
||||||
DAD1AB3D2ACF39DE001D9958 /* GoogleService-Info.plist */,
|
|
||||||
504EC30B1FED79650016851F /* Main.storyboard */,
|
504EC30B1FED79650016851F /* Main.storyboard */,
|
||||||
504EC30E1FED79650016851F /* Assets.xcassets */,
|
504EC30E1FED79650016851F /* Assets.xcassets */,
|
||||||
504EC3101FED79650016851F /* LaunchScreen.storyboard */,
|
504EC3101FED79650016851F /* LaunchScreen.storyboard */,
|
||||||
@@ -109,6 +140,17 @@
|
|||||||
name = Pods;
|
name = Pods;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
|
A9D8C5172B87B08300C95FBB /* Share */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
A9D8C5262B888EAB00C95FBB /* Share.entitlements */,
|
||||||
|
A9D8C5182B87B08300C95FBB /* ShareViewController.swift */,
|
||||||
|
A9D8C51A2B87B08300C95FBB /* MainInterface.storyboard */,
|
||||||
|
A9D8C51D2B87B08300C95FBB /* Info.plist */,
|
||||||
|
);
|
||||||
|
path = Share;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
/* End PBXGroup section */
|
/* End PBXGroup section */
|
||||||
|
|
||||||
/* Begin PBXNativeTarget section */
|
/* Begin PBXNativeTarget section */
|
||||||
@@ -121,30 +163,53 @@
|
|||||||
504EC3011FED79650016851F /* Frameworks */,
|
504EC3011FED79650016851F /* Frameworks */,
|
||||||
504EC3021FED79650016851F /* Resources */,
|
504EC3021FED79650016851F /* Resources */,
|
||||||
9592DBEFFC6D2A0C8D5DEB22 /* [CP] Embed Pods Frameworks */,
|
9592DBEFFC6D2A0C8D5DEB22 /* [CP] Embed Pods Frameworks */,
|
||||||
5B7AACB22ECDCEAA343DC840 /* [CP] Copy Pods Resources */,
|
AA1461F6B6F9477889FFC1DD /* [CP] Copy Pods Resources */,
|
||||||
|
A9D8C5242B87B08300C95FBB /* Embed Foundation Extensions */,
|
||||||
);
|
);
|
||||||
buildRules = (
|
buildRules = (
|
||||||
);
|
);
|
||||||
dependencies = (
|
dependencies = (
|
||||||
|
A9D8C51F2B87B08300C95FBB /* PBXTargetDependency */,
|
||||||
);
|
);
|
||||||
name = App;
|
name = App;
|
||||||
productName = App;
|
productName = App;
|
||||||
productReference = 504EC3041FED79650016851F /* App.app */;
|
productReference = 504EC3041FED79650016851F /* App.app */;
|
||||||
productType = "com.apple.product-type.application";
|
productType = "com.apple.product-type.application";
|
||||||
};
|
};
|
||||||
|
A9D8C5152B87B08300C95FBB /* Share */ = {
|
||||||
|
isa = PBXNativeTarget;
|
||||||
|
buildConfigurationList = A9D8C5212B87B08300C95FBB /* Build configuration list for PBXNativeTarget "Share" */;
|
||||||
|
buildPhases = (
|
||||||
|
A9D8C5122B87B08300C95FBB /* Sources */,
|
||||||
|
A9D8C5132B87B08300C95FBB /* Frameworks */,
|
||||||
|
A9D8C5142B87B08300C95FBB /* Resources */,
|
||||||
|
);
|
||||||
|
buildRules = (
|
||||||
|
);
|
||||||
|
dependencies = (
|
||||||
|
);
|
||||||
|
name = Share;
|
||||||
|
productName = Share;
|
||||||
|
productReference = A9D8C5162B87B08300C95FBB /* Share.appex */;
|
||||||
|
productType = "com.apple.product-type.app-extension";
|
||||||
|
};
|
||||||
/* End PBXNativeTarget section */
|
/* End PBXNativeTarget section */
|
||||||
|
|
||||||
/* Begin PBXProject section */
|
/* Begin PBXProject section */
|
||||||
504EC2FC1FED79650016851F /* Project object */ = {
|
504EC2FC1FED79650016851F /* Project object */ = {
|
||||||
isa = PBXProject;
|
isa = PBXProject;
|
||||||
attributes = {
|
attributes = {
|
||||||
LastSwiftUpdateCheck = 0920;
|
BuildIndependentTargetsInParallel = YES;
|
||||||
LastUpgradeCheck = 1420;
|
LastSwiftUpdateCheck = 1520;
|
||||||
|
LastUpgradeCheck = 1520;
|
||||||
TargetAttributes = {
|
TargetAttributes = {
|
||||||
504EC3031FED79650016851F = {
|
504EC3031FED79650016851F = {
|
||||||
CreatedOnToolsVersion = 9.2;
|
CreatedOnToolsVersion = 9.2;
|
||||||
LastSwiftMigration = 1100;
|
LastSwiftMigration = 1100;
|
||||||
ProvisioningStyle = Manual;
|
ProvisioningStyle = Automatic;
|
||||||
|
};
|
||||||
|
A9D8C5152B87B08300C95FBB = {
|
||||||
|
CreatedOnToolsVersion = 15.2;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -157,14 +222,12 @@
|
|||||||
Base,
|
Base,
|
||||||
);
|
);
|
||||||
mainGroup = 504EC2FB1FED79650016851F;
|
mainGroup = 504EC2FB1FED79650016851F;
|
||||||
packageReferences = (
|
|
||||||
DA6FE4D42ACEEC01006F1E0D /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */,
|
|
||||||
);
|
|
||||||
productRefGroup = 504EC3051FED79650016851F /* Products */;
|
productRefGroup = 504EC3051FED79650016851F /* Products */;
|
||||||
projectDirPath = "";
|
projectDirPath = "";
|
||||||
projectRoot = "";
|
projectRoot = "";
|
||||||
targets = (
|
targets = (
|
||||||
504EC3031FED79650016851F /* App */,
|
504EC3031FED79650016851F /* App */,
|
||||||
|
A9D8C5152B87B08300C95FBB /* Share */,
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
/* End PBXProject section */
|
/* End PBXProject section */
|
||||||
@@ -180,31 +243,24 @@
|
|||||||
50379B232058CBB4000EE86E /* capacitor.config.json in Resources */,
|
50379B232058CBB4000EE86E /* capacitor.config.json in Resources */,
|
||||||
504EC30D1FED79650016851F /* Main.storyboard in Resources */,
|
504EC30D1FED79650016851F /* Main.storyboard in Resources */,
|
||||||
2FAD9763203C412B000D30F8 /* config.xml in Resources */,
|
2FAD9763203C412B000D30F8 /* config.xml in Resources */,
|
||||||
DAD1AB3F2ACF3A7F001D9958 /* GoogleService-Info.plist in Resources */,
|
A9D8C5112B87AF2B00C95FBB /* GoogleService-Info.plist in Resources */,
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
|
A9D8C5142B87B08300C95FBB /* Resources */ = {
|
||||||
|
isa = PBXResourcesBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
A9D8C51C2B87B08300C95FBB /* MainInterface.storyboard in Resources */,
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
};
|
};
|
||||||
/* End PBXResourcesBuildPhase section */
|
/* End PBXResourcesBuildPhase section */
|
||||||
|
|
||||||
/* Begin PBXShellScriptBuildPhase 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 */ = {
|
6634F4EFEBD30273BCE97C65 /* [CP] Check Pods Manifest.lock */ = {
|
||||||
isa = PBXShellScriptBuildPhase;
|
isa = PBXShellScriptBuildPhase;
|
||||||
buildActionMask = 8;
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
);
|
);
|
||||||
inputPaths = (
|
inputPaths = (
|
||||||
@@ -215,14 +271,14 @@
|
|||||||
outputPaths = (
|
outputPaths = (
|
||||||
"$(DERIVED_FILE_DIR)/Pods-App-checkManifestLockResult.txt",
|
"$(DERIVED_FILE_DIR)/Pods-App-checkManifestLockResult.txt",
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 1;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
shellPath = /bin/sh;
|
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";
|
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;
|
showEnvVarsInLog = 0;
|
||||||
};
|
};
|
||||||
9592DBEFFC6D2A0C8D5DEB22 /* [CP] Embed Pods Frameworks */ = {
|
9592DBEFFC6D2A0C8D5DEB22 /* [CP] Embed Pods Frameworks */ = {
|
||||||
isa = PBXShellScriptBuildPhase;
|
isa = PBXShellScriptBuildPhase;
|
||||||
buildActionMask = 8;
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
);
|
);
|
||||||
inputPaths = (
|
inputPaths = (
|
||||||
@@ -230,11 +286,26 @@
|
|||||||
name = "[CP] Embed Pods Frameworks";
|
name = "[CP] Embed Pods Frameworks";
|
||||||
outputPaths = (
|
outputPaths = (
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 1;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
shellPath = /bin/sh;
|
shellPath = /bin/sh;
|
||||||
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-App/Pods-App-frameworks.sh\"\n";
|
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-App/Pods-App-frameworks.sh\"\n";
|
||||||
showEnvVarsInLog = 0;
|
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 */
|
/* End PBXShellScriptBuildPhase section */
|
||||||
|
|
||||||
/* Begin PBXSourcesBuildPhase section */
|
/* Begin PBXSourcesBuildPhase section */
|
||||||
@@ -246,8 +317,24 @@
|
|||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
};
|
};
|
||||||
|
A9D8C5122B87B08300C95FBB /* Sources */ = {
|
||||||
|
isa = PBXSourcesBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
A9D8C5192B87B08300C95FBB /* ShareViewController.swift in Sources */,
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
/* End PBXSourcesBuildPhase section */
|
/* End PBXSourcesBuildPhase section */
|
||||||
|
|
||||||
|
/* Begin PBXTargetDependency section */
|
||||||
|
A9D8C51F2B87B08300C95FBB /* PBXTargetDependency */ = {
|
||||||
|
isa = PBXTargetDependency;
|
||||||
|
target = A9D8C5152B87B08300C95FBB /* Share */;
|
||||||
|
targetProxy = A9D8C51E2B87B08300C95FBB /* PBXContainerItemProxy */;
|
||||||
|
};
|
||||||
|
/* End PBXTargetDependency section */
|
||||||
|
|
||||||
/* Begin PBXVariantGroup section */
|
/* Begin PBXVariantGroup section */
|
||||||
504EC30B1FED79650016851F /* Main.storyboard */ = {
|
504EC30B1FED79650016851F /* Main.storyboard */ = {
|
||||||
isa = PBXVariantGroup;
|
isa = PBXVariantGroup;
|
||||||
@@ -265,6 +352,14 @@
|
|||||||
name = LaunchScreen.storyboard;
|
name = LaunchScreen.storyboard;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
|
A9D8C51A2B87B08300C95FBB /* MainInterface.storyboard */ = {
|
||||||
|
isa = PBXVariantGroup;
|
||||||
|
children = (
|
||||||
|
A9D8C51B2B87B08300C95FBB /* Base */,
|
||||||
|
);
|
||||||
|
name = MainInterface.storyboard;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
/* End PBXVariantGroup section */
|
/* End PBXVariantGroup section */
|
||||||
|
|
||||||
/* Begin XCBuildConfiguration section */
|
/* Begin XCBuildConfiguration section */
|
||||||
@@ -272,6 +367,7 @@
|
|||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||||
|
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
|
||||||
CLANG_ANALYZER_NONNULL = YES;
|
CLANG_ANALYZER_NONNULL = YES;
|
||||||
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
||||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
|
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
|
||||||
@@ -305,6 +401,7 @@
|
|||||||
DEBUG_INFORMATION_FORMAT = dwarf;
|
DEBUG_INFORMATION_FORMAT = dwarf;
|
||||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||||
ENABLE_TESTABILITY = YES;
|
ENABLE_TESTABILITY = YES;
|
||||||
|
ENABLE_USER_SCRIPT_SANDBOXING = YES;
|
||||||
GCC_C_LANGUAGE_STANDARD = gnu11;
|
GCC_C_LANGUAGE_STANDARD = gnu11;
|
||||||
GCC_DYNAMIC_NO_PIC = NO;
|
GCC_DYNAMIC_NO_PIC = NO;
|
||||||
GCC_NO_COMMON_BLOCKS = YES;
|
GCC_NO_COMMON_BLOCKS = YES;
|
||||||
@@ -332,6 +429,7 @@
|
|||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||||
|
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
|
||||||
CLANG_ANALYZER_NONNULL = YES;
|
CLANG_ANALYZER_NONNULL = YES;
|
||||||
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
||||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
|
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
|
||||||
@@ -365,6 +463,7 @@
|
|||||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||||
ENABLE_NS_ASSERTIONS = NO;
|
ENABLE_NS_ASSERTIONS = NO;
|
||||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||||
|
ENABLE_USER_SCRIPT_SANDBOXING = YES;
|
||||||
GCC_C_LANGUAGE_STANDARD = gnu11;
|
GCC_C_LANGUAGE_STANDARD = gnu11;
|
||||||
GCC_NO_COMMON_BLOCKS = YES;
|
GCC_NO_COMMON_BLOCKS = YES;
|
||||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||||
@@ -386,25 +485,23 @@
|
|||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
baseConfigurationReference = FC68EB0AF532CFC21C3344DD /* Pods-App.debug.xcconfig */;
|
baseConfigurationReference = FC68EB0AF532CFC21C3344DD /* Pods-App.debug.xcconfig */;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
|
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
|
||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
CODE_SIGN_ENTITLEMENTS = App/App.entitlements;
|
CODE_SIGN_ENTITLEMENTS = App/App.entitlements;
|
||||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
|
CODE_SIGN_STYLE = Automatic;
|
||||||
CODE_SIGN_STYLE = Manual;
|
CURRENT_PROJECT_VERSION = 3;
|
||||||
CURRENT_PROJECT_VERSION = 65;
|
DEVELOPMENT_TEAM = 94BRNM2LSS;
|
||||||
DEVELOPMENT_TEAM = "";
|
ENABLE_USER_SCRIPT_SANDBOXING = NO;
|
||||||
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 94BRNM2LSS;
|
|
||||||
INFOPLIST_FILE = App/Info.plist;
|
INFOPLIST_FILE = App/Info.plist;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 17.0;
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
);
|
);
|
||||||
MARKETING_VERSION = 2.0.25;
|
MARKETING_VERSION = 1.0;
|
||||||
OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" \"-DDEBUG\"";
|
OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" \"-DDEBUG\"";
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.gpr.gabinetedigital.teste;
|
PRODUCT_BUNDLE_IDENTIFIER = com.gpr.gabinetedigital.teste;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
|
||||||
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = GabineteProfile;
|
|
||||||
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
|
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
|
||||||
SWIFT_VERSION = 5.0;
|
SWIFT_VERSION = 5.0;
|
||||||
TARGETED_DEVICE_FAMILY = "1,2";
|
TARGETED_DEVICE_FAMILY = "1,2";
|
||||||
@@ -415,30 +512,96 @@
|
|||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
baseConfigurationReference = AF51FD2D460BCFE21FA515B2 /* Pods-App.release.xcconfig */;
|
baseConfigurationReference = AF51FD2D460BCFE21FA515B2 /* Pods-App.release.xcconfig */;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
|
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
|
||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
CODE_SIGN_ENTITLEMENTS = App/App.entitlements;
|
CODE_SIGN_ENTITLEMENTS = App/App.entitlements;
|
||||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
|
CODE_SIGN_STYLE = Automatic;
|
||||||
CODE_SIGN_STYLE = Manual;
|
CURRENT_PROJECT_VERSION = 3;
|
||||||
CURRENT_PROJECT_VERSION = 65;
|
DEVELOPMENT_TEAM = 94BRNM2LSS;
|
||||||
DEVELOPMENT_TEAM = "";
|
ENABLE_USER_SCRIPT_SANDBOXING = NO;
|
||||||
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 94BRNM2LSS;
|
|
||||||
INFOPLIST_FILE = App/Info.plist;
|
INFOPLIST_FILE = App/Info.plist;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 17.0;
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
);
|
);
|
||||||
MARKETING_VERSION = 2.0.25;
|
MARKETING_VERSION = 1.0;
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.gpr.gabinetedigital.teste;
|
PRODUCT_BUNDLE_IDENTIFIER = com.gpr.gabinetedigital.teste;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
|
||||||
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = GabineteProfile;
|
|
||||||
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "";
|
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "";
|
||||||
SWIFT_VERSION = 5.0;
|
SWIFT_VERSION = 5.0;
|
||||||
TARGETED_DEVICE_FAMILY = "1,2";
|
TARGETED_DEVICE_FAMILY = "1,2";
|
||||||
};
|
};
|
||||||
name = Release;
|
name = Release;
|
||||||
};
|
};
|
||||||
|
A9D8C5222B87B08300C95FBB /* Debug */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
|
||||||
|
CLANG_ENABLE_OBJC_WEAK = YES;
|
||||||
|
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 = Share/Info.plist;
|
||||||
|
INFOPLIST_KEY_CFBundleDisplayName = Share;
|
||||||
|
INFOPLIST_KEY_NSHumanReadableCopyright = "";
|
||||||
|
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.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;
|
||||||
|
};
|
||||||
|
A9D8C5232B87B08300C95FBB /* Release */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
|
||||||
|
CLANG_ENABLE_OBJC_WEAK = YES;
|
||||||
|
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 = Share/Info.plist;
|
||||||
|
INFOPLIST_KEY_CFBundleDisplayName = Share;
|
||||||
|
INFOPLIST_KEY_NSHumanReadableCopyright = "";
|
||||||
|
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.Share;
|
||||||
|
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 */
|
/* End XCBuildConfiguration section */
|
||||||
|
|
||||||
/* Begin XCConfigurationList section */
|
/* Begin XCConfigurationList section */
|
||||||
@@ -460,18 +623,16 @@
|
|||||||
defaultConfigurationIsVisible = 0;
|
defaultConfigurationIsVisible = 0;
|
||||||
defaultConfigurationName = Release;
|
defaultConfigurationName = Release;
|
||||||
};
|
};
|
||||||
/* End XCConfigurationList section */
|
A9D8C5212B87B08300C95FBB /* Build configuration list for PBXNativeTarget "Share" */ = {
|
||||||
|
isa = XCConfigurationList;
|
||||||
/* Begin XCRemoteSwiftPackageReference section */
|
buildConfigurations = (
|
||||||
DA6FE4D42ACEEC01006F1E0D /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */ = {
|
A9D8C5222B87B08300C95FBB /* Debug */,
|
||||||
isa = XCRemoteSwiftPackageReference;
|
A9D8C5232B87B08300C95FBB /* Release */,
|
||||||
repositoryURL = "https://github.com/firebase/firebase-ios-sdk";
|
);
|
||||||
requirement = {
|
defaultConfigurationIsVisible = 0;
|
||||||
branch = master;
|
defaultConfigurationName = Release;
|
||||||
kind = branch;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
/* End XCRemoteSwiftPackageReference section */
|
/* End XCConfigurationList section */
|
||||||
};
|
};
|
||||||
rootObject = 504EC2FC1FED79650016851F /* Project object */;
|
rootObject = 504EC2FC1FED79650016851F /* Project object */;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
|
||||||
}
|
|
||||||
@@ -1,11 +1,26 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<Scheme
|
<Scheme
|
||||||
LastUpgradeVersion = "1420"
|
LastUpgradeVersion = "1520"
|
||||||
version = "1.3">
|
wasCreatedForAppExtension = "YES"
|
||||||
|
version = "2.0">
|
||||||
<BuildAction
|
<BuildAction
|
||||||
parallelizeBuildables = "YES"
|
parallelizeBuildables = "YES"
|
||||||
buildImplicitDependencies = "YES">
|
buildImplicitDependencies = "YES">
|
||||||
<BuildActionEntries>
|
<BuildActionEntries>
|
||||||
|
<BuildActionEntry
|
||||||
|
buildForTesting = "YES"
|
||||||
|
buildForRunning = "YES"
|
||||||
|
buildForProfiling = "YES"
|
||||||
|
buildForArchiving = "YES"
|
||||||
|
buildForAnalyzing = "YES">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "A9D8C5152B87B08300C95FBB"
|
||||||
|
BuildableName = "Share.appex"
|
||||||
|
BlueprintName = "Share"
|
||||||
|
ReferencedContainer = "container:App.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildActionEntry>
|
||||||
<BuildActionEntry
|
<BuildActionEntry
|
||||||
buildForTesting = "YES"
|
buildForTesting = "YES"
|
||||||
buildForRunning = "YES"
|
buildForRunning = "YES"
|
||||||
@@ -26,22 +41,27 @@
|
|||||||
buildConfiguration = "Debug"
|
buildConfiguration = "Debug"
|
||||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||||
shouldUseLaunchSchemeArgsEnv = "YES">
|
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||||
<Testables>
|
shouldAutocreateTestPlan = "YES">
|
||||||
</Testables>
|
|
||||||
</TestAction>
|
</TestAction>
|
||||||
<LaunchAction
|
<LaunchAction
|
||||||
buildConfiguration = "Debug"
|
buildConfiguration = "Debug"
|
||||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
selectedDebuggerIdentifier = ""
|
||||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
selectedLauncherIdentifier = "Xcode.IDEFoundation.Launcher.PosixSpawn"
|
||||||
launchStyle = "0"
|
launchStyle = "0"
|
||||||
|
askForAppToLaunch = "Yes"
|
||||||
useCustomWorkingDirectory = "NO"
|
useCustomWorkingDirectory = "NO"
|
||||||
ignoresPersistentStateOnLaunch = "NO"
|
ignoresPersistentStateOnLaunch = "NO"
|
||||||
debugDocumentVersioning = "YES"
|
debugDocumentVersioning = "YES"
|
||||||
debugServiceExtension = "internal"
|
debugServiceExtension = "internal"
|
||||||
allowLocationSimulation = "YES">
|
allowLocationSimulation = "YES"
|
||||||
<BuildableProductRunnable
|
launchAutomaticallySubstyle = "2">
|
||||||
runnableDebuggingMode = "0">
|
<RemoteRunnable
|
||||||
|
runnableDebuggingMode = "0"
|
||||||
|
BundleIdentifier = "com.gpr.gabinetedigital.teste"
|
||||||
|
RemotePath = "/var/containers/Bundle/Application/4DABC741-6955-4CE4-ACA6-D23E375EC4FD/App.app">
|
||||||
|
</RemoteRunnable>
|
||||||
|
<MacroExpansion>
|
||||||
<BuildableReference
|
<BuildableReference
|
||||||
BuildableIdentifier = "primary"
|
BuildableIdentifier = "primary"
|
||||||
BlueprintIdentifier = "504EC3031FED79650016851F"
|
BlueprintIdentifier = "504EC3031FED79650016851F"
|
||||||
@@ -49,14 +69,16 @@
|
|||||||
BlueprintName = "App"
|
BlueprintName = "App"
|
||||||
ReferencedContainer = "container:App.xcodeproj">
|
ReferencedContainer = "container:App.xcodeproj">
|
||||||
</BuildableReference>
|
</BuildableReference>
|
||||||
</BuildableProductRunnable>
|
</MacroExpansion>
|
||||||
</LaunchAction>
|
</LaunchAction>
|
||||||
<ProfileAction
|
<ProfileAction
|
||||||
buildConfiguration = "Release"
|
buildConfiguration = "Release"
|
||||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||||
savedToolIdentifier = ""
|
savedToolIdentifier = ""
|
||||||
useCustomWorkingDirectory = "NO"
|
useCustomWorkingDirectory = "NO"
|
||||||
debugDocumentVersioning = "YES">
|
debugDocumentVersioning = "YES"
|
||||||
|
askForAppToLaunch = "Yes"
|
||||||
|
launchAutomaticallySubstyle = "2">
|
||||||
<BuildableProductRunnable
|
<BuildableProductRunnable
|
||||||
runnableDebuggingMode = "0">
|
runnableDebuggingMode = "0">
|
||||||
<BuildableReference
|
<BuildableReference
|
||||||
@@ -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
|
|
||||||
}
|
|
||||||
@@ -2,7 +2,9 @@
|
|||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
<dict>
|
<dict>
|
||||||
<key>aps-environment</key>
|
<key>com.apple.security.application-groups</key>
|
||||||
<string>development</string>
|
<array>
|
||||||
|
<string>group.gabinete</string>
|
||||||
|
</array>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|||||||
@@ -1,80 +1,82 @@
|
|||||||
import UIKit
|
import UIKit
|
||||||
import Capacitor
|
import Capacitor
|
||||||
import FirebaseCore
|
import SendIntent
|
||||||
import Firebase
|
|
||||||
|
|
||||||
@UIApplicationMain
|
@UIApplicationMain
|
||||||
class AppDelegate: UIResponder, UIApplicationDelegate {
|
class AppDelegate: UIResponder, UIApplicationDelegate {
|
||||||
|
|
||||||
var window: UIWindow?
|
var window: UIWindow?
|
||||||
|
let store = ShareStore.store
|
||||||
|
|
||||||
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
|
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
|
||||||
// Override point for customization after application launch.
|
// 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
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
func applicationWillResignActive(_ application: UIApplication) {
|
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.
|
// Sent when the application is about to move from active to inactive state.
|
||||||
// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
|
// 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) {
|
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.
|
// Use this method to release shared resources, save user data, invalidate timers,
|
||||||
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
|
// 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) {
|
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) {
|
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) {
|
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 {
|
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
|
||||||
// Called when the app was launched with a url. Feel free to add additional processing here,
|
var success = true
|
||||||
// but if you want the App API to support tracking app url opens, make sure to keep this call
|
|
||||||
return ApplicationDelegateProxy.shared.application(app, open: url, options: options)
|
|
||||||
}
|
|
||||||
|
|
||||||
func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {
|
if CAPBridge.handleOpenUrl(url, options) {
|
||||||
// Called when the app was launched with an activity, including Universal Links.
|
success = ApplicationDelegateProxy.shared.application(app, open: url, options: options)
|
||||||
// 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) {
|
guard let components = NSURLComponents(url: url, resolvingAgainstBaseURL: true),
|
||||||
NotificationCenter.default.post(name: .capacitorDidRegisterForRemoteNotifications, object: deviceToken)
|
let params = components.queryItems else {
|
||||||
|
return false
|
||||||
Messaging.messaging().apnsToken = deviceToken
|
}
|
||||||
}
|
|
||||||
|
|
||||||
func application(_ application: UIApplication, didFailToRegisterForRemoteNotificationsWithError error: Error) {
|
let titles = params.filter { $0.name == "title" }
|
||||||
NotificationCenter.default.post(name: .capacitorDidFailToRegisterForRemoteNotifications, object: error)
|
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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 148 KiB |
|
Before Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 5.1 KiB |
|
Before Width: | Height: | Size: 5.5 KiB |
|
Before Width: | Height: | Size: 6.3 KiB |
|
Before Width: | Height: | Size: 6.8 KiB |
|
Before Width: | Height: | Size: 625 B |
|
Before Width: | Height: | Size: 7.6 KiB |
|
Before Width: | Height: | Size: 7.9 KiB |
|
Before Width: | Height: | Size: 8.4 KiB |
|
Before Width: | Height: | Size: 9.3 KiB |
|
Before Width: | Height: | Size: 752 B |
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 49 KiB |
|
Before Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 3.8 KiB |
|
After Width: | Height: | Size: 774 B |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 5.3 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 4.7 KiB |
|
After Width: | Height: | Size: 4.7 KiB |
|
After Width: | Height: | Size: 7.8 KiB |
|
After Width: | Height: | Size: 108 KiB |
|
After Width: | Height: | Size: 8.1 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 4.4 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 11 KiB |
@@ -1,354 +1,116 @@
|
|||||||
{
|
{
|
||||||
"images" : [
|
"images" : [
|
||||||
{
|
{
|
||||||
"filename" : "40.png",
|
"size" : "20x20",
|
||||||
"idiom" : "iphone",
|
"idiom" : "iphone",
|
||||||
"scale" : "2x",
|
"filename" : "AppIcon-20x20@2x.png",
|
||||||
"size" : "20x20"
|
"scale" : "2x"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "60.png",
|
"size" : "20x20",
|
||||||
"idiom" : "iphone",
|
"idiom" : "iphone",
|
||||||
"scale" : "3x",
|
"filename" : "AppIcon-20x20@3x.png",
|
||||||
"size" : "20x20"
|
"scale" : "3x"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "29.png",
|
"size" : "29x29",
|
||||||
"idiom" : "iphone",
|
"idiom" : "iphone",
|
||||||
"scale" : "1x",
|
"filename" : "AppIcon-29x29@2x-1.png",
|
||||||
"size" : "29x29"
|
"scale" : "2x"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "58.png",
|
"size" : "29x29",
|
||||||
"idiom" : "iphone",
|
"idiom" : "iphone",
|
||||||
"scale" : "2x",
|
"filename" : "AppIcon-29x29@3x.png",
|
||||||
"size" : "29x29"
|
"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",
|
"size" : "40x40",
|
||||||
"subtype" : "38mm"
|
"idiom" : "iphone",
|
||||||
|
"filename" : "AppIcon-40x40@2x.png",
|
||||||
|
"scale" : "2x"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "88.png",
|
"size" : "40x40",
|
||||||
"idiom" : "watch",
|
"idiom" : "iphone",
|
||||||
"role" : "appLauncher",
|
"filename" : "AppIcon-40x40@3x.png",
|
||||||
"scale" : "2x",
|
"scale" : "3x"
|
||||||
"size" : "44x44",
|
|
||||||
"subtype" : "40mm"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "92.png",
|
"size" : "60x60",
|
||||||
"idiom" : "watch",
|
"idiom" : "iphone",
|
||||||
"role" : "appLauncher",
|
"filename" : "AppIcon-60x60@2x.png",
|
||||||
"scale" : "2x",
|
"scale" : "2x"
|
||||||
"size" : "46x46",
|
|
||||||
"subtype" : "41mm"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "100.png",
|
"size" : "60x60",
|
||||||
"idiom" : "watch",
|
"idiom" : "iphone",
|
||||||
"role" : "appLauncher",
|
"filename" : "AppIcon-60x60@3x.png",
|
||||||
"scale" : "2x",
|
"scale" : "3x"
|
||||||
"size" : "50x50",
|
|
||||||
"subtype" : "44mm"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"idiom" : "watch",
|
"size" : "20x20",
|
||||||
"role" : "appLauncher",
|
"idiom" : "ipad",
|
||||||
"scale" : "2x",
|
"filename" : "AppIcon-20x20@1x.png",
|
||||||
"size" : "51x51",
|
"scale" : "1x"
|
||||||
"subtype" : "45mm"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"idiom" : "watch",
|
"size" : "20x20",
|
||||||
"role" : "appLauncher",
|
"idiom" : "ipad",
|
||||||
"scale" : "2x",
|
"filename" : "AppIcon-20x20@2x-1.png",
|
||||||
"size" : "54x54",
|
"scale" : "2x"
|
||||||
"subtype" : "49mm"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "172.png",
|
"size" : "29x29",
|
||||||
"idiom" : "watch",
|
"idiom" : "ipad",
|
||||||
"role" : "quickLook",
|
"filename" : "AppIcon-29x29@1x.png",
|
||||||
"scale" : "2x",
|
"scale" : "1x"
|
||||||
"size" : "86x86",
|
|
||||||
"subtype" : "38mm"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "196.png",
|
"size" : "29x29",
|
||||||
"idiom" : "watch",
|
"idiom" : "ipad",
|
||||||
"role" : "quickLook",
|
"filename" : "AppIcon-29x29@2x.png",
|
||||||
"scale" : "2x",
|
"scale" : "2x"
|
||||||
"size" : "98x98",
|
|
||||||
"subtype" : "42mm"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "216.png",
|
"size" : "40x40",
|
||||||
"idiom" : "watch",
|
"idiom" : "ipad",
|
||||||
"role" : "quickLook",
|
"filename" : "AppIcon-40x40@1x.png",
|
||||||
"scale" : "2x",
|
"scale" : "1x"
|
||||||
"size" : "108x108",
|
|
||||||
"subtype" : "44mm"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"idiom" : "watch",
|
"size" : "40x40",
|
||||||
"role" : "quickLook",
|
"idiom" : "ipad",
|
||||||
"scale" : "2x",
|
"filename" : "AppIcon-40x40@2x-1.png",
|
||||||
"size" : "117x117",
|
"scale" : "2x"
|
||||||
"subtype" : "45mm"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"idiom" : "watch",
|
"size" : "76x76",
|
||||||
"role" : "quickLook",
|
"idiom" : "ipad",
|
||||||
"scale" : "2x",
|
"filename" : "AppIcon-76x76@1x.png",
|
||||||
"size" : "129x129",
|
"scale" : "1x"
|
||||||
"subtype" : "49mm"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "1024.png",
|
"size" : "76x76",
|
||||||
"idiom" : "watch-marketing",
|
"idiom" : "ipad",
|
||||||
"scale" : "1x",
|
"filename" : "AppIcon-76x76@2x.png",
|
||||||
"size" : "1024x1024"
|
"scale" : "2x"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "102.png",
|
"size" : "83.5x83.5",
|
||||||
"idiom" : "watch",
|
"idiom" : "ipad",
|
||||||
"role" : "appLauncher",
|
"filename" : "AppIcon-83.5x83.5@2x.png",
|
||||||
"scale" : "2x",
|
"scale" : "2x"
|
||||||
"size" : "45x45",
|
},
|
||||||
"subtype" : "41mm"
|
{
|
||||||
|
"size" : "1024x1024",
|
||||||
|
"idiom" : "ios-marketing",
|
||||||
|
"filename" : "AppIcon-512@2x.png",
|
||||||
|
"scale" : "1x"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"info" : {
|
"info" : {
|
||||||
"author" : "xcode",
|
"version" : 1,
|
||||||
"version" : 1
|
"author" : "xcode"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
||||||
<plist version="1.0">
|
|
||||||
<dict>
|
|
||||||
<key>CLIENT_ID</key>
|
|
||||||
<string>800733765231-5da370m1mntjk7cg8cc2d331sp8cj91d.apps.googleusercontent.com</string>
|
|
||||||
<key>REVERSED_CLIENT_ID</key>
|
|
||||||
<string>com.googleusercontent.apps.800733765231-5da370m1mntjk7cg8cc2d331sp8cj91d</string>
|
|
||||||
<key>API_KEY</key>
|
|
||||||
<string>AIzaSyCDW6bjQSiSAVCYhai7nFV1wWnLMV_kBeM</string>
|
|
||||||
<key>GCM_SENDER_ID</key>
|
|
||||||
<string>800733765231</string>
|
|
||||||
<key>PLIST_VERSION</key>
|
|
||||||
<string>1</string>
|
|
||||||
<key>BUNDLE_ID</key>
|
|
||||||
<string>com.gpr.gabinetedigital.teste</string>
|
|
||||||
<key>PROJECT_ID</key>
|
|
||||||
<string>gabinete-digital-2020</string>
|
|
||||||
<key>STORAGE_BUCKET</key>
|
|
||||||
<string>gabinete-digital-2020.appspot.com</string>
|
|
||||||
<key>IS_ADS_ENABLED</key>
|
|
||||||
<false></false>
|
|
||||||
<key>IS_ANALYTICS_ENABLED</key>
|
|
||||||
<false></false>
|
|
||||||
<key>IS_APPINVITE_ENABLED</key>
|
|
||||||
<true></true>
|
|
||||||
<key>IS_GCM_ENABLED</key>
|
|
||||||
<true></true>
|
|
||||||
<key>IS_SIGNIN_ENABLED</key>
|
|
||||||
<true></true>
|
|
||||||
<key>GOOGLE_APP_ID</key>
|
|
||||||
<string>1:800733765231:ios:af4d35631d70473213779a</string>
|
|
||||||
<key>DATABASE_URL</key>
|
|
||||||
<string>https://gabinete-digital-2020.firebaseio.com</string>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
|
||||||
@@ -2,14 +2,8 @@
|
|||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
<dict>
|
<dict>
|
||||||
<key>FirebaseAppDelegateProxyEnabled</key>
|
<key></key>
|
||||||
<true/>
|
<string></string>
|
||||||
<key>UNUserNotificationCenterDelegate</key>
|
|
||||||
<string>YourApp.NotificationDelegate</string>
|
|
||||||
<key>UIBackgroundModes</key>
|
|
||||||
<array>
|
|
||||||
<string>remote-notification</string>
|
|
||||||
</array>
|
|
||||||
<key>CFBundleDevelopmentRegion</key>
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
<string>en</string>
|
<string>en</string>
|
||||||
<key>CFBundleDisplayName</key>
|
<key>CFBundleDisplayName</key>
|
||||||
@@ -26,28 +20,33 @@
|
|||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>$(MARKETING_VERSION)</string>
|
<string>$(MARKETING_VERSION)</string>
|
||||||
|
<key>CFBundleURLTypes</key>
|
||||||
|
<array>
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleTypeRole</key>
|
||||||
|
<string>Editor</string>
|
||||||
|
<key>CFBundleURLName</key>
|
||||||
|
<string>com.gpr.gabinetedigital.teste</string>
|
||||||
|
<key>CFBundleURLSchemes</key>
|
||||||
|
<array>
|
||||||
|
<string>gabinetedigital</string>
|
||||||
|
</array>
|
||||||
|
</dict>
|
||||||
|
</array>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>$(CURRENT_PROJECT_VERSION)</string>
|
<string>$(CURRENT_PROJECT_VERSION)</string>
|
||||||
|
<key>LSApplicationCategoryType</key>
|
||||||
|
<string></string>
|
||||||
<key>LSRequiresIPhoneOS</key>
|
<key>LSRequiresIPhoneOS</key>
|
||||||
<true/>
|
<true/>
|
||||||
<key>NSCameraUsageDescription</key>
|
<key>NSCameraUsageDescription</key>
|
||||||
<string>Used to demonstrate image picker plugin</string>
|
<string>This app requires access to the camera.</string>
|
||||||
<key>NSFaceIDUsageDescription</key>
|
|
||||||
<string>$FACEID_USAGE_DESCRIPTION</string>
|
|
||||||
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
|
|
||||||
<string>some string</string>
|
|
||||||
<key>NSLocationAlwaysUsageDescription</key>
|
|
||||||
<string>some string</string>
|
|
||||||
<key>NSLocationUsageDescription</key>
|
|
||||||
<string>Need location access for updating nearby friends</string>
|
|
||||||
<key>NSLocationWhenInUseUsageDescription</key>
|
|
||||||
<string>This app needs your location to test the location feature of the Google Maps plugin.</string>
|
|
||||||
<key>NSMicrophoneUsageDescription</key>
|
<key>NSMicrophoneUsageDescription</key>
|
||||||
<string>Used to capture audio for image picker plugin</string>
|
<string>This app does not require access to the microphone.</string>
|
||||||
<key>NSPhotoLibraryAddUsageDescription</key>
|
<key>NSPhotoLibraryAddUsageDescription</key>
|
||||||
<string>Privacy - Photo Library Additions Usage Description</string>
|
<string>This app requires access to the photo library.</string>
|
||||||
<key>NSPhotoLibraryUsageDescription</key>
|
<key>NSPhotoLibraryUsageDescription</key>
|
||||||
<string>Used to demonstrate image picker plugin</string>
|
<string>This app requires access to the photo library.</string>
|
||||||
<key>UILaunchStoryboardName</key>
|
<key>UILaunchStoryboardName</key>
|
||||||
<string>LaunchScreen</string>
|
<string>LaunchScreen</string>
|
||||||
<key>UIMainStoryboardFile</key>
|
<key>UIMainStoryboardFile</key>
|
||||||
|
|||||||
@@ -36,9 +36,6 @@ end
|
|||||||
target 'App' do
|
target 'App' do
|
||||||
capacitor_pods
|
capacitor_pods
|
||||||
# Add your Pods here
|
# Add your Pods here
|
||||||
pod 'Firebase/CoreOnly', '~> 10.15.0'
|
|
||||||
pod 'Firebase/Core', '~> 10.15.0'
|
|
||||||
pod 'Firebase/Messaging', '~> 10.15.0'
|
|
||||||
end
|
end
|
||||||
|
|
||||||
post_install do |installer|
|
post_install do |installer|
|
||||||
|
|||||||
@@ -0,0 +1,24 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="j1y-V4-xli">
|
||||||
|
<dependencies>
|
||||||
|
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
|
||||||
|
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
||||||
|
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||||
|
</dependencies>
|
||||||
|
<scenes>
|
||||||
|
<!--Share View Controller-->
|
||||||
|
<scene sceneID="ceB-am-kn3">
|
||||||
|
<objects>
|
||||||
|
<viewController id="j1y-V4-xli" customClass="ShareViewController" customModuleProvider="target" sceneMemberID="viewController">
|
||||||
|
<view key="view" opaque="NO" contentMode="scaleToFill" id="wbc-yd-nQP">
|
||||||
|
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
|
||||||
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
|
<color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/>
|
||||||
|
<viewLayoutGuide key="safeArea" id="1Xd-am-t49"/>
|
||||||
|
</view>
|
||||||
|
</viewController>
|
||||||
|
<placeholder placeholderIdentifier="IBFirstResponder" id="CEy-Cv-SGf" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
||||||
|
</objects>
|
||||||
|
</scene>
|
||||||
|
</scenes>
|
||||||
|
</document>
|
||||||
@@ -0,0 +1,49 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleURLTypes</key>
|
||||||
|
<array>
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleURLName</key>
|
||||||
|
<string></string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleURLName</key>
|
||||||
|
<string>com.gpr.gabinetedigital.teste</string>
|
||||||
|
</dict>
|
||||||
|
</array>
|
||||||
|
<key>NSExtension</key>
|
||||||
|
<dict>
|
||||||
|
<key>NSExtensionAttributes</key>
|
||||||
|
<dict>
|
||||||
|
<key>NSExtensionActivationRule</key>
|
||||||
|
<string>TRUEPREDICATE</string>
|
||||||
|
</dict>
|
||||||
|
<key>NSExtensionMainStoryboard</key>
|
||||||
|
<string>MainInterface</string>
|
||||||
|
<key>NSExtensionPointIdentifier</key>
|
||||||
|
<string>com.apple.share-services</string>
|
||||||
|
</dict>
|
||||||
|
<key>NSExtensionAttributes</key>
|
||||||
|
<dict>
|
||||||
|
<key>NSExtensionActivationRule</key>
|
||||||
|
<dict>
|
||||||
|
<key>NSExtensionActivationSupportsFileWithMaxCount</key>
|
||||||
|
<integer>5</integer>
|
||||||
|
<key>NSExtensionActivationSupportsImageWithMaxCount</key>
|
||||||
|
<integer>5</integer>
|
||||||
|
<key>NSExtensionActivationSupportsMovieWithMaxCount</key>
|
||||||
|
<integer>5</integer>
|
||||||
|
<key>NSExtensionActivationSupportsText</key>
|
||||||
|
<true/>
|
||||||
|
<key>NSExtensionActivationSupportsWebPageWithMaxCount</key>
|
||||||
|
<integer>1</integer>
|
||||||
|
<key>NSExtensionActivationSupportsWebURLWithMaxCount</key>
|
||||||
|
<integer>1</integer>
|
||||||
|
<key>NSExtensionActivationUsesStrictMatching</key>
|
||||||
|
<false/>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>com.apple.security.application-groups</key>
|
||||||
|
<array>
|
||||||
|
<string>group.gabinete</string>
|
||||||
|
</array>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
@@ -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
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -80,7 +80,6 @@
|
|||||||
"@ionic-native/file": "^5.36.0",
|
"@ionic-native/file": "^5.36.0",
|
||||||
"@ionic-native/file-opener": "^5.36.0",
|
"@ionic-native/file-opener": "^5.36.0",
|
||||||
"@ionic-native/file-path": "^5.30.0",
|
"@ionic-native/file-path": "^5.30.0",
|
||||||
"@ionic-native/fingerprint-aio": "^4.20.0",
|
|
||||||
"@ionic-native/http": "^5.36.0",
|
"@ionic-native/http": "^5.36.0",
|
||||||
"@ionic-native/image-picker": "^5.36.0",
|
"@ionic-native/image-picker": "^5.36.0",
|
||||||
"@ionic-native/in-app-browser": "^5.28.0",
|
"@ionic-native/in-app-browser": "^5.28.0",
|
||||||
@@ -130,7 +129,6 @@
|
|||||||
"ci": "^2.1.1",
|
"ci": "^2.1.1",
|
||||||
"cordova": "^11.0.0",
|
"cordova": "^11.0.0",
|
||||||
"cordova-plugin-crop": "^0.4.0",
|
"cordova-plugin-crop": "^0.4.0",
|
||||||
"cordova-plugin-dbcopy": "git+https://github.com/an-rahulpandey/cordova-plugin-dbcopy.git",
|
|
||||||
"cordova-plugin-document-viewer": "^1.0.0",
|
"cordova-plugin-document-viewer": "^1.0.0",
|
||||||
"cordova-plugin-file": "^6.0.2",
|
"cordova-plugin-file": "^6.0.2",
|
||||||
"cordova-plugin-file-opener2": "^3.0.5",
|
"cordova-plugin-file-opener2": "^3.0.5",
|
||||||
|
|||||||
@@ -106,8 +106,8 @@ export class HomePage implements OnInit {
|
|||||||
private modalController: ModalController,
|
private modalController: ModalController,
|
||||||
private zone: NgZone
|
private zone: NgZone
|
||||||
|
|
||||||
// private ChunkService: ChunkService,
|
// private ChunkService: ChunkService,
|
||||||
// private StreamService: StreamService
|
// private StreamService: StreamService
|
||||||
) {
|
) {
|
||||||
if (SessionStore.exist) {
|
if (SessionStore.exist) {
|
||||||
this.user = SessionStore.user;
|
this.user = SessionStore.user;
|
||||||
@@ -143,7 +143,6 @@ export class HomePage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sendIntent.setRouteService(this.router)
|
sendIntent.setRouteService(this.router)
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -160,49 +159,27 @@ export class HomePage implements OnInit {
|
|||||||
|
|
||||||
|
|
||||||
SendIntent.checkSendIntentReceived().then((result: any) => {
|
SendIntent.checkSendIntentReceived().then((result: any) => {
|
||||||
alert('shared')
|
|
||||||
if (result) {
|
if (result) {
|
||||||
console.log('SendIntent received');
|
console.log('SendIntent received');
|
||||||
console.log(JSON.stringify(result));
|
console.log(JSON.stringify(result));
|
||||||
}
|
}
|
||||||
if (result.url) {
|
if (result.url) {
|
||||||
let resultUrl = decodeURIComponent(result.url);
|
window["sharedContent"] = result;
|
||||||
Filesystem.readFile({path: resultUrl})
|
this.zone.run(() => this.router.navigateByUrl("/home/publications"));
|
||||||
|
|
||||||
.then(async (content) => {
|
|
||||||
|
|
||||||
const modal = await this.modalController.create({
|
|
||||||
component: PublicationsPage,
|
|
||||||
componentProps: {
|
|
||||||
item: "item",
|
|
||||||
intent: content.data
|
|
||||||
},
|
|
||||||
cssClass: 'new-action modal modal-desktop',
|
|
||||||
backdropDismiss: false
|
|
||||||
});
|
|
||||||
|
|
||||||
modal.onDidDismiss().then(() => {
|
|
||||||
SendIntent.finish();
|
|
||||||
});
|
|
||||||
await modal.present();
|
|
||||||
|
|
||||||
|
|
||||||
console.log(content.data);
|
|
||||||
})
|
|
||||||
.catch((err) => console.error(err));
|
|
||||||
}
|
}
|
||||||
}).catch(err => console.error(err));
|
}).catch(err => console.error(err));
|
||||||
|
|
||||||
}
|
}
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
|
||||||
if(window["sharedintend"]) {
|
/* if (window["sharedintend"]) {
|
||||||
this.router.navigateByUrl("/home/publication");
|
this.router.navigateByUrl("/home/publication");
|
||||||
}
|
} */
|
||||||
|
|
||||||
window["this.router"] = this.router
|
window["this.router"] = this.router
|
||||||
|
|
||||||
/* this.checkSendIntentReceived() */
|
if (this.platform.is('ios'))
|
||||||
|
this.checkSendIntentReceived()
|
||||||
|
|
||||||
if ("serviceWorker" in navigator) {
|
if ("serviceWorker" in navigator) {
|
||||||
navigator.serviceWorker.onmessage = (event) => {
|
navigator.serviceWorker.onmessage = (event) => {
|
||||||
@@ -298,8 +275,13 @@ export class HomePage implements OnInit {
|
|||||||
if (!this.platform.is('desktop')) {
|
if (!this.platform.is('desktop')) {
|
||||||
App.addListener('appStateChange', ({ isActive }) => {
|
App.addListener('appStateChange', ({ isActive }) => {
|
||||||
if (isActive) {
|
if (isActive) {
|
||||||
sendIntent.setRouteService(this.router)
|
if (this.platform.is('ios')) {
|
||||||
/* this.checkSendIntentReceived(); */
|
this.checkSendIntentReceived();
|
||||||
|
} else if (this.platform.is('android')) {
|
||||||
|
sendIntent.setRouteService(this.router)
|
||||||
|
} else {
|
||||||
|
}
|
||||||
|
|
||||||
console.log('App is in the foreground');
|
console.log('App is in the foreground');
|
||||||
/* this.checkSendIntentReceived() */
|
/* this.checkSendIntentReceived() */
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -40,23 +40,19 @@
|
|||||||
|
|
||||||
|
|
||||||
<ion-img *ngIf="checkFileType.checkFileType(seleted.FileExtension) == 'image'" [(ngModel)]="capturedImage"
|
<ion-img *ngIf="checkFileType.checkFileType(seleted.FileExtension) == 'image'" [(ngModel)]="capturedImage"
|
||||||
name="image" ngDefaultControl [src]="'data:image/jpg;base64,' + seleted.Base64"
|
name="image" ngDefaultControl [src]="'data:image/jpg;base64,' + seleted.FileBase64"
|
||||||
(click)="imageSize(capturedImage)" style="height: 69px;"></ion-img>
|
(click)="imageSize(capturedImage)" style="height: 69px;"></ion-img>
|
||||||
|
|
||||||
<video class="55" *ngIf="checkFileType.checkFileType(seleted.FileExtension) == 'video' && publicationTitle == ActionType.edit" width="70" height="70"
|
<video *ngIf="checkFileType.checkFileType(seleted.FileExtension) == 'video'" width="70" height="70"
|
||||||
controls="controls" preload="metadata" autoplay="autoplay" webkit-playsinline="webkit-playsinline">
|
controls="controls" preload="metadata" autoplay="autoplay" webkit-playsinline="webkit-playsinline">
|
||||||
<source type="video/mp4" [src]="'data:video/mp4;base64,' + seleted.Base64">
|
<source type="video/mp4" [src]="seleted.FileBase64">
|
||||||
</video>
|
</video>
|
||||||
|
|
||||||
<video class="src" *ngIf="checkFileType.checkFileType(seleted.FileExtension) == 'video' && publicationTitle != ActionType.edit" width="70" height="70"
|
|
||||||
controls="controls" preload="metadata" autoplay="autoplay" webkit-playsinline="webkit-playsinline">
|
|
||||||
<source type="video/mp4" [src]="seleted.url">
|
|
||||||
</video>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<!-- Display the blurred image and count if there are more images -->
|
<!-- Display the blurred image and count if there are more images -->
|
||||||
<ion-thumbnail *ngIf="seletedContent.length > displayLimit" lot="start">
|
<ion-thumbnail *ngIf="seletedContent.length > displayLimit" lot="start">
|
||||||
<ion-img [src]="'data:image/jpg;base64,' + seletedContent[displayLimit - 1].Base64"
|
<ion-img [src]="'data:image/jpg;base64,' + seletedContent[displayLimit - 1].base64"
|
||||||
style="filter: blur(5px);"></ion-img>
|
style="filter: blur(5px);"></ion-img>
|
||||||
|
|
||||||
<p>mais {{ seletedContent.length - displayLimit }}</p>
|
<p>mais {{ seletedContent.length - displayLimit }}</p>
|
||||||
@@ -87,7 +83,7 @@
|
|||||||
</div> -->
|
</div> -->
|
||||||
|
|
||||||
<div class="ion-item-container-no-border pt-10">
|
<div class="ion-item-container-no-border pt-10">
|
||||||
<ion-label (click)="chossePhotoOrVideo()">
|
<ion-label (click)="takePicture()">
|
||||||
<div class="attach-icon">
|
<div class="attach-icon">
|
||||||
<ion-icon *ngIf="ThemeService.currentTheme == 'default' "
|
<ion-icon *ngIf="ThemeService.currentTheme == 'default' "
|
||||||
src="assets/images/icons-add-photo.svg"></ion-icon>
|
src="assets/images/icons-add-photo.svg"></ion-icon>
|
||||||
@@ -96,14 +92,29 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="attach-document">
|
<div class="attach-document">
|
||||||
<ion-label>Câmera</ion-label>
|
<ion-label>Tirar Fotografia</ion-label>
|
||||||
</div>
|
</div>
|
||||||
</ion-label>
|
</ion-label>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="photoOrVideo" class="container-multiselect pt-10">
|
|
||||||
|
<div class="ion-item-container-no-border pt-10">
|
||||||
|
<ion-label (click)="startVideoRecording()">
|
||||||
|
<div class="attach-icon">
|
||||||
|
<ion-icon *ngIf="ThemeService.currentTheme == 'default' "
|
||||||
|
src="assets/images/icons-add-photo.svg"></ion-icon>
|
||||||
|
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' "
|
||||||
|
src="assets/images/theme/gov/icons-add-photo.svg"></ion-icon>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="attach-document">
|
||||||
|
<ion-label>Fazer Vídeo</ion-label>
|
||||||
|
</div>
|
||||||
|
</ion-label>
|
||||||
|
</div>
|
||||||
|
<!-- <div *ngIf="photoOrVideo" class="container-multiselect pt-10">
|
||||||
<button id="container-multiselect" class="multiselect-button" (click)="takePicture()">Fotografia</button>
|
<button id="container-multiselect" class="multiselect-button" (click)="takePicture()">Fotografia</button>
|
||||||
<button id="container-multiselect" class="multiselect-button" (click)="startVideoRecording()">Video</button>
|
<button id="container-multiselect" class="multiselect-button" (click)="startVideoRecording()">Video</button>
|
||||||
</div>
|
</div> -->
|
||||||
|
|
||||||
<!-- <div *ngIf="photoOrVideo" class="ion-item-container-no-border">
|
<!-- <div *ngIf="photoOrVideo" class="ion-item-container-no-border">
|
||||||
<ion-label (click)="takePicture()">
|
<ion-label (click)="takePicture()">
|
||||||
|
|||||||
@@ -16,18 +16,25 @@ import { formatDate } from 'src/plugin/momentG.js'
|
|||||||
import { ThemeService } from 'src/app/services/theme.service';
|
import { ThemeService } from 'src/app/services/theme.service';
|
||||||
import { Camera, CameraResultType, CameraSource, Photo } from '@capacitor/camera';
|
import { Camera, CameraResultType, CameraSource, Photo } from '@capacitor/camera';
|
||||||
|
|
||||||
import { Filesystem, Directory, Encoding, FilesystemDirectory } from '@capacitor/filesystem';
|
import { Filesystem, Directory, Encoding, FilesystemDirectory, FilesystemEncoding } from '@capacitor/filesystem';
|
||||||
import { NgxImageCompressService } from "ngx-image-compress";
|
import { NgxImageCompressService } from "ngx-image-compress";
|
||||||
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
|
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
|
||||||
import { PublicationFolderService } from 'src/app/store/publication-folder.service';
|
import { PublicationFolderService } from 'src/app/store/publication-folder.service';
|
||||||
import { RouteService } from 'src/app/services/route.service';
|
import { RouteService } from 'src/app/services/route.service';
|
||||||
import { FileService } from 'src/app/services/functions/file.service';
|
import { FileService } from 'src/app/services/functions/file.service';
|
||||||
|
import { readAndCompressImage } from 'browser-image-resizer';
|
||||||
import { FilePicker } from '@capawesome/capacitor-file-picker';
|
import { FilePicker } from '@capawesome/capacitor-file-picker';
|
||||||
import { CapacitorVideoPlayer } from 'capacitor-video-player';
|
import { CapacitorVideoPlayer } from 'capacitor-video-player';
|
||||||
import { CaptureImageOptions, MediaCapture } from '@awesome-cordova-plugins/media-capture/ngx';
|
import { CaptureError, CaptureImageOptions, MediaCapture, MediaFile } from '@awesome-cordova-plugins/media-capture/ngx';
|
||||||
|
import { Capacitor } from '@capacitor/core';
|
||||||
|
import { File } from '@ionic-native/file/ngx';
|
||||||
|
import { Media } from '@ionic-native/media/ngx';
|
||||||
import { checkFileTypeService } from 'src/app/services/checkFileType.service';
|
import { checkFileTypeService } from 'src/app/services/checkFileType.service';
|
||||||
import { FileValidatorService } from "src/app/services/file/file-validator.service"
|
import { FileValidatorService } from "src/app/services/file/file-validator.service"
|
||||||
import { PublicationAttachmentEntity } from 'src/app/shared/publication/upload/upload-streaming.service';
|
import { App } from '@capacitor/app';
|
||||||
|
import { Router } from '@angular/router';
|
||||||
|
|
||||||
|
|
||||||
const config = {
|
const config = {
|
||||||
quality: 0.5,
|
quality: 0.5,
|
||||||
maxWidth: 800,
|
maxWidth: 800,
|
||||||
@@ -89,13 +96,6 @@ export class NewPublicationPage implements OnInit {
|
|||||||
publicationTitle: string;
|
publicationTitle: string;
|
||||||
imgUrl: any;
|
imgUrl: any;
|
||||||
|
|
||||||
|
|
||||||
ActionType = {
|
|
||||||
newRapid : "1",
|
|
||||||
new: "2",
|
|
||||||
edit: "3"
|
|
||||||
}
|
|
||||||
|
|
||||||
Defaultimage: any = '';
|
Defaultimage: any = '';
|
||||||
|
|
||||||
photo: SafeResourceUrl;
|
photo: SafeResourceUrl;
|
||||||
@@ -116,7 +116,7 @@ export class NewPublicationPage implements OnInit {
|
|||||||
photoOrVideo: boolean = false;
|
photoOrVideo: boolean = false;
|
||||||
fileType = "";
|
fileType = "";
|
||||||
filecontent: boolean;
|
filecontent: boolean;
|
||||||
seletedContent: PublicationAttachmentEntity[] = []
|
seletedContent: any[] = []
|
||||||
// Set a limit for the number of images to display
|
// Set a limit for the number of images to display
|
||||||
displayLimit = 4;
|
displayLimit = 4;
|
||||||
filesSizeSum = 0;
|
filesSizeSum = 0;
|
||||||
@@ -137,7 +137,8 @@ export class NewPublicationPage implements OnInit {
|
|||||||
public FileService: FileService,
|
public FileService: FileService,
|
||||||
private mediaCapture: MediaCapture,
|
private mediaCapture: MediaCapture,
|
||||||
public checkFileType: checkFileTypeService,
|
public checkFileType: checkFileTypeService,
|
||||||
private FileValidatorService: FileValidatorService
|
private FileValidatorService: FileValidatorService,
|
||||||
|
private router: Router,
|
||||||
) {
|
) {
|
||||||
|
|
||||||
this.publicationType = this.navParams.get('publicationType');
|
this.publicationType = this.navParams.get('publicationType');
|
||||||
@@ -146,18 +147,6 @@ export class NewPublicationPage implements OnInit {
|
|||||||
if (this.publication) {
|
if (this.publication) {
|
||||||
this.seletedContent = this.publication.Files;
|
this.seletedContent = this.publication.Files;
|
||||||
this.filecontent = true;
|
this.filecontent = true;
|
||||||
|
|
||||||
this.seletedContent = this.publication.Files.map(e => {
|
|
||||||
return new PublicationAttachmentEntity(
|
|
||||||
{
|
|
||||||
base64: e.FileBase64,
|
|
||||||
extension: e.FileExtension,
|
|
||||||
OriginalFileName: e.OriginalFileName,
|
|
||||||
FileType: this.checkFileType.checkFileType(e.FileExtension) as any
|
|
||||||
}
|
|
||||||
)
|
|
||||||
})
|
|
||||||
|
|
||||||
}
|
}
|
||||||
console.log('Edit', this.publication)
|
console.log('Edit', this.publication)
|
||||||
this.publicationTitle = 'Nova Publicação';
|
this.publicationTitle = 'Nova Publicação';
|
||||||
@@ -177,16 +166,16 @@ export class NewPublicationPage implements OnInit {
|
|||||||
recursive: true
|
recursive: true
|
||||||
});
|
});
|
||||||
|
|
||||||
try {
|
/* try {
|
||||||
document.addEventListener("click", clickOutside, false);
|
document.addEventListener("click", clickOutside, false);
|
||||||
function clickOutside(e) {
|
function clickOutside(e) {
|
||||||
const inside = document.getElementById('container-multiselect').contains(e.target);
|
const inside = document.getElementById('container-multiselect').contains(e.target);
|
||||||
this.photoOrVideo = false;
|
this.photoOrVideo = false;
|
||||||
console.log(this.photoOrVideo)
|
console.log(this.photoOrVideo)
|
||||||
}
|
}
|
||||||
} catch (error) {}
|
} catch (error) {
|
||||||
|
console.log('click butto', error)
|
||||||
|
} */
|
||||||
}
|
}
|
||||||
|
|
||||||
// in use
|
// in use
|
||||||
@@ -213,14 +202,11 @@ export class NewPublicationPage implements OnInit {
|
|||||||
console.log('take picture', this.removeTextBeforeSlash(picture, ','),)
|
console.log('take picture', this.removeTextBeforeSlash(picture, ','),)
|
||||||
this.filecontent = true;
|
this.filecontent = true;
|
||||||
this.photoOrVideo = false;
|
this.photoOrVideo = false;
|
||||||
|
let fileObject = {
|
||||||
const fileObject = new PublicationAttachmentEntity({
|
FileBase64: this.removeTextBeforeSlash(picture, ','),
|
||||||
base64: this.removeTextBeforeSlash(picture, ','),
|
FileExtension: capturedImage.format,
|
||||||
extension: capturedImage.format,
|
|
||||||
FileType: 'image',
|
|
||||||
OriginalFileName: 'image'
|
OriginalFileName: 'image'
|
||||||
})
|
}
|
||||||
|
|
||||||
this.seletedContent.push(fileObject)
|
this.seletedContent.push(fileObject)
|
||||||
|
|
||||||
|
|
||||||
@@ -260,31 +246,61 @@ export class NewPublicationPage implements OnInit {
|
|||||||
let options: CaptureImageOptions = { limit: 1 }
|
let options: CaptureImageOptions = { limit: 1 }
|
||||||
const data: any = await this.mediaCapture.captureVideo(options)
|
const data: any = await this.mediaCapture.captureVideo(options)
|
||||||
this.video = data[0];
|
this.video = data[0];
|
||||||
console.log(data)
|
console.log('video record', data)
|
||||||
data.forEach(async element => {
|
data.forEach(async element => {
|
||||||
|
Capacitor.convertFileSrc(element.fullPath);
|
||||||
|
console.log('convert url', (Capacitor.convertFileSrc(element.fullPath)));
|
||||||
this.filesSizeSum = this.filesSizeSum + element.size
|
this.filesSizeSum = this.filesSizeSum + element.size
|
||||||
if (this.fileSizeToMB(this.filesSizeSum) <= 20) {
|
if (this.fileSizeToMB(this.filesSizeSum) <= 20) {
|
||||||
const savedFile = await Filesystem.copy({
|
|
||||||
from: element.fullPath, // directory prop removed, Capacitor parses filename for us
|
|
||||||
to: "video.mp4",
|
|
||||||
toDirectory: FilesystemDirectory.Data
|
|
||||||
});
|
|
||||||
console.log(savedFile.uri)
|
|
||||||
Filesystem.readFile({ path: savedFile.uri })
|
|
||||||
|
|
||||||
.then(async (content) => {
|
|
||||||
this.filecontent = true;
|
|
||||||
let fileObject = new PublicationAttachmentEntity({
|
|
||||||
base64: 'data:video/mp4;base64,'+content.data,
|
|
||||||
extension: 'mp4',
|
|
||||||
OriginalFileName: 'record',
|
|
||||||
FileType: 'video'
|
|
||||||
|
|
||||||
|
try {
|
||||||
|
if (this.platform.is('ios')) {
|
||||||
|
const result = await Filesystem.writeFile({
|
||||||
|
path: 'video.mov',
|
||||||
|
data: element.fullPath,
|
||||||
|
directory: FilesystemDirectory.Data,
|
||||||
|
encoding: FilesystemEncoding.UTF8
|
||||||
})
|
})
|
||||||
|
console.log('Wrote file', result);
|
||||||
|
|
||||||
|
Filesystem.readFile({ path: result.uri })
|
||||||
|
|
||||||
|
.then(async (content) => {
|
||||||
|
console.log(content.data)
|
||||||
|
this.filecontent = true;
|
||||||
|
let fileObject = {
|
||||||
|
FileBase64: 'data:video/mp4;base64,' + content.data,
|
||||||
|
FileExtension: 'mp4',
|
||||||
|
OriginalFileName: 'video'
|
||||||
|
}
|
||||||
|
this.seletedContent.push(fileObject)
|
||||||
|
})
|
||||||
|
.catch((err) => console.error(err));
|
||||||
|
} else {
|
||||||
|
const savedFile = await Filesystem.copy({
|
||||||
|
from: Capacitor.convertFileSrc(element.fullPath), // directory prop removed, Capacitor parses filename for us
|
||||||
|
to: "video.mp4",
|
||||||
|
toDirectory: FilesystemDirectory.Data
|
||||||
|
});
|
||||||
|
console.log(savedFile.uri)
|
||||||
|
Filesystem.readFile({ path: savedFile.uri })
|
||||||
|
|
||||||
|
.then(async (content) => {
|
||||||
|
this.filecontent = true;
|
||||||
|
let fileObject = {
|
||||||
|
FileBase64: 'data:video/mp4;base64,' + content.data,
|
||||||
|
FileExtension: 'mp4',
|
||||||
|
OriginalFileName: 'video'
|
||||||
|
}
|
||||||
|
this.seletedContent.push(fileObject)
|
||||||
|
})
|
||||||
|
.catch((err) => console.error(err));
|
||||||
|
}
|
||||||
|
|
||||||
|
} catch (e) {
|
||||||
|
console.error('Unable to write file', e);
|
||||||
|
}
|
||||||
|
|
||||||
this.seletedContent.push(fileObject)
|
|
||||||
})
|
|
||||||
.catch((err) => console.error(err));
|
|
||||||
} else {
|
} else {
|
||||||
if (this.seletedContent.length === 0)
|
if (this.seletedContent.length === 0)
|
||||||
this.filesSizeSum = 0
|
this.filesSizeSum = 0
|
||||||
@@ -304,13 +320,16 @@ export class NewPublicationPage implements OnInit {
|
|||||||
({
|
({
|
||||||
multiple: true,
|
multiple: true,
|
||||||
});
|
});
|
||||||
console.log(result.files)
|
console.log(result.files)
|
||||||
result.files.forEach(element => {
|
result.files.forEach(element => {
|
||||||
|
|
||||||
this.filesSizeSum = this.filesSizeSum + element.size
|
this.filesSizeSum = this.filesSizeSum + element.size
|
||||||
if (this.fileSizeToMB(this.filesSizeSum) <= 20) {
|
if (this.fileSizeToMB(this.filesSizeSum) <= 20) {
|
||||||
|
console.log('pass size verificartion')
|
||||||
if (this.checkFileType.checkFileType(element.mimeType) == 'image' || this.checkFileType.checkFileType(element.mimeType) == 'video') {
|
if (this.checkFileType.checkFileType(element.mimeType) == 'image' || this.checkFileType.checkFileType(element.mimeType) == 'video') {
|
||||||
let resultUrl = decodeURIComponent(element.path);
|
let resultUrl = decodeURIComponent(element.path);
|
||||||
|
console.log('pass type verification ', resultUrl)
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Filesystem.readFile({ path: resultUrl })
|
Filesystem.readFile({ path: resultUrl })
|
||||||
|
|
||||||
@@ -319,29 +338,18 @@ export class NewPublicationPage implements OnInit {
|
|||||||
console.log(content)
|
console.log(content)
|
||||||
this.filecontent = true;
|
this.filecontent = true;
|
||||||
let fileObject;
|
let fileObject;
|
||||||
if(this.removeTextBeforeSlash(element.mimeType, '/') == "mp4") {
|
if (this.removeTextBeforeSlash(element.mimeType, '/') == "mp4") {
|
||||||
|
fileObject = {
|
||||||
const extension = this.removeTextBeforeSlash(element.mimeType, '/')
|
FileBase64: 'data:video/mp4;base64,' + content.data,
|
||||||
|
FileExtension: this.removeTextBeforeSlash(element.mimeType, '/'),
|
||||||
fileObject = new PublicationAttachmentEntity({
|
OriginalFileName: 'video'
|
||||||
base64: content.data,
|
}
|
||||||
extension: extension,
|
|
||||||
OriginalFileName: 'video',
|
|
||||||
FileType: 'video'
|
|
||||||
})
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
fileObject = {
|
||||||
const extension = this.removeTextBeforeSlash(element.mimeType, '/')
|
FileBase64: content.data,
|
||||||
|
FileExtension: this.removeTextBeforeSlash(element.mimeType, '/'),
|
||||||
fileObject = new PublicationAttachmentEntity({
|
OriginalFileName: 'image'
|
||||||
base64: content.data,
|
}
|
||||||
extension: extension,
|
|
||||||
OriginalFileName: 'image',
|
|
||||||
FileType: 'image'
|
|
||||||
|
|
||||||
})
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.seletedContent.push(fileObject)
|
this.seletedContent.push(fileObject)
|
||||||
@@ -442,51 +450,52 @@ export class NewPublicationPage implements OnInit {
|
|||||||
if (this.Form.invalid) return false
|
if (this.Form.invalid) return false
|
||||||
|
|
||||||
|
|
||||||
|
if (this.seletedContent.length != 0) {
|
||||||
|
|
||||||
if (this.publicationType == '3') {
|
if (this.publicationType == '3') {
|
||||||
const loader = this.toastService.loading()
|
const loader = this.toastService.loading()
|
||||||
|
|
||||||
// has file
|
// has file
|
||||||
if (this.PublicationFolderService.PublicationHasImage(this.publication)) {
|
if (this.PublicationFolderService.PublicationHasImage(this.publication)) {
|
||||||
this.publication = {
|
this.publication = {
|
||||||
DateIndex: this.publication.DateIndex,
|
DateIndex: this.publication.DateIndex,
|
||||||
DocumentId: this.publication.DocumentId,
|
DocumentId: this.publication.DocumentId,
|
||||||
ProcessId: this.publication.ProcessId,
|
ProcessId: this.publication.ProcessId,
|
||||||
Title: this.pub.Title,
|
Title: this.pub.Title,
|
||||||
Message: this.pub.Message,
|
Message: this.pub.Message,
|
||||||
DatePublication: this.publication.DatePublication,
|
DatePublication: this.publication.DatePublication,
|
||||||
OriginalFileName: this.publication.OriginalFileName,
|
OriginalFileName: this.publication.OriginalFileName,
|
||||||
Files: this.seletedContent,
|
Files: this.seletedContent,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* } else if (this.capturedVideo != '' && this.capturedImage == '') {
|
/* } else if (this.capturedVideo != '' && this.capturedImage == '') {
|
||||||
this.publication = {
|
this.publication = {
|
||||||
DateIndex: this.publication.DateIndex,
|
DateIndex: this.publication.DateIndex,
|
||||||
DocumentId: this.publication.DocumentId,
|
DocumentId: this.publication.DocumentId,
|
||||||
ProcessId: this.publication.ProcessId,
|
ProcessId: this.publication.ProcessId,
|
||||||
Title: this.pub.Title,
|
Title: this.pub.Title,
|
||||||
Message: this.pub.Message,
|
Message: this.pub.Message,
|
||||||
DatePublication: this.publication.DatePublication,
|
DatePublication: this.publication.DatePublication,
|
||||||
OriginalFileName: this.publication.OriginalFileName || 'video',
|
OriginalFileName: this.publication.OriginalFileName || 'video',
|
||||||
Files: this.seletedContent,
|
Files: this.seletedContent,
|
||||||
FileExtension: 'mp4',
|
FileExtension: 'mp4',
|
||||||
}
|
}
|
||||||
} */
|
} */
|
||||||
// no names
|
// no names
|
||||||
} else if (!this.PublicationFolderService.PublicationHasImage(this.publication)) {
|
} else if (!this.PublicationFolderService.PublicationHasImage(this.publication)) {
|
||||||
this.publication = {
|
this.publication = {
|
||||||
DateIndex: this.publication.DateIndex,
|
DateIndex: this.publication.DateIndex,
|
||||||
DocumentId: this.publication.DocumentId,
|
DocumentId: this.publication.DocumentId,
|
||||||
ProcessId: this.publication.ProcessId,
|
ProcessId: this.publication.ProcessId,
|
||||||
Title: this.pub.Title,
|
Title: this.pub.Title,
|
||||||
Message: this.pub.Message,
|
Message: this.pub.Message,
|
||||||
DatePublication: this.publication.DatePublication,
|
DatePublication: this.publication.DatePublication,
|
||||||
OriginalFileName: this.publication.OriginalFileName,
|
OriginalFileName: this.publication.OriginalFileName,
|
||||||
Files: this.seletedContent,
|
Files: this.seletedContent,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
} /* else {
|
} /* else {
|
||||||
this.publication = {
|
this.publication = {
|
||||||
DateIndex: this.publication.DateIndex,
|
DateIndex: this.publication.DateIndex,
|
||||||
DocumentId: this.publication.DocumentId,
|
DocumentId: this.publication.DocumentId,
|
||||||
@@ -502,90 +511,96 @@ export class NewPublicationPage implements OnInit {
|
|||||||
} */
|
} */
|
||||||
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
const response = await this.publications.UpdatePublication(this.publication.ProcessId, this.publication).toPromise()
|
const response = await this.publications.UpdatePublication(this.publication.ProcessId, this.publication).toPromise()
|
||||||
|
|
||||||
this.httpErrorHandle.httpsSucessMessagge('Editar publicação')
|
this.httpErrorHandle.httpsSucessMessagge('Editar publicação')
|
||||||
console.log({ response })
|
console.log({ response })
|
||||||
|
|
||||||
|
|
||||||
this.close();
|
|
||||||
} catch (error) {
|
|
||||||
if (error.status == 404) {
|
|
||||||
this.PublicationFolderService.deletePost(this.publication.ProcessId, this.publication.DocumentId)
|
|
||||||
this.close();
|
this.close();
|
||||||
}
|
} catch (error) {
|
||||||
this.httpErrorHandle.httpStatusHandle(error)
|
if (error.status == 404) {
|
||||||
} finally {
|
this.PublicationFolderService.deletePost(this.publication.ProcessId, this.publication.DocumentId)
|
||||||
loader.remove()
|
this.close();
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
|
|
||||||
const date = formatDate(new Date(), 'yyyy-MM-dd HH:mm:ss')
|
|
||||||
|
|
||||||
/* this.seletedContent = this.seletedContent.map((e) => {
|
|
||||||
if(e.FileExtension == "mp4") {
|
|
||||||
return {
|
|
||||||
FileBase64: e.FileBase64,
|
|
||||||
FileExtension: 'data:video/mp4;base64,'+e.FileExtension,
|
|
||||||
OriginalFileName: "video",
|
|
||||||
}
|
}
|
||||||
|
this.httpErrorHandle.httpStatusHandle(error)
|
||||||
|
} finally {
|
||||||
|
loader.remove()
|
||||||
}
|
}
|
||||||
|
|
||||||
return e
|
}
|
||||||
}) */
|
else {
|
||||||
|
|
||||||
|
const date = formatDate(new Date(), 'yyyy-MM-dd HH:mm:ss')
|
||||||
|
|
||||||
|
/* this.seletedContent = this.seletedContent.map((e) => {
|
||||||
|
if(e.FileExtension == "mp4") {
|
||||||
|
return {
|
||||||
|
FileBase64: e.FileBase64,
|
||||||
|
FileExtension: 'data:video/mp4;base64,'+e.FileExtension,
|
||||||
|
OriginalFileName: "video",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return e
|
||||||
|
}) */
|
||||||
|
|
||||||
|
/* if (this.capturedImage != '') { */
|
||||||
|
this.publication = {
|
||||||
|
DateIndex: date,
|
||||||
|
DocumentId: null,
|
||||||
|
ProcessId: JSON.stringify(this.folderId),
|
||||||
|
Title: this.pub.Title,
|
||||||
|
Message: this.pub.Message,
|
||||||
|
DatePublication: date,
|
||||||
|
OriginalFileName: this.capturedImageTitle || 'foto',
|
||||||
|
Files: this.seletedContent,
|
||||||
|
/* FileExtension: 'jpeg', */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* } else if (this.capturedVideo != '') {
|
||||||
|
this.publication = {
|
||||||
|
DateIndex: date,
|
||||||
|
DocumentId: null,
|
||||||
|
ProcessId: this.folderId,
|
||||||
|
Title: this.pub.Title,
|
||||||
|
Message: this.pub.Message,
|
||||||
|
DatePublication: date,
|
||||||
|
OriginalFileName: this.capturedImageTitle || 'video',
|
||||||
|
Files: this.seletedContent,
|
||||||
|
FileExtension: 'mp4',
|
||||||
|
}
|
||||||
|
} */
|
||||||
|
|
||||||
|
|
||||||
|
const loader = this.toastService.loading()
|
||||||
|
|
||||||
|
try {
|
||||||
|
|
||||||
|
|
||||||
|
await this.publications.CreatePublication(this.folderId, this.publication).toPromise();
|
||||||
|
this.httpErrorHandle.httpsSucessMessagge('Criar publicação')
|
||||||
|
if (window["sharedContent"]) {
|
||||||
|
this.router.navigate(['/home/publications', this.folderId]);
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
this.close();
|
||||||
|
} catch (error) {
|
||||||
|
this.httpErrorHandle.httpStatusHandle(error)
|
||||||
|
} finally {
|
||||||
|
loader.remove()
|
||||||
|
}
|
||||||
|
|
||||||
/* if (this.capturedImage != '') { */
|
|
||||||
this.publication = {
|
|
||||||
DateIndex: date,
|
|
||||||
DocumentId: null,
|
|
||||||
ProcessId: this.folderId,
|
|
||||||
Title: this.pub.Title,
|
|
||||||
Message: this.pub.Message,
|
|
||||||
DatePublication: date,
|
|
||||||
OriginalFileName: this.capturedImageTitle || 'foto',
|
|
||||||
Files: this.seletedContent,
|
|
||||||
/* FileExtension: 'jpeg', */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* } else if (this.capturedVideo != '') {
|
this.PublicationFolderService.getPublicationsIds(this.folderId)
|
||||||
this.publication = {
|
|
||||||
DateIndex: date,
|
|
||||||
DocumentId: null,
|
|
||||||
ProcessId: this.folderId,
|
|
||||||
Title: this.pub.Title,
|
|
||||||
Message: this.pub.Message,
|
|
||||||
DatePublication: date,
|
|
||||||
OriginalFileName: this.capturedImageTitle || 'video',
|
|
||||||
Files: this.seletedContent,
|
|
||||||
FileExtension: 'mp4',
|
|
||||||
}
|
|
||||||
} */
|
|
||||||
|
|
||||||
|
|
||||||
const loader = this.toastService.loading()
|
|
||||||
|
|
||||||
try {
|
|
||||||
|
|
||||||
await this.publications.CreatePublication(this.folderId, this.publication).toPromise();
|
|
||||||
this.close();
|
|
||||||
this.httpErrorHandle.httpsSucessMessagge('Criar publicação')
|
|
||||||
window["sharedContent"] = null;
|
|
||||||
window["endSharedContent"] = null;
|
|
||||||
|
|
||||||
this.close();
|
|
||||||
} catch (error) {
|
|
||||||
this.httpErrorHandle.httpStatusHandle(error)
|
|
||||||
} finally {
|
|
||||||
loader.remove()
|
|
||||||
}
|
|
||||||
|
|
||||||
|
} else {
|
||||||
|
this.httpErrorHandle.validationMessagge("noFileSelected")
|
||||||
}
|
}
|
||||||
|
|
||||||
this.PublicationFolderService.getPublicationsIds(this.folderId)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -593,6 +608,10 @@ export class NewPublicationPage implements OnInit {
|
|||||||
this.modalController.dismiss(this.publication).then(() => {
|
this.modalController.dismiss(this.publication).then(() => {
|
||||||
this.showLoader = true;
|
this.showLoader = true;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (window["sharedContent"]) {
|
||||||
|
this.closeApp();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
clear() {
|
clear() {
|
||||||
@@ -775,17 +794,30 @@ export class NewPublicationPage implements OnInit {
|
|||||||
if (this.checkFileType.checkFileType(FileExtension) == 'image' || this.checkFileType.checkFileType(FileExtension) == 'video') {
|
if (this.checkFileType.checkFileType(FileExtension) == 'image' || this.checkFileType.checkFileType(FileExtension) == 'video') {
|
||||||
let resultUrl = decodeURIComponent(element.url);
|
let resultUrl = decodeURIComponent(element.url);
|
||||||
Filesystem.readFile({ path: resultUrl }).then(async (content) => {
|
Filesystem.readFile({ path: resultUrl }).then(async (content) => {
|
||||||
|
let fileObject;
|
||||||
|
try {
|
||||||
|
if (this.checkFileType.checkFileType(FileExtension) == 'image') {
|
||||||
|
fileObject = {
|
||||||
|
FileBase64: this.removeTextBeforeSlash(content.data, ','),
|
||||||
|
FileExtension: FileExtension,
|
||||||
|
OriginalFileName: 'shared',
|
||||||
|
}
|
||||||
|
|
||||||
|
} else if (this.checkFileType.checkFileType(FileExtension) == 'video') {
|
||||||
|
fileObject = {
|
||||||
|
FileBase64: 'data:video/mp4;base64,' + this.removeTextBeforeSlash(content.data, ','),
|
||||||
|
FileExtension: FileExtension,
|
||||||
|
OriginalFileName: 'shared',
|
||||||
|
}
|
||||||
|
|
||||||
let fileObject = new PublicationAttachmentEntity(
|
|
||||||
{
|
|
||||||
base64: this.removeTextBeforeSlash(content.data, ','),
|
|
||||||
extension: FileExtension,
|
|
||||||
OriginalFileName: "share-content",
|
|
||||||
FileType: this.checkFileType.checkFileType(FileExtension) as any
|
|
||||||
}
|
}
|
||||||
)
|
console.log('shared base', content.data)
|
||||||
|
|
||||||
|
this.seletedContent.push(fileObject)
|
||||||
|
} catch (error) {
|
||||||
|
console.log('error shared filesystem', error)
|
||||||
|
}
|
||||||
|
|
||||||
this.seletedContent.push(fileObject)
|
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.httpErrorHandle.validationMessagge('filetype');
|
this.httpErrorHandle.validationMessagge('filetype');
|
||||||
@@ -805,5 +837,10 @@ export class NewPublicationPage implements OnInit {
|
|||||||
this.seletedContent.splice(index, 1)
|
this.seletedContent.splice(index, 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
closeApp() {
|
||||||
|
if (this.platform.is('android'))
|
||||||
|
App.exitApp()
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -83,6 +83,8 @@ export class PublicationsPage implements OnInit {
|
|||||||
this.days = ["Domingo", "Segunda-feira", "Terça-feira", "Quarta-feira", "Quinta-feira", "Sexta-feira", "Sábado"];
|
this.days = ["Domingo", "Segunda-feira", "Terça-feira", "Quarta-feira", "Quinta-feira", "Sexta-feira", "Sábado"];
|
||||||
this.intent = window["sharedContent"]
|
this.intent = window["sharedContent"]
|
||||||
|
|
||||||
|
console.log('shared recived', this.intent)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Component, ElementRef, OnInit, QueryList, ViewChild, ViewChildren } from '@angular/core';
|
import { Component, ElementRef, OnInit, QueryList, ViewChild, ViewChildren } from '@angular/core';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
import { ModalController, IonicSlides } from '@ionic/angular';
|
import { ModalController, IonicSlides, Platform } from '@ionic/angular';
|
||||||
import { Publication } from 'src/app/models/publication';
|
import { Publication } from 'src/app/models/publication';
|
||||||
import { PublicationFolder } from 'src/app/models/publicationfolder';
|
import { PublicationFolder } from 'src/app/models/publicationfolder';
|
||||||
import { PublicationPipe } from 'src/app/pipes/publication.pipe';
|
import { PublicationPipe } from 'src/app/pipes/publication.pipe';
|
||||||
@@ -68,7 +68,8 @@ export class ViewPublicationsPage implements OnInit {
|
|||||||
public publicationFolderService: PublicationFolderService,
|
public publicationFolderService: PublicationFolderService,
|
||||||
public checkFileType: checkFileTypeService,
|
public checkFileType: checkFileTypeService,
|
||||||
private publicationVideoManagerService: PublicationVideoManagerService,
|
private publicationVideoManagerService: PublicationVideoManagerService,
|
||||||
public stopvideoService: StopvideoService) {
|
public stopvideoService: StopvideoService,
|
||||||
|
private platform: Platform,) {
|
||||||
|
|
||||||
|
|
||||||
/* this.publicationVideoManagerService.setContainer(this.VideoManager.nativeElement) */
|
/* this.publicationVideoManagerService.setContainer(this.VideoManager.nativeElement) */
|
||||||
@@ -190,7 +191,8 @@ export class ViewPublicationsPage implements OnInit {
|
|||||||
|
|
||||||
goBack() {
|
goBack() {
|
||||||
if (window["sharedContent"]) {
|
if (window["sharedContent"]) {
|
||||||
App.exitApp();
|
if (this.platform.is('android'))
|
||||||
|
App.exitApp();
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.router.navigate(['/home/publications']);
|
this.router.navigate(['/home/publications']);
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ export class checkFileTypeService {
|
|||||||
const imageExtensions = ['jpg', 'jpeg', 'png', 'gif', 'bmp','tiff','tif',
|
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
|
'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',
|
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/mov', 'video/*']; // Add more if needed
|
||||||
|
|
||||||
// Check if it's an image
|
// Check if it's an image
|
||||||
if (imageExtensions.includes(lowerCaseType)) {
|
if (imageExtensions.includes(lowerCaseType)) {
|
||||||
|
|||||||
@@ -19,13 +19,13 @@
|
|||||||
|
|
||||||
</ion-header>
|
</ion-header>
|
||||||
|
|
||||||
<ion-content class="d-flex width-100 height-100">
|
<ion-content>
|
||||||
|
|
||||||
<div class="d-flex height-100 width-100 overflow-hidden">
|
<div id="wrapper" class="height-100">
|
||||||
|
|
||||||
<div class="overflow-y-auto height-100 width-60 visionDesktop-block" style="overflow: hidden; margin-right:20px;">
|
<div class="overflow-y-auto height-100 width-60 visionDesktop-block mr-20" style="overflow: hidden; margin-right:20px;">
|
||||||
<app-viewer-attachment *ngIf="mergedArray.length >= 1" [showAttachmentList]=false [selectedIndex]="selectedIndex" [taskViewerAttachment]="mergedArray" class="height-100" ></app-viewer-attachment>
|
<app-viewer-attachment *ngIf="mergedArray.length >= 1" [showAttachmentList]=false [selectedIndex]="selectedIndex" [taskViewerAttachment]="mergedArray" class="height-100" ></app-viewer-attachment>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class=" flex-1 d-flex flex-column height-100 d-flex overflow-y-auto-desktop" >
|
<div class=" flex-1 d-flex flex-column height-100 d-flex overflow-y-auto-desktop" >
|
||||||
<div class="upper-content" >
|
<div class="upper-content" >
|
||||||
|
|||||||
@@ -257,9 +257,9 @@ ion-button{
|
|||||||
display: block !important;
|
display: block !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mobile-header {
|
.content-details {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-around;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-details {
|
.content-details {
|
||||||
@@ -286,6 +286,20 @@ ion-button{
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (orientation:landscape) {
|
@media screen and (orientation:landscape) {
|
||||||
|
ion-content {
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
ion-content #wrapper {
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.visionDesktop-flex {
|
.visionDesktop-flex {
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -138,8 +138,6 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<video id="yourVideoElementId" >videoss</video>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</ion-content>
|
</ion-content>
|
||||||
|
|||||||