Skip to content

Commit

Permalink
Updated Android and iOS SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
DenKito committed Oct 18, 2023
1 parent 6e5306c commit fda1f38
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 10 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
# Changelog

## 0.0.3+1

* Updated Android SDK to 1.3.4, Updated iOS SDK to 2.2.1

## 0.0.2+3

* Fix for option properties in Android, Updated Android SDK to 1.1.1

## 0.0.2+2

* Fix for sending properties to Klaviyo API via Android
* Fix for sending properties to Klaviyo API via Android

## 0.0.2+1

Expand Down
4 changes: 2 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ android {

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation "com.github.klaviyo.klaviyo-android-sdk:analytics:1.1.1"
implementation "com.github.klaviyo.klaviyo-android-sdk:push-fcm:1.1.1"
implementation "com.github.klaviyo.klaviyo-android-sdk:analytics:1.3.4"
implementation "com.github.klaviyo.klaviyo-android-sdk:push-fcm:1.3.4"
implementation 'com.google.firebase:firebase-messaging-ktx:23.1.2'
}
2 changes: 1 addition & 1 deletion example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ subprojects {
project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
tasks.register("clean", Delete) {
delete rootProject.buildDir
}
6 changes: 3 additions & 3 deletions ios/Classes/KlaviyoFlutterPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ public class KlaviyoFlutterPlugin: NSObject, FlutterPlugin, UNUserNotificationCe
public func userNotificationCenter(_ center: UNUserNotificationCenter,
willPresent notification: UNNotification,
withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) {
var options: UNNotificationPresentationOptions = [.alert]
if #available(iOS 14.0, *) {
completionHandler([.list, .banner])
} else {
completionHandler([.alert])
options = [.list, .banner]
}
completionHandler(options)
}

public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
Expand Down
2 changes: 1 addition & 1 deletion ios/klaviyo_flutter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ A new flutter plugin project.
s.source = { :path => '.' }
s.source_files = 'Classes/**/*'
s.dependency 'Flutter'
s.dependency 'KlaviyoSwift', '~> 2.0.1'
s.dependency 'KlaviyoSwift', '~> 2.2.1'
s.ios.deployment_target = '13.0'
s.swift_version = '5.0'
end
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: klaviyo_flutter
description: Flutter plugin for Klaviyo integration. Provides push messaging
and Klaviyo analitics services
version: 0.0.2+3
version: 0.0.3+1
homepage: https://github.com/drybnikov/klaviyo_flutter

environment:
sdk: ">=2.18.0 <3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=2.0.0"

dependencies:
Expand Down

0 comments on commit fda1f38

Please sign in to comment.