Skip to content

Commit

Permalink
Merge pull request #361 from qonversion/release/9.1.4
Browse files Browse the repository at this point in the history
Release 9.1.4
  • Loading branch information
SpertsyanKM authored Oct 16, 2024
2 parents d9df2e2 + b5fc2d6 commit 242b7b1
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 35 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 9.1.4
* Added Tenjin AIID property for Tenjin integration
* The setNotificationToken, handleNotification, and `getNotificationCustomPayload` methods were marked as deprecated.

## 9.1.3
* Updated restore logic to process huge sandbox receipts faster.
* Fixed [products issue](https://github.com/qonversion/qonversion-ios-sdk/issues/507).
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ android {

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "io.qonversion.sandwich:sandwich:5.1.5"
implementation "io.qonversion.sandwich:sandwich:5.1.6"
implementation 'com.google.code.gson:gson:2.9.0'
}
20 changes: 0 additions & 20 deletions example/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -267,34 +267,14 @@
);
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh",
"${BUILT_PRODUCTS_DIR}/FirebaseCore/FirebaseCore.framework",
"${BUILT_PRODUCTS_DIR}/FirebaseCoreDiagnostics/FirebaseCoreDiagnostics.framework",
"${BUILT_PRODUCTS_DIR}/FirebaseCoreInternal/FirebaseCoreInternal.framework",
"${BUILT_PRODUCTS_DIR}/FirebaseInstallations/FirebaseInstallations.framework",
"${BUILT_PRODUCTS_DIR}/FirebaseMessaging/FirebaseMessaging.framework",
"${BUILT_PRODUCTS_DIR}/GoogleDataTransport/GoogleDataTransport.framework",
"${BUILT_PRODUCTS_DIR}/GoogleUtilities/GoogleUtilities.framework",
"${BUILT_PRODUCTS_DIR}/PromisesObjC/FBLPromises.framework",
"${BUILT_PRODUCTS_DIR}/Qonversion/Qonversion.framework",
"${BUILT_PRODUCTS_DIR}/QonversionSandwich/QonversionSandwich.framework",
"${BUILT_PRODUCTS_DIR}/flutter_local_notifications/flutter_local_notifications.framework",
"${BUILT_PRODUCTS_DIR}/nanopb/nanopb.framework",
"${BUILT_PRODUCTS_DIR}/qonversion_flutter/qonversion_flutter.framework",
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FirebaseCore.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FirebaseCoreDiagnostics.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FirebaseCoreInternal.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FirebaseInstallations.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FirebaseMessaging.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/GoogleDataTransport.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/GoogleUtilities.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FBLPromises.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Qonversion.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/QonversionSandwich.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_local_notifications.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/nanopb.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/qonversion_flutter.framework",
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down
20 changes: 10 additions & 10 deletions ios/Classes/SwiftQonversionPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -319,20 +319,20 @@ public class SwiftQonversionPlugin: NSObject, FlutterPlugin {
}

private func attachUserToRemoteConfiguration(_ args: [String: Any], _ result: @escaping FlutterResult) {
guard let remoteConfigurationId = args["remoteConfigurationId"] as? String else {
return result(FlutterError.noNecessaryData)
}

qonversionSandwich?.attachUserToRemoteConfiguration(with: remoteConfigurationId, completion: getJsonCompletion(result))
guard let remoteConfigurationId = args["remoteConfigurationId"] as? String else {
return result(FlutterError.noNecessaryData)
}

private func detachUserFromRemoteConfiguration(_ args: [String: Any], _ result: @escaping FlutterResult) {
guard let remoteConfigurationId = args["remoteConfigurationId"] as? String else {
return result(FlutterError.noNecessaryData)
}
qonversionSandwich?.attachUserToRemoteConfiguration(with: remoteConfigurationId, completion: getJsonCompletion(result))
}

qonversionSandwich?.detachUserFromRemoteConfiguration(with: remoteConfigurationId, completion: getJsonCompletion(result))
private func detachUserFromRemoteConfiguration(_ args: [String: Any], _ result: @escaping FlutterResult) {
guard let remoteConfigurationId = args["remoteConfigurationId"] as? String else {
return result(FlutterError.noNecessaryData)
}

qonversionSandwich?.detachUserFromRemoteConfiguration(with: remoteConfigurationId, completion: getJsonCompletion(result))
}

private func storeSdkInfo(_ args: [String: Any], _ result: @escaping FlutterResult) {
guard let version = args["version"] as? String,
Expand Down
2 changes: 1 addition & 1 deletion ios/qonversion_flutter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pod::Spec.new do |s|
s.source_files = 'Classes/**/*'
s.dependency 'Flutter'
s.platform = :ios, '9.0'
s.dependency "QonversionSandwich", "5.1.5"
s.dependency "QonversionSandwich", "5.1.6"

# Flutter.framework does not contain a i386 slice. Only x86_64 simulators are supported.
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'VALID_ARCHS[sdk=iphonesimulator*]' => 'x86_64' }
Expand Down
1 change: 1 addition & 0 deletions lib/src/dto/user_property_key.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ enum QUserPropertyKey {
appMetricaUserProfileId,
pushWooshHwId,
pushWooshUserId,
tenjinAnalyticsInstallationId,
custom,
}
2 changes: 2 additions & 0 deletions lib/src/internal/mapper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ class QMapper {
return QUserPropertyKey.pushWooshHwId;
case "_q_pushwoosh_user_id":
return QUserPropertyKey.pushWooshUserId;
case "_q_tenjin_aiid":
return QUserPropertyKey.tenjinAnalyticsInstallationId;
}

return QUserPropertyKey.custom;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/internal/qonversion_internal.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import 'package:qonversion_flutter/src/internal/utils/string.dart';
import 'constants.dart';

class QonversionInternal implements Qonversion {
static const String _sdkVersion = "9.1.3";
static const String _sdkVersion = "9.1.4";

final MethodChannel _channel = MethodChannel('qonversion_plugin');

Expand Down
2 changes: 1 addition & 1 deletion macos/qonversion_flutter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pod::Spec.new do |s|
s.source_files = 'Classes/**/*'
s.dependency 'FlutterMacOS'
s.platform = :osx, '10.12'
s.dependency "QonversionSandwich", "5.1.5"
s.dependency "QonversionSandwich", "5.1.6"

s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
s.swift_version = '5.0'
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: qonversion_flutter
description: Flutter plugin to implement in-app subscriptions and purchases. Validate user receipts and manage cross-platform access to paid content on your app. Android & iOS.
version: 9.1.3
version: 9.1.4
homepage: 'https://qonversion.io'
repository: 'https://github.com/qonversion/flutter-sdk'

Expand Down

0 comments on commit 242b7b1

Please sign in to comment.