Skip to content

Commit f5c92d2

Browse files
author
Sergey Korney
committed
1.6.6
1 parent a1b8f53 commit f5c92d2

File tree

84 files changed

+278
-240
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+278
-240
lines changed

README.md

Lines changed: 45 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
| Package | Version |
44
|--------------------------|:-------------------------------------------------------:|
5-
| `affise_attribution_lib` | [`1.6.5`](https://github.com/affise/sdk-react/releases) |
5+
| `affise_attribution_lib` | [`1.6.6`](https://github.com/affise/sdk-react/releases) |
66

77
- [Affise Attribution Flutter Library](#affise-attribution-flutter-library)
88
- [Description](#description)
@@ -13,6 +13,7 @@
1313
- [Android](#android)
1414
- [iOS](#ios)
1515
- [Initialize](#initialize)
16+
- [Domain](#domain)
1617
- [Requirements](#requirements)
1718
- [Android](#android-1)
1819
- [iOS](#ios-1)
@@ -114,7 +115,7 @@ Add modules to iOS project
114115

115116
| Module | Version |
116117
|-----------------------|:------------------------------------------------------------------------------------:|
117-
| `AffiseModule/Status` | [`1.6.14`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) |
118+
| `AffiseModule/Status` | [`1.6.15`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) |
118119

119120
Example [example/ios/Podfile](example/ios/Podfile)
120121

@@ -123,7 +124,7 @@ target 'Runner' do
123124
# ...
124125
125126
# Affise Module
126-
pod 'AffiseModule/Status', `1.6.14`
127+
pod 'AffiseModule/Status', `1.6.15`
127128
end
128129
```
129130

@@ -142,12 +143,12 @@ class _MyAppState extends State<MyApp> {
142143
void initState() {
143144
super.initState();
144145
145-
AffiseInitProperties properties = AffiseInitProperties(
146-
affiseAppId: "Your appId", //Change to your app id
147-
secretKey: "Your SDK secretKey", //Change to your SDK secretKey
148-
);
149-
150-
Affise.init(properties);
146+
Affise
147+
.settings(
148+
affiseAppId: "Your appId", //Change to your app id
149+
secretKey: "Your SDK secretKey", //Change to your SDK secretKey
150+
)
151+
.start(); // Start Affise SDK
151152
}
152153
}
153154
```
@@ -158,6 +159,21 @@ Check if library is initialized
158159
Affise.isInitialized();
159160
```
160161

162+
#### Domain
163+
164+
Set SDK server domain:
165+
166+
```dart
167+
Affise
168+
.settings(
169+
affiseAppId: "Your appId",
170+
secretKey: "Your SDK secretKey",
171+
)
172+
.setProduction(false)
173+
.setDomain("https://YoureCustomDomain/") // Set custom domain
174+
.start(); // Start Affise SDK
175+
```
176+
161177
### Requirements
162178

163179
#### Android
@@ -650,11 +666,12 @@ To use this feature, create file with name `partner_key` in your app assets dire
650666

651667
## Deeplinks
652668

653-
Register deeplink callback right after Affise.init(..)
669+
Register deeplink callback right after `Affise.settings(..).start()`
654670

655671
```dart
656672
void init() {
657-
Affise.init(..);
673+
Affise.settings(affiseAppId, secretKey).start(); // Start Affise SDK
674+
658675
Affise.registerDeeplinkCallback((uri) {
659676
// Handle deeplink
660677
});
@@ -710,7 +727,8 @@ Example: [`example/ios/Runner/Info.plist`](example/ios/Runner/Info.plist)
710727
In some scenarios you would want to limit Affise network usage, to pause that activity call anywhere in your application following code after Affise init:
711728

712729
```dart
713-
Affise.init(..);
730+
Affise.settings(affiseAppId, secretKey).start(); // Start Affise SDK
731+
714732
Affise.setOfflineModeEnabled(true); // to enable offline mode
715733
Affise.setOfflineModeEnabled(false); // to disable offline mode
716734
```
@@ -728,7 +746,8 @@ Affise.isOfflineModeEnabled(); // returns true or false describing current track
728746
To disable any tracking activity, storing events and gathering device identifiers and metrics call anywhere in your application following code after Affise init:
729747

730748
```dart
731-
Affise.init(..);
749+
Affise.settings(affiseAppId, secretKey).start(); // Start Affise SDK
750+
732751
Affise.setTrackingEnabled(true); // to enable tracking
733752
Affise.setTrackingEnabled(false); // to disable tracking
734753
```
@@ -748,7 +767,8 @@ Affise.isTrackingEnabled(); // returns true or false describing current tracking
748767
To disable any background tracking activity, storing events and gathering device identifiers and metrics call anywhere in your application following code after Affise init:
749768

750769
```dart
751-
Affise.init(..);
770+
Affise.settings(affiseAppId, secretKey).start(); // Start Affise SDK
771+
752772
Affise.setBackgroundTrackingEnabled(true); // to enable background tracking
753773
Affise.setBackgroundTrackingEnabled(false); // to disable background tracking
754774
```
@@ -804,15 +824,17 @@ Under the EU's General Data Protection Regulation (GDPR): An individual has the
804824
To provide this functionality to user, as the app developer, you can call
805825

806826
```dart
807-
Affise.init(..);
827+
Affise.settings(affiseAppId, secretKey).start(); // Start Affise SDK
828+
808829
Affise.android.forget(); // to forget users data
809830
```
810831

811832
After processing such request our backend servers will delete all users data.
812833
To prevent library from generating new events, disable tracking just before calling Affise.forget:
813834

814835
```dart
815-
Affise.init(..);
836+
Affise.settings(affiseAppId, secretKey).start(); // Start Affise SDK
837+
816838
Affise.setTrackingEnabled(false);
817839
Affise.android.forget(); // to forget users data
818840
```
@@ -943,13 +965,13 @@ Validate your credentials by receiving `ValidationStatus` values:
943965
- `NETWORK_ERROR` - network or server not available (for example `Airoplane mode` is active)
944966

945967
```dart
946-
AffiseInitProperties properties = AffiseInitProperties(
947-
affiseAppId: "Your appId", //Change to your app id
948-
secretKey: "Your SDK secretKey", //Change to your SDK secretKey
949-
isProduction: false, //To enable debug methods set Production to false
950-
);
951-
952-
Affise.init(properties);
968+
Affise
969+
.settings(
970+
affiseAppId: "Your appId",
971+
secretKey: "Your SDK secretKey",
972+
)
973+
.setProduction(false) //To enable debug methods set Production to false
974+
.start(); // Start Affise SDK
953975
954976
Affise.debug.validate((status) {
955977
// Handle validation status

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,5 @@ android {
4848

4949
dependencies {
5050
implementation "com.android.installreferrer:installreferrer:2.2"
51-
implementation "com.affise:internal:1.6.18"
51+
implementation "com.affise:internal:1.6.19"
5252
}

example/android/app/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ dependencies {
6969
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
7070

7171
// Affise modules
72-
implementation 'com.affise:module-advertising:1.6.18'
73-
implementation 'com.affise:module-network:1.6.18'
74-
implementation 'com.affise:module-phone:1.6.18'
75-
implementation "com.affise:module-status:1.6.18"
72+
implementation 'com.affise:module-advertising:1.6.19'
73+
implementation 'com.affise:module-network:1.6.19'
74+
implementation 'com.affise:module-phone:1.6.19'
75+
implementation "com.affise:module-status:1.6.19"
7676
}

example/ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ target 'Runner' do
3434
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
3535

3636
# Affise modules
37-
pod 'AffiseModule', '1.6.14'
37+
pod 'AffiseModule', '1.6.15'
3838
end
3939

4040
post_install do |installer|

example/lib/main.dart

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ class _MyAppState extends State<MyApp> {
3232

3333
void initAffise() async {
3434
// Initialize https://github.com/affise/flutter-sdk#initialize
35-
AffiseInitProperties properties = AffiseInitProperties(
36-
affiseAppId: "129", //Change to your app id
37-
secretKey: "93a40b54-6f12-443f-a250-ebf67c5ee4d2", //Change to your SDK key
38-
isProduction: false, //To enable debug methods set Production to false
39-
);
40-
41-
Affise.init(properties);
35+
Affise
36+
.settings(
37+
affiseAppId: "129", //Change to your app id
38+
secretKey: "93a40b54-6f12-443f-a250-ebf67c5ee4d2", //Change to your SDK key
39+
)
40+
.setProduction(false) //To enable debug methods set Production to false
41+
.start(); // Start Affise SDK
4242

4343
// Deeplinks https://github.com/affise/flutter-sdk#deeplinks
4444
Affise.registerDeeplinkCallback((uri) {
@@ -69,12 +69,12 @@ class _MyAppState extends State<MyApp> {
6969
length: 2,
7070
child: Scaffold(
7171
appBar: AppBar(
72-
bottom: const TabBar(
72+
bottom: TabBar(
7373
tabs: [
7474
Tab(
7575
child: Row(
7676
mainAxisSize: MainAxisSize.min,
77-
children: [
77+
children: const [
7878
Icon(Icons.swap_horiz),
7979
SizedBox(width: 8),
8080
Text('API'),
@@ -84,7 +84,7 @@ class _MyAppState extends State<MyApp> {
8484
Tab(
8585
child: Row(
8686
mainAxisSize: MainAxisSize.min,
87-
children: [
87+
children: const [
8888
Icon(Icons.file_upload),
8989
SizedBox(width: 8),
9090
Text('Events'),

example/pubspec.lock

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,31 @@ packages:
77
path: ".."
88
relative: true
99
source: path
10-
version: "1.6.5"
10+
version: "1.6.6"
1111
async:
1212
dependency: transitive
1313
description:
1414
name: async
15-
sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
15+
sha256: "271b8899fc99f9df4f4ed419fa14e2fff392c7b2c162fbb87b222e2e963ddc73"
1616
url: "https://pub.dev"
1717
source: hosted
18-
version: "2.11.0"
18+
version: "2.9.0"
1919
boolean_selector:
2020
dependency: transitive
2121
description:
2222
name: boolean_selector
23-
sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
23+
sha256: "5bbf32bc9e518d41ec49718e2931cd4527292c9b0c6d2dffcf7fe6b9a8a8cf72"
2424
url: "https://pub.dev"
2525
source: hosted
26-
version: "2.1.1"
26+
version: "2.1.0"
2727
characters:
2828
dependency: transitive
2929
description:
3030
name: characters
31-
sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
31+
sha256: e6a326c8af69605aec75ed6c187d06b349707a27fbff8222ca9cc2cff167975c
3232
url: "https://pub.dev"
3333
source: hosted
34-
version: "1.3.0"
34+
version: "1.2.1"
3535
clock:
3636
dependency: transitive
3737
description:
@@ -44,10 +44,10 @@ packages:
4444
dependency: transitive
4545
description:
4646
name: collection
47-
sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c"
47+
sha256: ef7e3a5529178ce8f37a9d0b11cbbc8b1e025940f9cf9f76c42da6796301219d
4848
url: "https://pub.dev"
4949
source: hosted
50-
version: "1.17.1"
50+
version: "1.16.0"
5151
cupertino_icons:
5252
dependency: "direct main"
5353
description:
@@ -94,10 +94,10 @@ packages:
9494
dependency: transitive
9595
description:
9696
name: js
97-
sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3
97+
sha256: a5e201311cb08bf3912ebbe9a2be096e182d703f881136ec1e81a2338a9e120d
9898
url: "https://pub.dev"
9999
source: hosted
100-
version: "0.6.7"
100+
version: "0.6.4"
101101
lints:
102102
dependency: transitive
103103
description:
@@ -110,10 +110,10 @@ packages:
110110
dependency: transitive
111111
description:
112112
name: matcher
113-
sha256: "6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb"
113+
sha256: "80c2989398773fa06e2457e9ff08580f24e9858b28462a722241cb53e5613478"
114114
url: "https://pub.dev"
115115
source: hosted
116-
version: "0.12.15"
116+
version: "0.12.12"
117117
material_color_utilities:
118118
dependency: transitive
119119
description:
@@ -126,18 +126,18 @@ packages:
126126
dependency: transitive
127127
description:
128128
name: meta
129-
sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3"
129+
sha256: "6c268b42ed578a53088d834796959e4a1814b5e9e164f147f580a386e5decf42"
130130
url: "https://pub.dev"
131131
source: hosted
132-
version: "1.9.1"
132+
version: "1.8.0"
133133
path:
134134
dependency: transitive
135135
description:
136136
name: path
137-
sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917"
137+
sha256: db9d4f58c908a4ba5953fcee2ae317c94889433e5024c27ce74a37f94267945b
138138
url: "https://pub.dev"
139139
source: hosted
140-
version: "1.8.3"
140+
version: "1.8.2"
141141
plugin_platform_interface:
142142
dependency: transitive
143143
description:
@@ -163,10 +163,10 @@ packages:
163163
dependency: transitive
164164
description:
165165
name: stack_trace
166-
sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5
166+
sha256: f8d9f247e2f9f90e32d1495ff32dac7e4ae34ffa7194c5ff8fcc0fd0e52df774
167167
url: "https://pub.dev"
168168
source: hosted
169-
version: "1.11.0"
169+
version: "1.10.0"
170170
stream_channel:
171171
dependency: transitive
172172
description:
@@ -179,10 +179,10 @@ packages:
179179
dependency: transitive
180180
description:
181181
name: string_scanner
182-
sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
182+
sha256: "862015c5db1f3f3c4ea3b94dc2490363a84262994b88902315ed74be1155612f"
183183
url: "https://pub.dev"
184184
source: hosted
185-
version: "1.2.0"
185+
version: "1.1.1"
186186
term_glyph:
187187
dependency: transitive
188188
description:
@@ -195,10 +195,10 @@ packages:
195195
dependency: transitive
196196
description:
197197
name: test_api
198-
sha256: eb6ac1540b26de412b3403a163d919ba86f6a973fe6cc50ae3541b80092fdcfb
198+
sha256: ceeddf59d613e862e77f4b506cfc2945ac9637ce0b4c00f4f4c1ac639f3e9731
199199
url: "https://pub.dev"
200200
source: hosted
201-
version: "0.5.1"
201+
version: "0.4.14"
202202
vector_math:
203203
dependency: transitive
204204
description:
@@ -208,5 +208,5 @@ packages:
208208
source: hosted
209209
version: "2.1.4"
210210
sdks:
211-
dart: ">=3.0.0-0 <4.0.0"
211+
dart: ">=2.18.0 <4.0.0"
212212
flutter: ">=2.5.0"

ios/affise_attribution_lib.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ Affise Attribution Flutter plugin.
2121
s.swift_version = '5.0'
2222

2323
s.dependency 'Flutter'
24-
s.dependency 'AffiseInternal', '1.6.14'
24+
s.dependency 'AffiseInternal', '1.6.15'
2525

2626
end

0 commit comments

Comments
 (0)