Skip to content

Commit

Permalink
Release 7.1.0
Browse files Browse the repository at this point in the history
Release 7.1.0
  • Loading branch information
SpertsyanKM authored Sep 19, 2023
2 parents 2380b2a + 016b73a commit 4922415
Show file tree
Hide file tree
Showing 14 changed files with 152 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 7.1.0
* Added remote configuration source property.
* Added rate limits for API calls.

## 7.0.1
* Fixed a small bug with setting `advertisingId` property on Android.

Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ android {

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "io.qonversion.sandwich:sandwich:3.0.1"
implementation "io.qonversion.sandwich:sandwich:3.1.1"
implementation 'com.google.code.gson:gson:2.9.0'
}
2 changes: 1 addition & 1 deletion example/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@
};
9740EEB61CF901F6004384FC /* Run Script */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
buildActionMask = 12;
files = (
);
inputPaths = (
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", "3.0.1"
s.dependency "QonversionSandwich", "3.1.1"

# 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
3 changes: 3 additions & 0 deletions lib/qonversion_flutter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ export 'src/dto/proration_mode.dart';
export 'src/dto/purchase_exception.dart';
export 'src/dto/qonversion_error.dart';
export 'src/dto/remote_config.dart';
export 'src/dto/remote_configuration_source.dart';
export 'src/dto/remote_configuration_source_type.dart';
export 'src/dto/remote_configuration_assignment_type.dart';
export 'src/dto/screen_presentation_config.dart';
export 'src/dto/screen_presentation_style.dart';
export 'src/dto/user.dart';
Expand Down
5 changes: 5 additions & 0 deletions lib/src/dto/remote_config.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:json_annotation/json_annotation.dart';

import 'experiment.dart';
import 'remote_configuration_source.dart';

part 'remote_config.g.dart';

Expand All @@ -14,9 +15,13 @@ class QRemoteConfig {
@JsonKey(name: 'experiment')
final QExperiment? experiment;

@JsonKey(name: 'source')
final QRemoteConfigurationSource source;

const QRemoteConfig(
this.payload,
this.experiment,
this.source
);

factory QRemoteConfig.fromJson(Map<String, dynamic> json) =>
Expand Down
1 change: 1 addition & 0 deletions lib/src/dto/remote_config.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions lib/src/dto/remote_configuration_assignment_type.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import 'package:json_annotation/json_annotation.dart';

enum QRemoteConfigurationAssignmentType {
/// Unknown assignment type
@JsonValue('unknown')
unknown,

/// Auto
@JsonValue('auto')
auto,

/// Manual
@JsonValue('manual')
manual,
}
38 changes: 38 additions & 0 deletions lib/src/dto/remote_configuration_source.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import 'package:json_annotation/json_annotation.dart';
import 'package:qonversion_flutter/src/dto/remote_configuration_assignment_type.dart';
import 'remote_configuration_source_type.dart';

part 'remote_configuration_source.g.dart';

@JsonSerializable(createToJson: false)
class QRemoteConfigurationSource {
/// Source's identifier.
@JsonKey(name: 'id')
final String id;

/// Source's name.
@JsonKey(name: 'name')
final String name;

@JsonKey(
name: 'type',
unknownEnumValue: QRemoteConfigurationSourceType.unknown,
)
final QRemoteConfigurationSourceType type;

@JsonKey(
name: 'assignmentType',
unknownEnumValue: QRemoteConfigurationAssignmentType.unknown,
)
final QRemoteConfigurationAssignmentType assignmentType;

const QRemoteConfigurationSource(
this.id,
this.name,
this.type,
this.assignmentType
);

factory QRemoteConfigurationSource.fromJson(Map<String, dynamic> json) =>
_$QRemoteConfigurationSourceFromJson(json);
}
61 changes: 61 additions & 0 deletions lib/src/dto/remote_configuration_source.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions lib/src/dto/remote_configuration_source_type.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import 'package:json_annotation/json_annotation.dart';

enum QRemoteConfigurationSourceType {
/// Unknown source type
@JsonValue('unknown')
unknown,

/// Treatment group
@JsonValue('experiment_treatment_group')
experimentTreatmentGroup,

/// Control group
@JsonValue('experiment_control_group')
experimentControlGroup,

/// Remote configuration
@JsonValue('remote_configuration')
remoteConfiguration,
}
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 = "7.0.1";
static const String _sdkVersion = "7.1.0";

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", "3.0.1"
s.dependency "QonversionSandwich", "3.1.1"

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: 7.0.1
version: 7.1.0
homepage: 'https://qonversion.io'
repository: 'https://github.com/qonversion/flutter-sdk'

Expand Down

0 comments on commit 4922415

Please sign in to comment.