mmine 0.13.0 → 0.13.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e1987eaebb795a789663acee6d8f0baa1809dc20372035081fa732774cc5a988
4
- data.tar.gz: af08d7e4c231a75d7bbec89e0e7275f509753169d7ac0db0cdcfe240ad886124
3
+ metadata.gz: b4ae59331db804b60ba314df98c85f4d2dc61231a28882976def64f7451bcc77
4
+ data.tar.gz: f3745fc36a6e3e34c463982a600a9816e316d97e664dddba7985de7b53faa650
5
5
  SHA512:
6
- metadata.gz: 4384c96a3394dd2ba46447437b81378fe34c5221bc078db8b7d08b81644b01fdbf37e93c15a26d1e43e562135592ed8bea8e53a47fc4924d73bdaef1e97e2083
7
- data.tar.gz: 65c086406a02cdd1080912c7ab58bda7d164d574f52133a1b7d3ec5ddbfabf2141d5344f7ab4b00e056f6e0baa35639304ddbee9561d42e58a93e50a8c537979
6
+ metadata.gz: b7d369b4960e4d877d692e5871803fafd38b56d13508838abc6e4392d0762ee31bf6e57c2a03650f2e8ac200252dc657be52447eea6d9315b6e9ac1bad34a0c2
7
+ data.tar.gz: d7fb0d94e6bf88de3f6e4f7dc7929075756a0322420030968498e36709bde9c1ef9f29782ebbb71bb32d94ae4f08f1342b8db02f11a36f7708d4564c642def18
@@ -246,7 +246,7 @@ class NotificationExtensionIntegrator
246
246
  end
247
247
 
248
248
  def setup_deployment_target
249
- set_notification_extension_build_settings('IPHONEOS_DEPLOYMENT_TARGET', "12.0")
249
+ set_notification_extension_build_settings('IPHONEOS_DEPLOYMENT_TARGET', "13.0")
250
250
  end
251
251
 
252
252
  def setup_notification_extension_info_plist
data/lib/mmine/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Mmine
2
- VERSION = "0.13.0"
2
+ VERSION = "0.13.2"
3
3
  end
@@ -12,8 +12,15 @@ class NotificationService: UNNotificationServiceExtension {
12
12
  override func didReceive(_ request: UNNotificationRequest, withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
13
13
  self.contentHandler = contentHandler
14
14
  self.originalContent = request.content
15
- MobileMessagingNotificationServiceExtension.startWithApplicationCode(<# put your Application Code here #>)
16
- MobileMessagingNotificationServiceExtension.didReceive(request, withContentHandler: contentHandler)
15
+
16
+ // Check if notification is from Infobip
17
+ if MM_MTMessage.isCorrectPayload(request.content.userInfo) {
18
+ MobileMessagingNotificationServiceExtension.startWithApplicationCode(<# put your Application Code here #>)
19
+ MobileMessagingNotificationServiceExtension.didReceive(request, withContentHandler: contentHandler)
20
+ } else {
21
+ // Pass through non-Infobip notifications
22
+ contentHandler(request.content)
23
+ }
17
24
  }
18
25
 
19
26
  override func serviceExtensionTimeWillExpire() {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mmine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.13.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Kadochnikov
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.22.0
19
+ version: 1.27.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 1.22.0
26
+ version: 1.27.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: nokogiri
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  requirements: []
76
- rubygems_version: 3.3.26
76
+ rubygems_version: 3.1.6
77
77
  signing_key:
78
78
  specification_version: 4
79
79
  summary: Mobile Messaging iOS Notification Extension Integration Tool made at Infobip