Skip to content

Commit 4922415

Browse files
authored
Release 7.1.0
Release 7.1.0
2 parents 2380b2a + 016b73a commit 4922415

14 files changed

+152
-6
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 7.1.0
2+
* Added remote configuration source property.
3+
* Added rate limits for API calls.
4+
15
## 7.0.1
26
* Fixed a small bug with setting `advertisingId` property on Android.
37

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ android {
4343

4444
dependencies {
4545
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
46-
implementation "io.qonversion.sandwich:sandwich:3.0.1"
46+
implementation "io.qonversion.sandwich:sandwich:3.1.1"
4747
implementation 'com.google.code.gson:gson:2.9.0'
4848
}

example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@
324324
};
325325
9740EEB61CF901F6004384FC /* Run Script */ = {
326326
isa = PBXShellScriptBuildPhase;
327-
buildActionMask = 2147483647;
327+
buildActionMask = 12;
328328
files = (
329329
);
330330
inputPaths = (

ios/qonversion_flutter.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
1616
s.source_files = 'Classes/**/*'
1717
s.dependency 'Flutter'
1818
s.platform = :ios, '9.0'
19-
s.dependency "QonversionSandwich", "3.0.1"
19+
s.dependency "QonversionSandwich", "3.1.1"
2020

2121
# Flutter.framework does not contain a i386 slice. Only x86_64 simulators are supported.
2222
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'VALID_ARCHS[sdk=iphonesimulator*]' => 'x86_64' }

lib/qonversion_flutter.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ export 'src/dto/proration_mode.dart';
1919
export 'src/dto/purchase_exception.dart';
2020
export 'src/dto/qonversion_error.dart';
2121
export 'src/dto/remote_config.dart';
22+
export 'src/dto/remote_configuration_source.dart';
23+
export 'src/dto/remote_configuration_source_type.dart';
24+
export 'src/dto/remote_configuration_assignment_type.dart';
2225
export 'src/dto/screen_presentation_config.dart';
2326
export 'src/dto/screen_presentation_style.dart';
2427
export 'src/dto/user.dart';

lib/src/dto/remote_config.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import 'package:json_annotation/json_annotation.dart';
22

33
import 'experiment.dart';
4+
import 'remote_configuration_source.dart';
45

56
part 'remote_config.g.dart';
67

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

18+
@JsonKey(name: 'source')
19+
final QRemoteConfigurationSource source;
20+
1721
const QRemoteConfig(
1822
this.payload,
1923
this.experiment,
24+
this.source
2025
);
2126

2227
factory QRemoteConfig.fromJson(Map<String, dynamic> json) =>

lib/src/dto/remote_config.g.dart

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import 'package:json_annotation/json_annotation.dart';
2+
3+
enum QRemoteConfigurationAssignmentType {
4+
/// Unknown assignment type
5+
@JsonValue('unknown')
6+
unknown,
7+
8+
/// Auto
9+
@JsonValue('auto')
10+
auto,
11+
12+
/// Manual
13+
@JsonValue('manual')
14+
manual,
15+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
import 'package:json_annotation/json_annotation.dart';
2+
import 'package:qonversion_flutter/src/dto/remote_configuration_assignment_type.dart';
3+
import 'remote_configuration_source_type.dart';
4+
5+
part 'remote_configuration_source.g.dart';
6+
7+
@JsonSerializable(createToJson: false)
8+
class QRemoteConfigurationSource {
9+
/// Source's identifier.
10+
@JsonKey(name: 'id')
11+
final String id;
12+
13+
/// Source's name.
14+
@JsonKey(name: 'name')
15+
final String name;
16+
17+
@JsonKey(
18+
name: 'type',
19+
unknownEnumValue: QRemoteConfigurationSourceType.unknown,
20+
)
21+
final QRemoteConfigurationSourceType type;
22+
23+
@JsonKey(
24+
name: 'assignmentType',
25+
unknownEnumValue: QRemoteConfigurationAssignmentType.unknown,
26+
)
27+
final QRemoteConfigurationAssignmentType assignmentType;
28+
29+
const QRemoteConfigurationSource(
30+
this.id,
31+
this.name,
32+
this.type,
33+
this.assignmentType
34+
);
35+
36+
factory QRemoteConfigurationSource.fromJson(Map<String, dynamic> json) =>
37+
_$QRemoteConfigurationSourceFromJson(json);
38+
}

lib/src/dto/remote_configuration_source.g.dart

Lines changed: 61 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)