Skip to content

Commit

Permalink
Merge branch 'release/v1.1.0'
Browse files Browse the repository at this point in the history
# Conflicts:
#	README.md
  • Loading branch information
Catalin Demian committed Mar 22, 2021
2 parents 6b0b7ee + fae9037 commit 8eb1899
Show file tree
Hide file tree
Showing 46 changed files with 266 additions and 124 deletions.
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,19 @@ Ometria Sample/Pods
Ometria.xcodeproj/xcuserdata
Pods
Ometria.xcworkspace
.build
DerivedData
/.previous-build
xcuserdata
.DS_Store
*~
\#*
.\#*
.*.sw[nop]
*.xcscmblueprint
/default.profraw
Utilities/Docker/*.tar.gz
.swiftpm
Package.resolved
/build
*.pyc
91 changes: 0 additions & 91 deletions Ometria Sample/OmetriaSample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
4EC94F3624BDECC300B8591C /* NotificationService.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4EC94F3524BDECC300B8591C /* NotificationService.swift */; };
4EC94F3A24BDECC300B8591C /* OmetriaSampleNotificationService.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = 4EC94F3324BDECC300B8591C /* OmetriaSampleNotificationService.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
4EE2531524FE807100B98DDE /* EventListViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4EE2531424FE807100B98DDE /* EventListViewController.swift */; };
86AE97430F3F5776E307DE95 /* Pods_OmetriaSample.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C8156DA900A453C8E9553973 /* Pods_OmetriaSample.framework */; };
97FA64D2AFDEEB9F716543A6 /* Pods_OmetriaSample_OmetriaSampleNotificationService.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E2A273C25D84FF0521435D41 /* Pods_OmetriaSample_OmetriaSampleNotificationService.framework */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -45,7 +43,6 @@
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
1501BEFE755BBD84612970E9 /* Pods-OmetriaSample-OmetriaSampleNotificationService.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-OmetriaSample-OmetriaSampleNotificationService.release.xcconfig"; path = "Target Support Files/Pods-OmetriaSample-OmetriaSampleNotificationService/Pods-OmetriaSample-OmetriaSampleNotificationService.release.xcconfig"; sourceTree = "<group>"; };
4EC94EE824BC52D000B8591C /* OmetriaSample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = OmetriaSample.app; sourceTree = BUILT_PRODUCTS_DIR; };
4EC94EEB24BC52D000B8591C /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
4EC94EEF24BC52D000B8591C /* HomeViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeViewController.swift; sourceTree = "<group>"; };
Expand All @@ -61,52 +58,33 @@
4EC94F4424BDED4000B8591C /* UserNotifications.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UserNotifications.framework; path = System/Library/Frameworks/UserNotifications.framework; sourceTree = SDKROOT; };
4EC94F4624BDED4000B8591C /* UserNotificationsUI.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UserNotificationsUI.framework; path = System/Library/Frameworks/UserNotificationsUI.framework; sourceTree = SDKROOT; };
4EE2531424FE807100B98DDE /* EventListViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EventListViewController.swift; sourceTree = "<group>"; };
623F5ECD741AACB83A72AABF /* Pods-OmetriaSample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-OmetriaSample.debug.xcconfig"; path = "Target Support Files/Pods-OmetriaSample/Pods-OmetriaSample.debug.xcconfig"; sourceTree = "<group>"; };
96A647FA2CD6F1046950F04B /* Pods-OmetriaSample-OmetriaSampleNotificationService.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-OmetriaSample-OmetriaSampleNotificationService.debug.xcconfig"; path = "Target Support Files/Pods-OmetriaSample-OmetriaSampleNotificationService/Pods-OmetriaSample-OmetriaSampleNotificationService.debug.xcconfig"; sourceTree = "<group>"; };
C8156DA900A453C8E9553973 /* Pods_OmetriaSample.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_OmetriaSample.framework; sourceTree = BUILT_PRODUCTS_DIR; };
CF0F08E97772D96033F1583F /* Pods-OmetriaSample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-OmetriaSample.release.xcconfig"; path = "Target Support Files/Pods-OmetriaSample/Pods-OmetriaSample.release.xcconfig"; sourceTree = "<group>"; };
E2A273C25D84FF0521435D41 /* Pods_OmetriaSample_OmetriaSampleNotificationService.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_OmetriaSample_OmetriaSampleNotificationService.framework; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
4EC94EE524BC52D000B8591C /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
86AE97430F3F5776E307DE95 /* Pods_OmetriaSample.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
4EC94F3024BDECC300B8591C /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
97FA64D2AFDEEB9F716543A6 /* Pods_OmetriaSample_OmetriaSampleNotificationService.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
2EB11983E27D85E926DB3AA8 /* Pods */ = {
isa = PBXGroup;
children = (
623F5ECD741AACB83A72AABF /* Pods-OmetriaSample.debug.xcconfig */,
CF0F08E97772D96033F1583F /* Pods-OmetriaSample.release.xcconfig */,
96A647FA2CD6F1046950F04B /* Pods-OmetriaSample-OmetriaSampleNotificationService.debug.xcconfig */,
1501BEFE755BBD84612970E9 /* Pods-OmetriaSample-OmetriaSampleNotificationService.release.xcconfig */,
);
path = Pods;
sourceTree = "<group>";
};
4EC94EDF24BC52D000B8591C = {
isa = PBXGroup;
children = (
4EC94EEA24BC52D000B8591C /* OmetriaSample */,
4EC94F3424BDECC300B8591C /* OmetriaSampleNotificationService */,
4EC94EE924BC52D000B8591C /* Products */,
E6DD2DBB96C0C1501642735C /* Frameworks */,
2EB11983E27D85E926DB3AA8 /* Pods */,
);
sourceTree = "<group>";
};
Expand Down Expand Up @@ -147,10 +125,8 @@
E6DD2DBB96C0C1501642735C /* Frameworks */ = {
isa = PBXGroup;
children = (
C8156DA900A453C8E9553973 /* Pods_OmetriaSample.framework */,
4EC94F4424BDED4000B8591C /* UserNotifications.framework */,
4EC94F4624BDED4000B8591C /* UserNotificationsUI.framework */,
E2A273C25D84FF0521435D41 /* Pods_OmetriaSample_OmetriaSampleNotificationService.framework */,
);
name = Frameworks;
sourceTree = "<group>";
Expand All @@ -162,11 +138,9 @@
isa = PBXNativeTarget;
buildConfigurationList = 4EC94EFC24BC52D300B8591C /* Build configuration list for PBXNativeTarget "OmetriaSample" */;
buildPhases = (
A64F34D3FB2D778F0A8BA092 /* [CP] Check Pods Manifest.lock */,
4EC94EE424BC52D000B8591C /* Sources */,
4EC94EE524BC52D000B8591C /* Frameworks */,
4EC94EE624BC52D000B8591C /* Resources */,
C116398B684E17D1F852811F /* [CP] Embed Pods Frameworks */,
4EC94F3E24BDECC300B8591C /* Embed App Extensions */,
);
buildRules = (
Expand All @@ -183,7 +157,6 @@
isa = PBXNativeTarget;
buildConfigurationList = 4EC94F3B24BDECC300B8591C /* Build configuration list for PBXNativeTarget "OmetriaSampleNotificationService" */;
buildPhases = (
C579C48451823512F9390D32 /* [CP] Check Pods Manifest.lock */,
4EC94F2F24BDECC300B8591C /* Sources */,
4EC94F3024BDECC300B8591C /* Frameworks */,
4EC94F3124BDECC300B8591C /* Resources */,
Expand Down Expand Up @@ -255,66 +228,6 @@
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
A64F34D3FB2D778F0A8BA092 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-OmetriaSample-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
C116398B684E17D1F852811F /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-OmetriaSample/Pods-OmetriaSample-frameworks-${CONFIGURATION}-input-files.xcfilelist",
);
name = "[CP] Embed Pods Frameworks";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-OmetriaSample/Pods-OmetriaSample-frameworks-${CONFIGURATION}-output-files.xcfilelist",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-OmetriaSample/Pods-OmetriaSample-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
C579C48451823512F9390D32 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputFileListPaths = (
);
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-OmetriaSample-OmetriaSampleNotificationService-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
4EC94EE424BC52D000B8591C /* Sources */ = {
isa = PBXSourcesBuildPhase;
Expand Down Expand Up @@ -480,7 +393,6 @@
};
4EC94EFD24BC52D300B8591C /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 623F5ECD741AACB83A72AABF /* Pods-OmetriaSample.debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = OmetriaSample/OmetriaSample.entitlements;
Expand All @@ -503,7 +415,6 @@
};
4EC94EFE24BC52D300B8591C /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = CF0F08E97772D96033F1583F /* Pods-OmetriaSample.release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = OmetriaSample/OmetriaSample.entitlements;
Expand All @@ -526,7 +437,6 @@
};
4EC94F3C24BDECC300B8591C /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 96A647FA2CD6F1046950F04B /* Pods-OmetriaSample-OmetriaSampleNotificationService.debug.xcconfig */;
buildSettings = {
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 3;
Expand All @@ -548,7 +458,6 @@
};
4EC94F3D24BDECC300B8591C /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 1501BEFE755BBD84612970E9 /* Pods-OmetriaSample-OmetriaSampleNotificationService.release.xcconfig */;
buildSettings = {
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 3;
Expand Down
4 changes: 4 additions & 0 deletions Ometria Sample/OmetriaSample/EventListViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import Ometria
enum EventType: String, CaseIterable {
case basketUpdated
case basketViewed
case checkoutStarted
case orderCompleted
case productListingViewed
case productViewed
Expand Down Expand Up @@ -55,6 +56,9 @@ class EventListViewController: UITableViewController {

case .basketViewed:
Ometria.sharedInstance().trackBasketViewedEvent()

case .checkoutStarted:
Ometria.sharedInstance().trackCheckoutStartedEvent(orderId: "sample_order_id")

case .orderCompleted:
Ometria.sharedInstance().trackOrderCompletedEvent(orderId: "sample_order_id", basket: createSampleBasket())
Expand Down
4 changes: 2 additions & 2 deletions Ometria.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'Ometria'
s.version = '1.0.3'
s.version = '1.1.0'
s.module_name = 'Ometria'
s.license = 'MIT'
s.summary = 'Ometria SDK for iOS (Swift)'
Expand All @@ -10,7 +10,7 @@ Pod::Spec.new do |s|
s.swift_version = '5.0'
s.platform = :ios, '10.0'
s.frameworks = 'UIKit', 'Foundation'
s.source_files = 'Ometria/**/*.{swift}'
s.source_files = 'Ometria/Sources/**/*.{swift}'
s.static_framework = true
s.dependency 'FirebaseMessaging'
end
25 changes: 25 additions & 0 deletions Ometria.xcodeproj/OmetriaTests_Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>
25 changes: 25 additions & 0 deletions Ometria.xcodeproj/Ometria_Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>
Loading

0 comments on commit 8eb1899

Please sign in to comment.