Skip to content

Commit

Permalink
Release 1.23.36
Browse files Browse the repository at this point in the history
  • Loading branch information
gbhrdt committed Nov 18, 2024
1 parent 5d1eb04 commit 959c934
Show file tree
Hide file tree
Showing 15 changed files with 55 additions and 95 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 1.23.36 (18.11.2024)
* Updated native iOS SDK to fix an issue with opening notifications with action buttons

## 1.23.35 (16.11.2024)
* Some futures were resolved too early, this has been fixed.
* Updated native iOS + Android SDKs
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group 'com.cleverpush.flutter'
version '1.23.35'
version '1.23.36'

buildscript {
repositories {
Expand Down
2 changes: 1 addition & 1 deletion example/ios/Flutter/AppFrameworkInfo.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
<key>CFBundleVersion</key>
<string>1.0</string>
<key>MinimumOSVersion</key>
<string>8.0</string>
<string>12.0</string>
</dict>
</plist>
2 changes: 1 addition & 1 deletion example/ios/Flutter/Flutter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Pod::Spec.new do |s|
s.license = { :type => 'BSD' }
s.author = { 'Flutter Dev Team' => '[email protected]' }
s.source = { :git => 'https://github.com/flutter/engine', :tag => s.version.to_s }
s.ios.deployment_target = '11.0'
s.ios.deployment_target = '12.0'
# Framework linking is handled by Flutter tooling, not CocoaPods.
# Add a placeholder to satisfy `s.dependency 'Flutter'` plugin podspecs.
s.vendored_frameworks = 'path/to/nothing'
Expand Down
2 changes: 1 addition & 1 deletion example/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# source 'https://github.com/CocoaPods/Specs.git'

# Uncomment this line to define a global platform for your project
platform :ios, '11.0'
platform :ios, '12.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
Expand Down
18 changes: 9 additions & 9 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PODS:
- CleverPush (1.30.4)
- cleverpush_flutter (1.23.16):
- CleverPush (= 1.30.4)
- CleverPush (1.31.19)
- cleverpush_flutter (1.23.36):
- CleverPush (= 1.31.19)
- Flutter
- Flutter (1.0.0)

Expand All @@ -11,7 +11,7 @@ DEPENDENCIES:
- Flutter (from `Flutter`)

SPEC REPOS:
trunk:
https://github.com/CocoaPods/Specs.git:
- CleverPush

EXTERNAL SOURCES:
Expand All @@ -21,10 +21,10 @@ EXTERNAL SOURCES:
:path: Flutter

SPEC CHECKSUMS:
CleverPush: 63cfd1b9e49850af2acc5647b9ac641dd4fbfff1
cleverpush_flutter: 38e95abcc7a6edc63b994dbeabb45db9b4f639a9
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
CleverPush: ef4c4034546a9d99f639df8793be5eeca9f9b3fc
cleverpush_flutter: bab9b1ba4e55667246fc591f0753207bbf793201
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7

PODFILE CHECKSUM: 94b15b543645465f0de57fcffaa649e0ce5860d8
PODFILE CHECKSUM: 01be41a8c8a5032e06a3944c7867cff11715991f

COCOAPODS: 1.13.0
COCOAPODS: 1.16.2
14 changes: 8 additions & 6 deletions example/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,11 @@
97C146EA1CF9000F007C117D /* Sources */,
97C146EB1CF9000F007C117D /* Frameworks */,
97C146EC1CF9000F007C117D /* Resources */,
291CB2332982B39300F62F24 /* Embed Foundation Extensions */,
9705A1C41CF9048500538489 /* Embed Frameworks */,
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
0173D6A6822EC0BA3C6CBC7D /* [CP] Embed Pods Frameworks */,
1E3B8961EC2B69E0443B1028 /* [CP] Copy Pods Resources */,
291CB2332982B39300F62F24 /* Embed Foundation Extensions */,
);
buildRules = (
);
Expand All @@ -239,7 +239,7 @@
97C146E61CF9000F007C117D /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 1020;
LastUpgradeCheck = 1510;
ORGANIZATIONNAME = "";
TargetAttributes = {
291CB2292982B39300F62F24 = {
Expand Down Expand Up @@ -350,10 +350,12 @@
};
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
isa = PBXShellScriptBuildPhase;
alwaysOutOfDate = 1;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
);
name = "Thin Binary";
outputPaths = (
Expand Down Expand Up @@ -506,7 +508,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = iphoneos;
Expand Down Expand Up @@ -688,7 +690,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -802,7 +804,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -851,7 +853,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = iphoneos;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1020"
LastUpgradeVersion = "1510"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
2 changes: 1 addition & 1 deletion example/ios/Runner/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import UIKit
import Flutter

@UIApplicationMain
@main
@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
Expand Down
4 changes: 4 additions & 0 deletions example/ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,9 @@
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
<key>CADisableMinimumFrameDurationOnPhone</key>
<true/>
<key>UIApplicationSupportsIndirectInputEvents</key>
<true/>
</dict>
</plist>
28 changes: 14 additions & 14 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ class _MyAppState extends State<MyApp> {
CleverPush.shared.setShowNotificationsInForeground(false);
CleverPush.shared.enableDevelopmentMode();

// CleverPush Channel ID
await CleverPush.shared.init("CHANNEL_ID", true);

CleverPush.shared
.setNotificationReceivedHandler((CPNotificationReceivedResult result) {
this.setState(() {
Expand Down Expand Up @@ -59,9 +62,6 @@ class _MyAppState extends State<MyApp> {

CleverPush.shared.setBrandingColor("#ff0000");

// CleverPush Channel ID
await CleverPush.shared.init("CHANNEL_ID", true);

CleverPush.shared.setChatUrlOpenedHandler((url) {
Widget continueButton = TextButton(
child: Text("Ok"),
Expand Down Expand Up @@ -243,6 +243,17 @@ class _MyAppState extends State<MyApp> {
child: SingleChildScrollView(
child: new Table(
children: [
new TableRow(children: [
new Container(
child: new Text(_debugLabelString),
alignment: Alignment.center,
)
]),
new TableRow(children: [
Container(
height: 8.0,
)
]),
new TableRow(children: [
new CleverPushButton( "Show Chat View", () {
Navigator.pushNamed(context, '/chat');
Expand Down Expand Up @@ -331,17 +342,6 @@ class _MyAppState extends State<MyApp> {
new CleverPushButton(
"Pull Subscription Attribute Value", _pullSubscriptionAttributeValue, true)
]),
new TableRow(children: [
Container(
height: 8.0,
)
]),
new TableRow(children: [
new Container(
child: new Text(_debugLabelString),
alignment: Alignment.center,
)
]),
],
),
),
Expand Down
8 changes: 8 additions & 0 deletions ios/Classes/CleverPushPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ + (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {

CPChatViewFlutterFactory* factory = [[CPChatViewFlutterFactory alloc] initWithMessenger:registrar.messenger];
[registrar registerViewFactory:factory withId:@"cleverpush-chat-view"];

[registrar addApplicationDelegate:CleverPushPlugin.sharedInstance];
}

- (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions {
CleverPushPlugin.sharedInstance.launchOptions = launchOptions;

return YES;
}

- (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {
Expand Down
57 changes: 0 additions & 57 deletions ios/Classes/UIApplication+CleverPushFlutterPlugin.m

This file was deleted.

4 changes: 2 additions & 2 deletions ios/cleverpush_flutter.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'cleverpush_flutter'
s.version = '1.23.35'
s.version = '1.23.36'
s.summary = 'CleverPush Flutter SDK'
s.description = 'CleverPush'
s.homepage = 'https://cleverpush.com'
Expand All @@ -10,7 +10,7 @@ Pod::Spec.new do |s|
s.source_files = 'Classes/**/*'
s.public_header_files = 'Classes/**/*.h'
s.dependency 'Flutter'
s.dependency 'CleverPush', '1.31.18'
s.dependency 'CleverPush', '1.31.19'
s.static_framework = true
s.ios.deployment_target = '8.0'
end
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: cleverpush_flutter
description: CleverPush
version: 1.23.35
version: 1.23.36
homepage: https://github.com/cleverpush/cleverpush-flutter-sdk

flutter:
Expand Down

0 comments on commit 959c934

Please sign in to comment.