Skip to content

Commit

Permalink
Merge pull request #223 from qonversion/tech/sc-35135/deprecatePushToken
Browse files Browse the repository at this point in the history
The `setNotificationToken` and `handleNotification` methods were marked as deprecated.
  • Loading branch information
SpertsyanKM authored Oct 1, 2024
2 parents 76531c6 + abf1061 commit 300adec
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion QonversionSandwich.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ Pod::Spec.new do |s|
s.source_files = 'ios/sandwich/**/*.{h,m,swift}'
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }

s.dependency "Qonversion", "5.12.2"
s.dependency "Qonversion", "5.12.3"
end
2 changes: 1 addition & 1 deletion android/sandwich/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buildscript {
ext.qonversion_version = '8.1.0'
ext.qonversion_version = '8.1.1'
}

plugins {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,13 @@ class AutomationsSandwich {
}

fun setNotificationToken(token: String) {
@Suppress("DEPRECATION")
Automations.shared.setNotificationsToken(token)
}

fun handleNotification(notificationData: Map<String, Any?>): Boolean {
val stringData = notificationData.toStringMap()
@Suppress("DEPRECATION")
return Automations.shared.handleNotification(stringData)
}

Expand Down
2 changes: 1 addition & 1 deletion ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ platform :ios, '9.0'
use_frameworks!

target 'QonversionSandwich' do
pod 'Qonversion', '5.12.2'
pod 'Qonversion', '5.12.3'
end

target 'Sample' do
Expand Down
20 changes: 10 additions & 10 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
PODS:
- Qonversion (5.12.0):
- Qonversion/Main (= 5.12.0)
- Qonversion/Main (5.12.0)
- QonversionSandwich (5.0.3):
- Qonversion (= 5.12.0)
- Qonversion (5.12.3):
- Qonversion/Main (= 5.12.3)
- Qonversion/Main (5.12.3)
- QonversionSandwich (5.1.4):
- Qonversion (= 5.12.3)

DEPENDENCIES:
- Qonversion (= 5.12.0)
- Qonversion (= 5.12.3)
- QonversionSandwich (from `../`)

SPEC REPOS:
Expand All @@ -18,9 +18,9 @@ EXTERNAL SOURCES:
:path: "../"

SPEC CHECKSUMS:
Qonversion: ac2da69e497cb1f01cea13d82513fde14f338ca3
QonversionSandwich: 11c3c29fccb4c0d22127df6e00a43ffbe461ab96
Qonversion: d1a0c6aeff9ba9772ed5020899c2b13422f6aff1
QonversionSandwich: dc19e93ac2f3bf41c5de788446c8e6da4bd90939

PODFILE CHECKSUM: 270a709ed1c745b2fbcd44832cb6e9be9fbbafe3
PODFILE CHECKSUM: 22b04f6e2a93c5c342a95555267c470b275d6301

COCOAPODS: 1.15.2
COCOAPODS: 1.13.0
2 changes: 1 addition & 1 deletion ios/sandwich/QonversionSandwich.swift
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public class QonversionSandwich : NSObject {
}

#if os(iOS)
@available (iOS 14.0, *)
@available(iOS 14.0, *)
@objc public func presentCodeRedemptionSheet() {
Qonversion.shared().presentCodeRedemptionSheet()
}
Expand Down

0 comments on commit 300adec

Please sign in to comment.